Searched refs:prev_mad (Results 1 - 2 of 2) sorted by relevance
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | rate_control.cpp | 411 OsclFloat curr_mad, prev_mad, curr_RD, prev_RD, average_mad, aver_QP; local 432 prev_mad = pMP->pRDSamples[i][0].mad; 439 prev_mad = 0.0; 441 while (i < pMP->frameRange && prev_mad < 0.001) /* find first one with nonzero prev_mad */ 443 prev_mad = pMP->pRDSamples[i][0].mad; 454 AVC_ABS(prev_mad - curr_mad) > AVC_ABS(pMP->pRDSamples[i][0].mad - curr_mad)) 456 prev_mad = pMP->pRDSamples[i][0].mad; 475 if (prev_mad > 0.001) // only when prev_mad i [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | rate_control.cpp | 708 float curr_mad, prev_mad, curr_RD, prev_RD, average_mad, aver_QP; local 732 prev_mad = pMP->pRDSamples[0][0].mad; 736 if (pMP->pRDSamples[i][0].mad != 0 && prev_mad != 0 && 737 PV_ABS(prev_mad - curr_mad) > PV_ABS(pMP->pRDSamples[i][0].mad - curr_mad)) 739 prev_mad = pMP->pRDSamples[i][0].mad; 755 prev_RD = (float)prev_actual_bits / prev_mad;
|
Completed in 9 milliseconds