Home | History | Annotate | Download | only in src

Lines Matching refs:VBV_fullness

73         rc[n]->VBV_fullness = (Int)(rc[n]->Bs * 0.5); /* rc[n]->Bs */
90 rc[n]->max_BitVariance_num = (Int)((float)(rc[n]->Bs - rc[n]->VBV_fullness) / ((float)LayerBitRate[n] / LayerFrameRate[n] / 10.0)) - 5;
99 rc[n]->max_BitVariance_num = (Int)((float)(rc[n]->Bs - rc[n]->VBV_fullness) * 10 / ((float)rc[n]->TMN_TH)) - 5;
115 rc[n]->VBV_fullness = (Int)(rc[n]->Bs / 3.0 - rc[n]->Bs / 2.0); /* the buffer range is [-Bs/2, Bs/2] */
117 rc[n]->TMN_W = (Int)(rc[n]->VBV_fullness + pMP[n]->counter_BTsrc * (rc[n]->bitrate / rc[n]->framerate / 10.0));
124 rc[n]->VBV_fullness = rc[n]->Bs - (Int)(video->encParams->VBV_delay * rc[n]->bitrate);
125 if (rc[n]->VBV_fullness < 0) rc[n]->VBV_fullness = 0;
126 //rc[n]->VBV_fullness = (rc[n]->Bs-video->encParams->maxFrameSize)/2 + video->encParams->maxFrameSize;
128 rc[n]->VBV_fullness -= rc[n]->Bs / 2; /* the buffer range is [-Bs/2, Bs/2] */
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 */
391 rc->VBV_fullness -= (Int)(rc->bitrate / rc->framerate * num_skip); //rc[currLayer]->Rp;
395 if (rc->VBV_fullness < rc->low_bound)
397 rc->VBV_fullness = rc->low_bound; // -rc->Bs/2;
398 rc->TMN_W = rc->VBV_fullness - rc->low_bound;
426 Int n, VBV_fullness;
443 VBV_fullness = (Int)(rc[n]->Bs * 0.5);
455 //rc[n]->max_BitVariance_num = (Int)((float)(rc[n]->Bs - rc[n]->VBV_fullness)/((float)LayerBitRate[n]/LayerFrameRate[n]/10.0))-5;
459 rc[n]->max_BitVariance_num = (Int)((float)(rc[n]->Bs - VBV_fullness) * 10 / ((float)LayerBitRate[n] / LayerFrameRate[n])) - 5;
467 rc[n]->max_BitVariance_num = (Int)((float)(rc[n]->Bs - VBV_fullness) * 10 / ((float)rc[n]->TMN_TH)) - 5;
482 /* rc[n]->VBV_fullness and rc[n]->TMN_W should be kept same */
484 diff_counter = (Int)((float)(rc[n]->VBV_fullness - rc[n]->TMN_W) /
494 rc[n]->TMN_W = (Int)(rc[n]->VBV_fullness - /* re-calculate rc[n]->TMN_W in order for higher accuracy */
621 bound = (Int)((rc->Bs / 2 - rc->VBV_fullness) * 0.6 / (pMP->target_bits_per_frame / 10)); /* rc->Bs */
816 rc->VBV_fullness += (rc->Rc - frame_bits); //rc->Rp);
817 //if(rc->VBV_fullness < 0) rc->VBV_fullness = -1;
825 (rc->VBV_fullness > rc->Bs / 2 && !rc->no_pre_skip)) /* skip the current frame */ /* rc->Bs */
828 rc->VBV_fullness -= rc->Rc;
831 else if ((float)(rc->VBV_fullness - rc->VBV_fullness_offset) > (rc->Bs / 2 - rc->VBV_fullness_offset)*0.95 &&
834 rc->VBV_fullness -= frame_bits; //rc->Rp;
837 //while(rc->VBV_fullness > rc->Bs*0.475)
838 while ((rc->VBV_fullness - rc->VBV_fullness_offset) > (rc->Bs / 2 - rc->VBV_fullness_offset)*0.95)
840 rc->VBV_fullness -= frame_bits; //rc->Rp;
876 /* some stuff in update VBV_fullness remains here */
877 //if(rc->VBV_fullness < -rc->Bs/2) /* rc->Bs */
878 if (rc->VBV_fullness < rc->low_bound)
880 rc->VBV_fullness = rc->low_bound; // -rc->Bs/2;
881 rc->TMN_W = rc->VBV_fullness - rc->low_bound;