Lines Matching refs:AVCHandle
167 AVCEnc_Status InitRateControlModule(AVCHandle *avcHandle)
169 AVCEncObject *encvid = (AVCEncObject*) avcHandle->AVCObject;
178 rateCtrl->MADofMB = (double*) avcHandle->CBAVC_Malloc(encvid->avcHandle->userData,
188 rateCtrl->pMP = (MultiPass*) avcHandle->CBAVC_Malloc(encvid->avcHandle->userData, sizeof(MultiPass), DEFAULT_ATTR);
196 rateCtrl->pMP->pRDSamples = (RDInfo **)avcHandle->CBAVC_Malloc(encvid->avcHandle->userData, (30 * sizeof(RDInfo *)), DEFAULT_ATTR);
204 rateCtrl->pMP->pRDSamples[i] = (RDInfo *)avcHandle->CBAVC_Malloc(encvid->avcHandle->userData, (32 * sizeof(RDInfo)), DEFAULT_ATTR);
287 CleanupRateControlModule(avcHandle);
293 void CleanupRateControlModule(AVCHandle *avcHandle)
295 AVCEncObject *encvid = (AVCEncObject*) avcHandle->AVCObject;
301 avcHandle->CBAVC_Free(avcHandle->userData, rateCtrl->MADofMB);
312 avcHandle->CBAVC_Free(avcHandle->userData, rateCtrl->pMP->pRDSamples[i]);
315 avcHandle->CBAVC_Free(avcHandle->userData, rateCtrl->pMP->pRDSamples);
317 avcHandle->CBAVC_Free(avcHandle->userData, rateCtrl->pMP);