Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Drate_control.cpp710 float curr_mad, prev_mad, curr_RD, prev_RD, average_mad, aver_QP; in calculateQuantizer_Multipass() local
730 curr_RD = (float)curr_target / curr_mad; in calculateQuantizer_Multipass()
761 rc->Qc = (Int)(prev_RD / curr_RD + 0.5); in calculateQuantizer_Multipass()
765 rc->Qc = (Int)(prev_QP * M4VENC_SQRT(prev_RD / curr_RD) + 0.9); in calculateQuantizer_Multipass()
767 if (prev_RD / curr_RD > 0.5 && prev_RD / curr_RD < 2.0) in calculateQuantizer_Multipass()
768 …rc->Qc = (Int)(prev_QP * (M4VENC_SQRT(prev_RD / curr_RD) + prev_RD / curr_RD) / 2.0 + 0.9); /* Qua… in calculateQuantizer_Multipass()
770 …rc->Qc = (Int)(prev_QP * (M4VENC_SQRT(prev_RD / curr_RD) + M4VENC_POW(prev_RD / curr_RD, 1.0 / 3.0… in calculateQuantizer_Multipass()