Home
last modified time | relevance | path

Searched refs:pRDSamples (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Drate_control.cpp274 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()
733 prev_actual_bits = pMP->pRDSamples[0][0].actual_bits; in calculateQuantizer_Multipass()
734 prev_mad = pMP->pRDSamples[0][0].mad; in calculateQuantizer_Multipass()
738 if (pMP->pRDSamples[i][0].mad != 0 && prev_mad != 0 && in calculateQuantizer_Multipass()
739 PV_ABS(prev_mad - curr_mad) > PV_ABS(pMP->pRDSamples[i][0].mad - curr_mad)) in calculateQuantizer_Multipass()
741 prev_mad = pMP->pRDSamples[i][0].mad; in calculateQuantizer_Multipass()
742 prev_actual_bits = pMP->pRDSamples[i][0].actual_bits; in calculateQuantizer_Multipass()
[all …]
Dmp4enc_api.cpp856 video->pMP[idx]->pRDSamples = (RDInfo **)M4VENC_MALLOC(30 * sizeof(RDInfo *)); in PVInitVideoEncoder()
857 if (video->pMP[idx]->pRDSamples == NULL) goto CLEAN_UP; in PVInitVideoEncoder()
860 video->pMP[idx]->pRDSamples[i] = (RDInfo *)M4VENC_MALLOC(32 * sizeof(RDInfo)); in PVInitVideoEncoder()
861 if (video->pMP[idx]->pRDSamples[i] == NULL) goto CLEAN_UP; in PVInitVideoEncoder()
862 …for (j = 0; j < 32; j++) M4VENC_MEMSET(&(video->pMP[idx]->pRDSamples[i][j]), 0, sizeof(RDInfo)); in PVInitVideoEncoder()
1237 if (video->pMP[idx]->pRDSamples) in PVCleanUpVideoEncoder()
1241 if (video->pMP[idx]->pRDSamples[i]) in PVCleanUpVideoEncoder()
1242 M4VENC_FREE(video->pMP[idx]->pRDSamples[i]); in PVCleanUpVideoEncoder()
1244 M4VENC_FREE(video->pMP[idx]->pRDSamples); in PVCleanUpVideoEncoder()
Dmp4lib_int.h284 …RDInfo **pRDSamples; /* pRDSamples[30][32], 30->30fps, 32 -> 5 bit quantizer, 32 candidates… member