Lines Matching refs:m_nLongTermQP64
323 ct->m_nLongTermQP64 = 0; in cvbr_InitRateControl()
394 if (delta>0 && ((ct->m_nLastFrameAvgQStep[0]<<6)>ct->m_nLongTermQP64)) in cvbr_InitFrame()
476 … ct->m_nLongTermQP64 += ((ct->m_nLastFrameAvgQStep[0]<<6)-ct->m_nLongTermQP64) / ct->m_nFrameCount; in cvbr_UpdateFrame()
479 ct->m_nLongTermQP64 = ct->m_nLastFrameAvgQStep[0]<<6; in cvbr_UpdateFrame()
481 …ct->m_nLongTermQP64 = (ct->m_nLongTermQP64*(ct->m_nDeputyCount-1) + (ct->m_nLastFrameAvgQStep[0]<<… in cvbr_UpdateFrame()
506 if ( ct->m_nLongTermQP64>(rcQP2Qstep(ct, ct->m_nFrameSkipThrQP)<<6) in cvbr_UpdateFrame()
621 nAdjust = ct->m_nLongTermQP64>>2; in cvbr_ComputeFrameQStep()
622 nLowBound = (ct->m_nLongTermQP64 - nAdjust) >> 6; in cvbr_ComputeFrameQStep()
623 nHighBound = (ct->m_nLongTermQP64 + nAdjust) >> 6; in cvbr_ComputeFrameQStep()
633 …tmp= MFE_DIV_S64((MS_S64)ct->m_nLongTermQP64 * MFE_DIV_S64(ct->m_nTotalBits,ct->m_nFrameCount), ct… in cvbr_ComputeFrameQStep()
637 MFE_DIV_S64((MS_S64)ct->m_nLongTermQP64 * MFE_DIV_S64(ct->m_nTotalBits,ct->m_nFrameCount), in cvbr_ComputeFrameQStep()
643 … if ((ct->m_nLastFrameAvgQStep[0]<<6) > ct->m_nLongTermQP64) { // Danger! Make it more aggressive in cvbr_ComputeFrameQStep()
655 if ((newQPStep<<6) < ct->m_nLongTermQP64) in cvbr_ComputeFrameQStep()
656 newQPStep = ct->m_nLongTermQP64>>6; in cvbr_ComputeFrameQStep()
659 if ((newQPStep<<6) >= ct->m_nLongTermQP64) in cvbr_ComputeFrameQStep()
660 newQPStep = (ct->m_nLongTermQP64>>6)-1; in cvbr_ComputeFrameQStep()
674 if ((ct->m_nLastFrameAvgQStep[0]<<6) > ct->m_nLongTermQP64) in cvbr_ComputeFrameQStep()
682 (MS_S64)ct->m_nLongTermQP64 * MFE_DIV_S64(ct->m_nTotalBits,ct->m_nFrameCount), in cvbr_ComputeFrameQStep()
688 (MS_S64)ct->m_nLongTermQP64 * MFE_DIV_S64(ct->m_nTotalBits,ct->m_nFrameCount), in cvbr_ComputeFrameQStep()
694 nAdjLTQ = ct->m_nLongTermQP64>>6; // Wait for stabilization in cvbr_ComputeFrameQStep()