Lines Matching refs:AVCHandle
56 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncInitialize(AVCHandle *avcHandle, AVCEncParams *encParam,
62 uint32 *userData = (uint32*) avcHandle->userData;
65 if (avcHandle->AVCObject != NULL)
73 avcHandle->AVCObject = (void*)avcHandle->CBAVC_Malloc(userData, sizeof(AVCEncObject), DEFAULT_ATTR);
74 if (avcHandle->AVCObject == NULL)
79 encvid = (AVCEncObject*) avcHandle->AVCObject;
83 encvid->avcHandle = avcHandle;
85 encvid->common = (AVCCommonObj*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCCommonObj), DEFAULT_ATTR);
94 encvid->bitstream = (AVCEncBitstream*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCEncBitstream), DEFAULT_ATTR);
102 video->currSeqParams = (AVCSeqParamSet*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCSeqParamSet), DEFAULT_ATTR);
109 video->currPicParams = (AVCPicParamSet*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCPicParamSet), DEFAULT_ATTR);
116 video->sliceHdr = (AVCSliceHeader*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCSliceHeader), DEFAULT_ATTR);
123 video->decPicBuf = (AVCDecPicBuffer*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCDecPicBuffer), DEFAULT_ATTR);
130 encvid->rateCtrl = (AVCRateControl*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCRateControl), DEFAULT_ATTR);
144 status = SetEncodeParam(avcHandle, encParam, extSPS, extPPS); /* initialized variables to be used in SPS*/
158 encvid->overrunBuffer = (uint8*) avcHandle->CBAVC_Malloc(userData, encvid->oBSize, DEFAULT_ATTR);
173 video->mblock = (AVCMacroblock*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCMacroblock) * framesize, DEFAULT_ATTR);
179 video->MbToSliceGroupMap = (int*) avcHandle->CBAVC_Malloc(userData, sizeof(uint) * video->PicSizeInMapUnits * 2, DEFAULT_ATTR);
185 encvid->mot16x16 = (AVCMV*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCMV) * framesize, DEFAULT_ATTR);
191 encvid->intraSearch = (uint8*) avcHandle->CBAVC_Malloc(userData, sizeof(uint8) * framesize, DEFAULT_ATTR);
197 encvid->min_cost = (int*) avcHandle->CBAVC_Malloc(userData, sizeof(int) * framesize, DEFAULT_ATTR);
204 if (AVCENC_SUCCESS != InitMotionSearchModule(avcHandle))
209 if (AVCENC_SUCCESS != InitRateControlModule(avcHandle))
215 encvid->functionPointer = (AVCEncFuncPtr*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCEncFuncPtr), DEFAULT_ATTR);
254 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncGetMaxOutputBufferSize(AVCHandle *avcHandle, int* size)
256 AVCEncObject *encvid = (AVCEncObject*)avcHandle->AVCObject;
276 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncSetInput(AVCHandle *avcHandle, AVCFrameIO *input)
278 AVCEncObject *encvid = (AVCEncObject*)avcHandle->AVCObject;
368 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncodeNAL(AVCHandle *avcHandle, unsigned char *buffer, unsigned int *buf_nal_size, int *nal_type)
370 AVCEncObject *encvid = (AVCEncObject*)avcHandle->AVCObject;
478 DPBReleaseCurrentFrame(avcHandle, video);
491 StorePictureInDPB(avcHandle, video);
521 OSCL_EXPORT_REF uint8* PVAVCEncGetOverrunBuffer(AVCHandle* avcHandle)
523 AVCEncObject *encvid = (AVCEncObject*)avcHandle->AVCObject;
550 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncGetRecon(AVCHandle *avcHandle, AVCFrameIO *recon)
552 AVCEncObject *encvid = (AVCEncObject*)avcHandle->AVCObject;
575 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncReleaseRecon(AVCHandle *avcHandle, AVCFrameIO *recon)
577 OSCL_UNUSED_ARG(avcHandle);
591 OSCL_EXPORT_REF void PVAVCCleanUpEncoder(AVCHandle *avcHandle)
593 AVCEncObject *encvid = (AVCEncObject*) avcHandle->AVCObject;
595 uint32 *userData = (uint32*) avcHandle->userData;
599 CleanMotionSearchModule(avcHandle);
601 CleanupRateControlModule(avcHandle);
605 avcHandle->CBAVC_Free(userData, encvid->functionPointer);
610 avcHandle->CBAVC_Free(userData, encvid->min_cost);
615 avcHandle->CBAVC_Free(userData, encvid->intraSearch);
620 avcHandle->CBAVC_Free(userData, encvid->mot16x16);
625 avcHandle->CBAVC_Free(userData, encvid->rateCtrl);
630 avcHandle->CBAVC_Free(userData, encvid->overrunBuffer);
638 avcHandle->CBAVC_Free(userData, video->MbToSliceGroupMap);
642 avcHandle->CBAVC_Free(userData, video->mblock);
646 CleanUpDPB(avcHandle, video);
647 avcHandle->CBAVC_Free(userData, video->decPicBuf);
651 avcHandle->CBAVC_Free(userData, video->sliceHdr);
657 avcHandle->CBAVC_Free(userData, video->currPicParams->slice_group_id);
660 avcHandle->CBAVC_Free(userData, video->currPicParams);
664 avcHandle->CBAVC_Free(userData, video->currSeqParams);
668 avcHandle->CBAVC_Free(userData, encvid->bitstream);
672 avcHandle->CBAVC_Free(userData, video);
676 avcHandle->CBAVC_Free(userData, encvid);
678 avcHandle->AVCObject = NULL;
684 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncUpdateBitRate(AVCHandle *avcHandle, uint32 bitrate)
686 OSCL_UNUSED_ARG(avcHandle);
692 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncUpdateFrameRate(AVCHandle *avcHandle, uint32 num, uint32 denom)
694 OSCL_UNUSED_ARG(avcHandle);
701 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncUpdateIDRInterval(AVCHandle *avcHandle, int IDRInterval)
703 OSCL_UNUSED_ARG(avcHandle);
709 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncIDRRequest(AVCHandle *avcHandle)
711 OSCL_UNUSED_ARG(avcHandle);
716 OSCL_EXPORT_REF AVCEnc_Status PVAVCEncUpdateIMBRefresh(AVCHandle *avcHandle, int numMB)
718 OSCL_UNUSED_ARG(avcHandle);
724 void PVAVCEncGetFrameStats(AVCHandle *avcHandle, AVCEncFrameStats *avcStats)
726 AVCEncObject *encvid = (AVCEncObject*) avcHandle->AVCObject;