Home | History | Annotate | Download | only in src

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;
226 rateCtrl->VBV_fullness = (int)(rateCtrl->Bs * 0.5); /* rateCtrl->Bs */
231 rateCtrl->max_BitVariance_num = (int)((OsclFloat)(rateCtrl->Bs - rateCtrl->VBV_fullness) / (rateCtrl->bitsPerFrame / 10.0)) - 5;
236 rateCtrl->VBV_fullness = (int)(rateCtrl->Bs / 3.0 - rateCtrl->Bs / 2.0); /* the buffer range is [-Bs/2, Bs/2] */
238 rateCtrl->TMN_W = (int)(rateCtrl->VBV_fullness + rateCtrl->pMP->counter_BTsrc * (rateCtrl->bitsPerFrame / 10.0));
366 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 */
605 bound = (int)((rateCtrl->Bs / 2 - rateCtrl->VBV_fullness) * 0.6 / (pMP->target_bits_per_frame / 10)); /* rateCtrl->Bs */
683 /* some stuff in update VBV_fullness remains here */
684 //if(rateCtrl->VBV_fullness < -rateCtrl->Bs/2) /* rateCtrl->Bs */
685 if (rateCtrl->VBV_fullness < rateCtrl->low_bound)
687 rateCtrl->VBV_fullness = rateCtrl->low_bound; // -rateCtrl->Bs/2;
688 rateCtrl->TMN_W = rateCtrl->VBV_fullness - rateCtrl->low_bound;
867 rateCtrl->VBV_fullness += (rateCtrl->Rc - frame_bits); //rateCtrl->Rp);
868 //if(rateCtrl->VBV_fullness < 0) rateCtrl->VBV_fullness = -1;
875 if ((rateCtrl->VBV_fullness > rateCtrl->Bs / 2) && nal_type != AVC_NALTYPE_IDR) /* skip the current frame */ /* rateCtrl->Bs */
878 rateCtrl->VBV_fullness -= rateCtrl->Rc;
881 else if ((OsclFloat)(rateCtrl->VBV_fullness - rateCtrl->VBV_fullness_offset) > (rateCtrl->Bs / 2 - rateCtrl->VBV_fullness_offset)*0.95) /* skip next frame */
883 rateCtrl->VBV_fullness -= frame_bits; //rateCtrl->Rp;
887 //while(rateCtrl->VBV_fullness
888 while ((rateCtrl->VBV_fullness - rateCtrl->VBV_fullness_offset) > (rateCtrl->Bs / 2 - rateCtrl->VBV_fullness_offset)*0.95)
890 rateCtrl->VBV_fullness -= frame_bits; //rateCtrl->Rp;