Skip to content

Commit

Permalink
Merge pull request #2026 from sijchen/fix_rc
Browse files Browse the repository at this point in the history
[Encoder] let qp clip to min/max qp available in all rc settings
  • Loading branch information
sijchen committed Jul 8, 2015
2 parents d04c7b9 + ee09f4d commit a8ae134
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions codec/encoder/core/src/ratectl.cpp
Expand Up @@ -506,10 +506,7 @@ void RcCalculatePictureQp (sWelsEncCtx* pEncCtx) {

iLumaQp = WELS_DIV_ROUND (iLumaQp * INT_MULTIPLY - pEncCtx->pVaa->sAdaptiveQuantParam.iAverMotionTextureIndexToDeltaQp,
INT_MULTIPLY);

if (! ((pEncCtx->pSvcParam->iRCMode == RC_BITRATE_MODE) && (pEncCtx->pSvcParam->bEnableFrameSkip == false)))
iLumaQp = WELS_CLIP3 (iLumaQp, pWelsSvcRc->iMinQp, pWelsSvcRc->iMaxQp);

iLumaQp = WELS_CLIP3 (iLumaQp, pWelsSvcRc->iMinQp, pWelsSvcRc->iMaxQp);
}
pEncCtx->iGlobalQp = iLumaQp;
}
Expand Down

0 comments on commit a8ae134

Please sign in to comment.