Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Drate_control.cpp537 float curr_mad;//, average_mad; in targetBitCalculation() local
556 curr_mad = video->sumMAD / (float)currVol->nTotalMB; in targetBitCalculation()
557 if (curr_mad < MAD_MIN) curr_mad = MAD_MIN; /* MAD_MIN is defined as 1 in mp4def.h */ in targetBitCalculation()
563 pMP->sum_mad += curr_mad; in targetBitCalculation()
567 … pMP->aver_mad = (pMP->aver_mad * pMP->encoded_frames + curr_mad) / (pMP->encoded_frames + 1); in targetBitCalculation()
570 …pMP->aver_mad_prev = (pMP->aver_mad_prev * pMP->encoded_frames_prev + curr_mad) / (pMP->encoded_fr… 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()
[all …]