Lines Matching refs:VBV_fullness
152 rateCtrl->VBV_fullness -= tmp;
156 if (rateCtrl->VBV_fullness < rateCtrl->low_bound)
158 rateCtrl->VBV_fullness = rateCtrl->low_bound; // -rateCtrl->Bs/2;
159 rateCtrl->TMN_W = rateCtrl->VBV_fullness - rateCtrl->low_bound;
224 rateCtrl->VBV_fullness = (int)(rateCtrl->Bs * 0.5); /* rateCtrl->Bs */
229 rateCtrl->max_BitVariance_num = (int)((OsclFloat)(rateCtrl->Bs - rateCtrl->VBV_fullness) / (rateCtrl->bitsPerFrame / 10.0)) - 5;
234 rateCtrl->VBV_fullness = (int)(rateCtrl->Bs / 3.0 - rateCtrl->Bs / 2.0); /* the buffer range is [-Bs/2, Bs/2] */
236 rateCtrl->TMN_W = (int)(rateCtrl->VBV_fullness + rateCtrl->pMP->counter_BTsrc * (rateCtrl->bitsPerFrame / 10.0));
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 */
603 bound = (int)((rateCtrl->Bs / 2 - rateCtrl->VBV_fullness) * 0.6 / (pMP->target_bits_per_frame / 10)); /* rateCtrl->Bs */
681 /* some stuff in update VBV_fullness remains here */
682 //if(rateCtrl->VBV_fullness < -rateCtrl->Bs/2) /* rateCtrl->Bs */
683 if (rateCtrl->VBV_fullness < rateCtrl->low_bound)
685 rateCtrl->VBV_fullness = rateCtrl->low_bound; // -rateCtrl->Bs/2;
686 rateCtrl->TMN_W = rateCtrl->VBV_fullness - rateCtrl->low_bound;
865 rateCtrl->VBV_fullness += (rateCtrl->Rc - frame_bits); //rateCtrl->Rp);
866 //if(rateCtrl->VBV_fullness < 0) rateCtrl->VBV_fullness = -1;
873 if ((rateCtrl->VBV_fullness > rateCtrl->Bs / 2) && nal_type != AVC_NALTYPE_IDR) /* skip the current frame */ /* rateCtrl->Bs */
876 rateCtrl->VBV_fullness -= rateCtrl->Rc;
879 else if ((OsclFloat)(rateCtrl->VBV_fullness - rateCtrl->VBV_fullness_offset) > (rateCtrl->Bs / 2 - rateCtrl->VBV_fullness_offset)*0.95) /* skip next frame */
881 rateCtrl->VBV_fullness -= frame_bits; //rateCtrl->Rp;
885 //while(rateCtrl->VBV_fullness > rateCtrl->Bs*0.475)
886 while ((rateCtrl->VBV_fullness - rateCtrl->VBV_fullness_offset) > (rateCtrl->Bs / 2 - rateCtrl->VBV_fullness_offset)*0.95)
888 VBV_fullness -= frame_bits; //rateCtrl->Rp;