Lines Matching refs:counter_BTdst

131             pMP[n]->counter_BTdst = pMP[n]->counter_BTsrc = 0;
234 pMP->counter_BTdst = (Int)(video->encParams->LayerFrameRate[video->currLayer] * 7.5 + 0.5); /* 0.75s time frame */
235 pMP->counter_BTdst = PV_MIN(pMP->counter_BTdst, (Int)(rc->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 */
236 pMP->counter_BTdst = PV_MAX(pMP->counter_BTdst, (Int)((rc->Bs / 2 - rc->VBV_fullness) * 0.30 / (rc->TMN_TH / 10.0) + 0.5)); /* At least 30% of VBV buffer size/2 */
237 pMP->counter_BTdst = PV_MIN(pMP->counter_BTdst, 20); /* Limit the target to be smaller than 3C */
239 pMP->target_bits = rc->T = rc->TMN_TH = (Int)(rc->TMN_TH * (1.0 + pMP->counter_BTdst * 0.1));
240 pMP->diff_counter = pMP->counter_BTdst;
321 /* update pMP->counter_BTsrc, pMP->counter_BTdst */
328 pMP->counter_BTdst -= diff_BTCounter; /* pMP->actual_bits is bigger */
399 pMP->counter_BTsrc = pMP->counter_BTdst + (Int)((float)(rc->Bs / 2 - rc->low_bound) / 2.0 / (pMP->target_bits_per_frame / 10));
483 /* update pMP[n]->counter_BTdst and pMP[n]->counter_BTsrc */
487 pMP[n]->counter_BTdst = pMP[n]->counter_BTsrc = 0;
489 pMP[n]->counter_BTdst = diff_counter;
495 (pMP[n]->target_bits_per_frame / 10) * (pMP[n]->counter_BTdst - pMP[n]->counter_BTsrc));
538 /* BT = Bit Transfer, for pMP->counter_BTsrc, pMP->counter_BTdst */
546 /* update pMP->counter_BTsrc and pMP->counter_BTdst to avoid interger overflow */
547 if (pMP->counter_BTsrc > 1000 && pMP->counter_BTdst > 1000)
550 pMP->counter_BTdst -= 1000;
590 curr_mad <= pMP->aver_mad*1.1 && pMP->counter_BTsrc < pMP->counter_BTdst)
612 curr_mad <= pMP->aver_mad_prev*1.1 && pMP->counter_BTsrc < pMP->counter_BTdst)
635 prev_counter_diff = pMP->counter_BTdst - pMP->counter_BTsrc;
672 /*4.update pMP->counter_BTsrc, pMP->counter_BTdst */
674 pMP->counter_BTdst += diff_counter_BTdst;
788 pMP->counter_BTsrc <= (pMP->counter_BTdst + (Int)(pMP->framerate*1.0 + 0.5)))
868 pMP->counter_BTdst -= pMP->diff_counter;
882 pMP->counter_BTsrc = pMP->counter_BTdst + (Int)((float)(rc->Bs / 2 - rc->low_bound) / 2.0 / (pMP->target_bits_per_frame / 10));