Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Drate_control.cpp498 if (pMP[n]->aver_mad != 0) in RC_UpdateBXRCParams()
500 pMP[n]->aver_mad_prev = pMP[n]->aver_mad; in RC_UpdateBXRCParams()
504 pMP[n]->aver_mad = 0; in RC_UpdateBXRCParams()
567 … pMP->aver_mad = (pMP->aver_mad * pMP->encoded_frames + curr_mad) / (pMP->encoded_frames + 1); in targetBitCalculation()
576 if (curr_mad > pMP->aver_mad*1.1) in targetBitCalculation()
578 if (curr_mad / (pMP->aver_mad + 0.0001) > 2) in targetBitCalculation()
579 … diff_counter_BTdst = (Int)(M4VENC_SQRT(curr_mad / (pMP->aver_mad + 0.0001)) * 10 + 0.4) - 10; in targetBitCalculation()
582 diff_counter_BTdst = (Int)(curr_mad / (pMP->aver_mad + 0.0001) * 10 + 0.4) - 10; in targetBitCalculation()
586 … diff_counter_BTsrc = 10 - (Int)(M4VENC_SQRT(curr_mad / (pMP->aver_mad + 0.0001)) * 10 + 0.5); in targetBitCalculation()
591 curr_mad <= pMP->aver_mad*1.1 && pMP->counter_BTsrc < pMP->counter_BTdst) in targetBitCalculation()
[all …]
Dmp4lib_int.h299 float aver_mad; /* so-far average mad could replace sum_mad */ member