Showing the changes to codec/encoder/core/src/ratectl.cpp (1 of 4 files). Show all
Unified · Split
| @@ -709,7 +709,7 @@ void RcVBufferCalculationSkip (sWelsEncCtx* pEncCtx) { · 708 unmodified lines | ||
| 709 | 709 | || (dIncPercent > pWelsSvcRc->iRcVaryPercentage)) { |
| 710 | 710 | pEncCtx->iSkipFrameFlag = 1; |
| 711 | 711 | pWelsSvcRc->iBufferFullnessSkip = pWelsSvcRc->iBufferFullnessSkip - kiOutputBits; |
| 712 | − WelsLog (& (pEncCtx->sLogCtx), WELS_LOG_INFO,"skip one frame"); | |
| 712 | + WelsLog (& (pEncCtx->sLogCtx), WELS_LOG_INFO, "skip one frame"); | |
| 713 | 713 | } |
| 714 | 714 | |
| 715 | 715 | if (pWelsSvcRc->iBufferFullnessSkip < 0) |
| @@ -1005,8 +1005,10 @@ void WelRcPictureInitBufferBasedQp (void* pCtx) { · 289 unmodified lines | ||
| 1005 | 1005 | iMinQp = MIN_SCREEN_QP + 1; |
| 1006 | 1006 | else |
| 1007 | 1007 | iMinQp = MIN_SCREEN_QP; |
| 1008 | − | |
| 1009 | − pEncCtx->iGlobalQp += pEncCtx->iDropNumber; | |
| 1008 | + if (pEncCtx->bDeliveryFlag) | |
| 1009 | + pEncCtx->iGlobalQp -= 1; | |
| 1010 | + else | |
| 1011 | + pEncCtx->iGlobalQp += 2; | |
| 1010 | 1012 | pEncCtx->iGlobalQp = WELS_CLIP3 (pEncCtx->iGlobalQp, iMinQp, MAX_SCREEN_QP); |
| 1011 | 1013 | } |
| 1012 | 1014 | void WelsRcInitModule (void* pCtx, RC_MODES iRcMode) { |