Searched refs:prev_RD (Results 1 – 2 of 2) sorted by relevance
/external/opencore/codecs_v2/video/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()
|
/external/opencore/codecs_v2/video/avc_h264/enc/src/ |
D | rate_control.cpp | 415 OsclFloat curr_mad, prev_mad, curr_RD, prev_RD, average_mad, aver_QP; in calculateQuantizer_Multipass() local 481 prev_RD = (OsclFloat)prev_actual_bits / prev_mad; in calculateQuantizer_Multipass() 485 Qstep = (int)(prev_RD / curr_RD + 0.5); in calculateQuantizer_Multipass() 491 if (prev_RD / curr_RD > 0.5 && prev_RD / curr_RD < 2.0) in calculateQuantizer_Multipass() 492 …Qstep = (int)(prev_QP * (oscl_sqrt(prev_RD / curr_RD) + prev_RD / curr_RD) / 2.0 + 0.9); /* Quadra… in calculateQuantizer_Multipass() 494 …Qstep = (int)(prev_QP * (oscl_sqrt(prev_RD / curr_RD) + oscl_pow(prev_RD / curr_RD, 1.0 / 3.0)) / … in calculateQuantizer_Multipass()
|