Home
last modified time | relevance | path

Searched refs:prev_mad (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Drate_control.cpp411 OsclFloat curr_mad, prev_mad, curr_RD, prev_RD, average_mad, aver_QP; in calculateQuantizer_Multipass() local
432 prev_mad = pMP->pRDSamples[i][0].mad; in calculateQuantizer_Multipass()
439 prev_mad = 0.0; in calculateQuantizer_Multipass()
441 while (i < pMP->frameRange && prev_mad < 0.001) /* find first one with nonzero prev_mad */ in calculateQuantizer_Multipass()
443 prev_mad = pMP->pRDSamples[i][0].mad; in calculateQuantizer_Multipass()
454 … AVC_ABS(prev_mad - curr_mad) > AVC_ABS(pMP->pRDSamples[i][0].mad - curr_mad)) in calculateQuantizer_Multipass()
456 prev_mad = pMP->pRDSamples[i][0].mad; in calculateQuantizer_Multipass()
475 if (prev_mad > 0.001) // only when prev_mad is greater than 0, otherwise keep using the same QP in calculateQuantizer_Multipass()
477 prev_RD = (OsclFloat)prev_actual_bits / prev_mad; in calculateQuantizer_Multipass()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Drate_control.cpp708 float curr_mad, prev_mad, curr_RD, prev_RD, average_mad, aver_QP; in calculateQuantizer_Multipass() local
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()
755 prev_RD = (float)prev_actual_bits / prev_mad; in calculateQuantizer_Multipass()