Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Drate_control.cpp798 int diff_BTCounter; in RCUpdateFrame() local
819 diff_BTCounter = (int)((OsclFloat)(rateCtrl->TMN_TH - rateCtrl->TMN_W - pMP->actual_bits) / in RCUpdateFrame()
821 if (diff_BTCounter >= 0) in RCUpdateFrame()
822 pMP->counter_BTsrc += diff_BTCounter; /* pMP->actual_bits is smaller */ in RCUpdateFrame()
824 pMP->counter_BTdst -= diff_BTCounter; /* pMP->actual_bits is bigger */ in RCUpdateFrame()
826 …trl->TMN_TH -= (int)((OsclFloat)pMP->bitrate / (pMP->framerate + 0.0001) * (diff_BTCounter * 0.1)); in RCUpdateFrame()
828 pMP->diff_counter -= diff_BTCounter; in RCUpdateFrame()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Drate_control.cpp296 Int diff_BTCounter; in RC_VopUpdateStat() local
323 diff_BTCounter = (Int)((float)(rc->TMN_TH - rc->TMN_W - pMP->actual_bits) / in RC_VopUpdateStat()
325 if (diff_BTCounter >= 0) in RC_VopUpdateStat()
326 pMP->counter_BTsrc += diff_BTCounter; /* pMP->actual_bits is smaller */ in RC_VopUpdateStat()
328 pMP->counter_BTdst -= diff_BTCounter; /* pMP->actual_bits is bigger */ in RC_VopUpdateStat()
330 … rc->TMN_TH -= (Int)((float)pMP->bitrate / (pMP->framerate + 0.0001) * (diff_BTCounter * 0.1)); in RC_VopUpdateStat()
332 pMP->diff_counter -= diff_BTCounter; in RC_VopUpdateStat()