Searched refs:aver_mad (Results 1 – 4 of 4) sorted by relevance
498 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 …]
300 float aver_mad; /* so-far average mad could replace sum_mad */ member
554 … 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()
197 OsclFloat aver_mad; /* so-far average mad could replace sum_mad */ member