Home
last modified time | relevance | path

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

/external/opencore/codecs_v2/video/m4v_h263/enc/src/
Drate_control.cpp537 Int diff_counter_BTsrc, diff_counter_BTdst, prev_counter_diff, curr_counter_diff, bound; in targetBitCalculation() local
635 prev_counter_diff = pMP->counter_BTdst - pMP->counter_BTsrc; in targetBitCalculation()
636 curr_counter_diff = prev_counter_diff + (diff_counter_BTdst - diff_counter_BTsrc); in targetBitCalculation()
638 …if (PV_ABS(prev_counter_diff) >= rc->max_BitVariance_num || PV_ABS(curr_counter_diff) >= rc->max_B… in targetBitCalculation()
643 diff_counter_BTdst = (rc->max_BitVariance_num - prev_counter_diff) + diff_counter_BTsrc; in targetBitCalculation()
649 … diff_counter_BTsrc = diff_counter_BTdst - (-rc->max_BitVariance_num - prev_counter_diff); in targetBitCalculation()
/external/opencore/codecs_v2/video/avc_h264/enc/src/
Drate_control.cpp528 int diff_counter_BTsrc, diff_counter_BTdst, prev_counter_diff, curr_counter_diff, bound; in targetBitCalculation() local
621 prev_counter_diff = pMP->counter_BTdst - pMP->counter_BTsrc; in targetBitCalculation()
622 curr_counter_diff = prev_counter_diff + (diff_counter_BTdst - diff_counter_BTsrc); in targetBitCalculation()
624 …if (AVC_ABS(prev_counter_diff) >= rateCtrl->max_BitVariance_num || AVC_ABS(curr_counter_diff) >= r… in targetBitCalculation()
629 … diff_counter_BTdst = (rateCtrl->max_BitVariance_num - prev_counter_diff) + diff_counter_BTsrc; in targetBitCalculation()
635 … diff_counter_BTsrc = diff_counter_BTdst - (-rateCtrl->max_BitVariance_num - prev_counter_diff); in targetBitCalculation()