Searched refs:diff_counter_BTdst (Results 1 – 2 of 2) sorted by relevance
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
D | rate_control.cpp | 524 int diff_counter_BTsrc, diff_counter_BTdst, prev_counter_diff, curr_counter_diff, bound; in targetBitCalculation() local 541 diff_counter_BTsrc = diff_counter_BTdst = 0; in targetBitCalculation() 562 … diff_counter_BTdst = (int)(sqrt(curr_mad / (pMP->aver_mad + 0.0001)) * 10 + 0.4) - 10; in targetBitCalculation() 565 diff_counter_BTdst = (int)(curr_mad / (pMP->aver_mad + 0.0001) * 10 + 0.4) - 10; in targetBitCalculation() 572 if (diff_counter_BTsrc == 0 && diff_counter_BTdst == 0 && in targetBitCalculation() 583 … diff_counter_BTdst = (int)(sqrt(curr_mad / (pMP->aver_mad_prev + 0.0001)) * 10 + 0.4) - 10; in targetBitCalculation() 586 … diff_counter_BTdst = (int)(curr_mad / (pMP->aver_mad_prev + 0.0001) * 10 + 0.4) - 10; in targetBitCalculation() 593 if (diff_counter_BTsrc == 0 && diff_counter_BTdst == 0 && in targetBitCalculation() 605 diff_counter_BTdst = AVC_MIN(diff_counter_BTdst, bound); in targetBitCalculation() 613 diff_counter_BTdst = AVC_MIN(diff_counter_BTdst, bound); in targetBitCalculation() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | rate_control.cpp | 537 Int diff_counter_BTsrc, diff_counter_BTdst, prev_counter_diff, curr_counter_diff, bound; in targetBitCalculation() local 557 diff_counter_BTsrc = diff_counter_BTdst = 0; 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() 589 if (diff_counter_BTsrc == 0 && diff_counter_BTdst == 0 && in targetBitCalculation() 600 … diff_counter_BTdst = (Int)(M4VENC_SQRT(curr_mad / (pMP->aver_mad_prev + 0.0001)) * 10 + 0.4) - 10; in targetBitCalculation() 603 … diff_counter_BTdst = (Int)(curr_mad / (pMP->aver_mad_prev + 0.0001) * 10 + 0.4) - 10; in targetBitCalculation() 611 if (diff_counter_BTsrc == 0 && diff_counter_BTdst == 0 && in targetBitCalculation() 623 diff_counter_BTdst = PV_MIN(diff_counter_BTdst, bound); in targetBitCalculation() 631 diff_counter_BTdst = PV_MIN(diff_counter_BTdst, bound); in targetBitCalculation() [all …]
|