Home | History | Annotate | Download | only in src

Lines Matching refs:counter_BTdst

160                 pMP->counter_BTsrc = pMP->counter_BTdst + (int)((OsclFloat)(rateCtrl->Bs / 2 - rateCtrl->low_bound) / 2.0 / (pMP->target_bits_per_frame / 10));
362 pMP->counter_BTdst = (int)(rateCtrl->frame_rate * 7.5 + 0.5); /* 0.75s time frame */
363 pMP->counter_BTdst = AVC_MIN(pMP->counter_BTdst, (int)(rateCtrl->max_BitVariance_num / 2 * 0.40)); /* 0.75s time frame may go beyond VBV buffer if we set the buffer size smaller than 0.75s */
364 pMP->counter_BTdst = AVC_MAX(pMP->counter_BTdst, (int)((rateCtrl->Bs / 2 - rateCtrl->VBV_fullness) * 0.30 / (rateCtrl->TMN_TH / 10.0) + 0.5)); /* At least 30% of VBV buffer size/2 */
365 pMP->counter_BTdst = AVC_MIN(pMP->counter_BTdst, 20); /* Limit the target to be smaller than 3C */
367 pMP->target_bits = rateCtrl->T = rateCtrl->TMN_TH = (int)(rateCtrl->TMN_TH * (1.0 + pMP->counter_BTdst * 0.1));
368 pMP->diff_counter = pMP->counter_BTdst;
510 pMP->counter_BTsrc <= (pMP->counter_BTdst + (int)(pMP->framerate*1.0 + 0.5)))
525 /* BT = Bit Transfer, for pMP->counter_BTsrc, pMP->counter_BTdst */
530 /* update pMP->counter_BTsrc and pMP->counter_BTdst to avoid interger overflow */
531 if (pMP->counter_BTsrc > 1000 && pMP->counter_BTdst > 1000)
534 pMP->counter_BTdst -= 1000;
573 curr_mad <= pMP->aver_mad*1.1 && pMP->counter_BTsrc < pMP->counter_BTdst)
594 curr_mad <= pMP->aver_mad_prev*1.1 && pMP->counter_BTsrc < pMP->counter_BTdst)
617 prev_counter_diff = pMP->counter_BTdst - pMP->counter_BTsrc;
653 /*4.update pMP->counter_BTsrc, pMP->counter_BTdst */
655 pMP->counter_BTdst += diff_counter_BTdst;
673 pMP->counter_BTdst -= pMP->diff_counter;
687 pMP->counter_BTsrc = pMP->counter_BTdst + (int)((OsclFloat)(rateCtrl->Bs / 2 - rateCtrl->low_bound) / 2.0 / (pMP->target_bits_per_frame / 10));
817 /* update pMP->counter_BTsrc, pMP->counter_BTdst */
824 pMP->counter_BTdst -= diff_BTCounter; /* pMP->actual_bits is bigger */