Lines Matching refs:m_nLastFrameBits
322 ct->m_nLastFrameAvgQStep[0] = ct->m_nLastFrameAvgQStep[1] = ct->m_nLastFrameBits = 0; in cvbr_InitRateControl()
426 ct->m_nLastFrameBits = 0; in cvbr_InitFrame()
436 nTargetBits = ct->m_nTargetBits - ct->m_nLastFrameBits; in cvbr_InitFrame()
465 ct->m_nLastFrameBits += totalUsedBits; in cvbr_UpdateFrame()
507 && ct->m_nLastFrameBits >= (ct->m_nLastTargetBits<<1) ) { in cvbr_UpdateFrame()
509 … frameskip = (MS_S32)((ct->m_nLastFrameBits - ct->m_nLastTargetBits) / ct->m_nAvgBitsPerFrame - 1); in cvbr_UpdateFrame()
610 if (ct->m_nLastFrameBits > (buf_rest_pic*9)>>3) { in cvbr_ComputeFrameQStep()
613 else if (ct->m_nLastFrameBits < (buf_rest_pic*7)>>3) { in cvbr_ComputeFrameQStep()
640 if (ct->m_nLastFrameBits>ct->m_nLastTargetBits) { in cvbr_ComputeFrameQStep()
641 … nAdjust = ((ct->m_nLastFrameBits-ct->m_nLastTargetBits)/ct->m_nMaxOffset) + (1<<QS_SHIFT_FACTOR); in cvbr_ComputeFrameQStep()
702 if (ct->m_nLastFrameBits>ct->m_nLastTargetBits) { in cvbr_ComputeFrameQStep()
703 nAdjust = (MS_S32)(ct->m_nLastFrameBits/ct->m_nLastTargetBits); in cvbr_ComputeFrameQStep()