Searched refs:diff_counter_BTdst (Results 1 - 2 of 2) sorted by relevance

/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Drate_control.cpp524 int diff_counter_BTsrc, diff_counter_BTdst, prev_counter_diff, curr_counter_diff, bound; local
541 diff_counter_BTsrc = diff_counter_BTdst = 0;
555 /*2.average_mad, mad ==> diff_counter_BTsrc, diff_counter_BTdst */
562 diff_counter_BTdst = (int)(sqrt(curr_mad / (pMP->aver_mad + 0.0001)) * 10 + 0.4) - 10;
563 //diff_counter_BTdst = (int)((sqrt(curr_mad/pMP->aver_mad)*2+curr_mad/pMP->aver_mad)/(3*0.1) + 0.4) - 10;
565 diff_counter_BTdst = (int)(curr_mad / (pMP->aver_mad + 0.0001) * 10 + 0.4) - 10;
572 if (diff_counter_BTsrc == 0 && diff_counter_BTdst == 0 &&
583 diff_counter_BTdst = (int)(sqrt(curr_mad / (pMP->aver_mad_prev + 0.0001)) * 10 + 0.4) - 10;
584 //diff_counter_BTdst = (int)((M4VENC_SQRT(curr_mad/pMP->aver_mad_prev)*2+curr_mad/pMP->aver_mad_prev)/(3*0.1) + 0.4) - 10;
586 diff_counter_BTdst
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Drate_control.cpp537 Int diff_counter_BTsrc, diff_counter_BTdst, prev_counter_diff, curr_counter_diff, bound; local
557 diff_counter_BTsrc = diff_counter_BTdst = 0;
571 /*2.average_mad, mad ==> diff_counter_BTsrc, diff_counter_BTdst */
578 diff_counter_BTdst = (Int)(M4VENC_SQRT(curr_mad / (pMP->aver_mad + 0.0001)) * 10 + 0.4) - 10;
579 //diff_counter_BTdst = (Int)((sqrt(curr_mad/pMP->aver_mad)*2+curr_mad/pMP->aver_mad)/(3*0.1) + 0.4) - 10;
581 diff_counter_BTdst = (Int)(curr_mad / (pMP->aver_mad + 0.0001) * 10 + 0.4) - 10;
589 if (diff_counter_BTsrc == 0 && diff_counter_BTdst == 0 &&
600 diff_counter_BTdst = (Int)(M4VENC_SQRT(curr_mad / (pMP->aver_mad_prev + 0.0001)) * 10 + 0.4) - 10;
601 //diff_counter_BTdst = (Int)((M4VENC_SQRT(curr_mad/pMP->aver_mad_prev)*2+curr_mad/pMP->aver_mad_prev)/(3*0.1) + 0.4) - 10;
603 diff_counter_BTdst
[all...]

Completed in 817 milliseconds