Lines Matching refs:counter_BTsrc

116             pMP[n]->counter_BTsrc = (Int)((rc[n]->Bs / 2.0 - rc[n]->Bs / 3.0) / (rc[n]->bitrate / rc[n]->framerate / 10.0));
117 rc[n]->TMN_W = (Int)(rc[n]->VBV_fullness + pMP[n]->counter_BTsrc * (rc[n]->bitrate / rc[n]->framerate / 10.0));
131 pMP[n]->counter_BTdst = pMP[n]->counter_BTsrc = 0;
321 /* update pMP->counter_BTsrc, pMP->counter_BTdst */
326 pMP->counter_BTsrc += diff_BTCounter; /* pMP->actual_bits is smaller */
392 pMP->counter_BTsrc += 10 * num_skip;
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;
492 pMP[n]->counter_BTsrc = -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)
549 pMP->counter_BTsrc -= 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 */
673 pMP->counter_BTsrc += diff_counter_BTsrc;
788 pMP->counter_BTsrc <= (pMP->counter_BTdst + (Int)(pMP->framerate*1.0 + 0.5)))
792 pMP->counter_BTsrc++;
863 pMP->counter_BTsrc += 10 * rc->skip_next_frame;
869 pMP->counter_BTsrc += 10;
882 pMP->counter_BTsrc = pMP->counter_BTdst + (Int)((float)(rc->Bs / 2 - rc->low_bound) / 2.0 / (pMP->target_bits_per_frame / 10));