Home
last modified time | relevance | path

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

/external/opencore/codecs_v2/video/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()
566 … pMP->aver_mad = (pMP->aver_mad * pMP->encoded_frames + curr_mad) / (pMP->encoded_frames + 1); in targetBitCalculation()
575 if (curr_mad > pMP->aver_mad*1.1) in targetBitCalculation()
577 if (curr_mad / (pMP->aver_mad + 0.0001) > 2) in targetBitCalculation()
578 … diff_counter_BTdst = (Int)(M4VENC_SQRT(curr_mad / (pMP->aver_mad + 0.0001)) * 10 + 0.4) - 10; in targetBitCalculation()
581 diff_counter_BTdst = (Int)(curr_mad / (pMP->aver_mad + 0.0001) * 10 + 0.4) - 10; in targetBitCalculation()
585 … diff_counter_BTsrc = 10 - (Int)(M4VENC_SQRT(curr_mad / (pMP->aver_mad + 0.0001)) * 10 + 0.5); in targetBitCalculation()
590 curr_mad <= pMP->aver_mad*1.1 && pMP->counter_BTsrc < pMP->counter_BTdst) in targetBitCalculation()
[all …]
Dmp4lib_int.h300 float aver_mad; /* so-far average mad could replace sum_mad */ member
/external/opencore/codecs_v2/video/avc_h264/enc/src/
Drate_control.cpp554 … pMP->aver_mad = (pMP->aver_mad * pMP->encoded_frames + curr_mad) / (pMP->encoded_frames + 1); in targetBitCalculation()
563 if (curr_mad > pMP->aver_mad*1.1) in targetBitCalculation()
565 if (curr_mad / (pMP->aver_mad + 0.0001) > 2) in targetBitCalculation()
566 … diff_counter_BTdst = (int)(oscl_sqrt(curr_mad / (pMP->aver_mad + 0.0001)) * 10 + 0.4) - 10; in targetBitCalculation()
569 diff_counter_BTdst = (int)(curr_mad / (pMP->aver_mad + 0.0001) * 10 + 0.4) - 10; in targetBitCalculation()
573 … diff_counter_BTsrc = 10 - (int)(oscl_sqrt(curr_mad / (pMP->aver_mad + 0.0001)) * 10 + 0.5); in targetBitCalculation()
577 curr_mad <= pMP->aver_mad*1.1 && pMP->counter_BTsrc < pMP->counter_BTdst) in targetBitCalculation()
681 …pMP->aver_mad = (pMP->aver_mad * pMP->encoded_frames - pMP->mad) / (pMP->encoded_frames - 1 + 0.00… in updateRC_PostProc()
Davcenc_int.h197 OsclFloat aver_mad; /* so-far average mad could replace sum_mad */ member