Searched refs:pRDSamples (Results 1 – 5 of 5) sorted by relevance
/external/opencore/codecs_v2/video/avc_h264/enc/src/ |
D | rate_control.cpp | 199 …rateCtrl->pMP->pRDSamples = (RDInfo **)avcHandle->CBAVC_Malloc(encvid->avcHandle->userData, (30 * … in InitRateControlModule() 200 if (!rateCtrl->pMP->pRDSamples) in InitRateControlModule() 207 …rateCtrl->pMP->pRDSamples[i] = (RDInfo *)avcHandle->CBAVC_Malloc(encvid->avcHandle->userData, (32 … in InitRateControlModule() 208 if (!rateCtrl->pMP->pRDSamples[i]) in InitRateControlModule() 212 … for (j = 0; j < 32; j++) oscl_memset(&(rateCtrl->pMP->pRDSamples[i][j]), 0, sizeof(RDInfo)); in InitRateControlModule() 310 if (rateCtrl->pMP->pRDSamples) in CleanupRateControlModule() 314 if (rateCtrl->pMP->pRDSamples[i]) in CleanupRateControlModule() 316 avcHandle->CBAVC_Free(avcHandle->userData, (int)rateCtrl->pMP->pRDSamples[i]); in CleanupRateControlModule() 319 avcHandle->CBAVC_Free(avcHandle->userData, (int)rateCtrl->pMP->pRDSamples); in CleanupRateControlModule() 436 prev_mad = pMP->pRDSamples[i][0].mad; in calculateQuantizer_Multipass() [all …]
|
D | avcenc_int.h | 182 …RDInfo **pRDSamples; /* pRDSamples[30][32], 30->30fps, 32 -> 5 bit quantizer, 32 candidates… member
|
/external/opencore/codecs_v2/video/m4v_h263/enc/src/ |
D | rate_control.cpp | 274 pMP->pRDSamples[pMP->framePos][counter_samples].QP = pMP->QP; in SaveRDSamples() 275 pMP->pRDSamples[pMP->framePos][counter_samples].actual_bits = pMP->actual_bits; in SaveRDSamples() 276 pMP->pRDSamples[pMP->framePos][counter_samples].mad = pMP->mad; in SaveRDSamples() 277 …pMP->pRDSamples[pMP->framePos][counter_samples].R_D = (float)(pMP->actual_bits / (pMP->mad + 0.000… in SaveRDSamples() 731 prev_actual_bits = pMP->pRDSamples[0][0].actual_bits; in calculateQuantizer_Multipass() 732 prev_mad = pMP->pRDSamples[0][0].mad; in calculateQuantizer_Multipass() 736 if (pMP->pRDSamples[i][0].mad != 0 && prev_mad != 0 && in calculateQuantizer_Multipass() 737 PV_ABS(prev_mad - curr_mad) > PV_ABS(pMP->pRDSamples[i][0].mad - curr_mad)) in calculateQuantizer_Multipass() 739 prev_mad = pMP->pRDSamples[i][0].mad; in calculateQuantizer_Multipass() 740 prev_actual_bits = pMP->pRDSamples[i][0].actual_bits; in calculateQuantizer_Multipass() [all …]
|
D | mp4enc_api.cpp | 826 video->pMP[idx]->pRDSamples = (RDInfo **)M4VENC_MALLOC(30 * sizeof(RDInfo *)); in PVInitVideoEncoder() 827 if (video->pMP[idx]->pRDSamples == NULL) goto CLEAN_UP; in PVInitVideoEncoder() 830 video->pMP[idx]->pRDSamples[i] = (RDInfo *)M4VENC_MALLOC(32 * sizeof(RDInfo)); in PVInitVideoEncoder() 831 if (video->pMP[idx]->pRDSamples[i] == NULL) goto CLEAN_UP; in PVInitVideoEncoder() 832 …for (j = 0; j < 32; j++) M4VENC_MEMSET(&(video->pMP[idx]->pRDSamples[i][j]), 0, sizeof(RDInfo)); in PVInitVideoEncoder() 1208 if (video->pMP[idx]->pRDSamples) in PVCleanUpVideoEncoder() 1212 if (video->pMP[idx]->pRDSamples[i]) in PVCleanUpVideoEncoder() 1213 M4VENC_FREE(video->pMP[idx]->pRDSamples[i]); in PVCleanUpVideoEncoder() 1215 M4VENC_FREE(video->pMP[idx]->pRDSamples); in PVCleanUpVideoEncoder()
|
D | mp4lib_int.h | 285 …RDInfo **pRDSamples; /* pRDSamples[30][32], 30->30fps, 32 -> 5 bit quantizer, 32 candidates… member
|