Searched refs:prev_RD (Results 1 – 2 of 2) sorted by relevance
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | rate_control.cpp | 708 float curr_mad, prev_mad, curr_RD, prev_RD, average_mad, aver_QP; in calculateQuantizer_Multipass() local 755 prev_RD = (float)prev_actual_bits / prev_mad; in calculateQuantizer_Multipass() 759 rc->Qc = (Int)(prev_RD / curr_RD + 0.5); in calculateQuantizer_Multipass() 763 rc->Qc = (Int)(prev_QP * M4VENC_SQRT(prev_RD / curr_RD) + 0.9); in calculateQuantizer_Multipass() 765 if (prev_RD / curr_RD > 0.5 && prev_RD / curr_RD < 2.0) in calculateQuantizer_Multipass() 766 …rc->Qc = (Int)(prev_QP * (M4VENC_SQRT(prev_RD / curr_RD) + prev_RD / curr_RD) / 2.0 + 0.9); /* Qua… in calculateQuantizer_Multipass() 768 …rc->Qc = (Int)(prev_QP * (M4VENC_SQRT(prev_RD / curr_RD) + M4VENC_POW(prev_RD / curr_RD, 1.0 / 3.0… in calculateQuantizer_Multipass()
|
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
D | rate_control.cpp | 411 OsclFloat curr_mad, prev_mad, curr_RD, prev_RD, average_mad, aver_QP; in calculateQuantizer_Multipass() local 477 prev_RD = (OsclFloat)prev_actual_bits / prev_mad; in calculateQuantizer_Multipass() 481 Qstep = (int)(prev_RD / curr_RD + 0.5); in calculateQuantizer_Multipass() 487 if (prev_RD / curr_RD > 0.5 && prev_RD / curr_RD < 2.0) in calculateQuantizer_Multipass() 488 …Qstep = (int)(prev_QP * (sqrt(prev_RD / curr_RD) + prev_RD / curr_RD) / 2.0 + 0.9); /* Quadratic a… in calculateQuantizer_Multipass() 490 …Qstep = (int)(prev_QP * (sqrt(prev_RD / curr_RD) + pow(prev_RD / curr_RD, 1.0 / 3.0)) / 2.0 + 0.9); in calculateQuantizer_Multipass()
|