Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 4 files). Show all
Unified · Split
| @@ -3878,7 +3878,8 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3877 unmodified lines | |||
| 3878 | } | 3878 | } |
| 3879 | 3879 | ||
| 3880 | pCtx->pFuncList->pfRc.pfWelsRcPictureInfoUpdate (pCtx, iLayerSize); | 3880 | pCtx->pFuncList->pfRc.pfWelsRcPictureInfoUpdate (pCtx, iLayerSize); |
| 3881 | RcTraceFrameBits (pCtx, pFbi->uiTimeStamp); | 3881 | iFrameSize += iLayerSize; |
| 3882 | RcTraceFrameBits (pCtx, pFbi->uiTimeStamp, iFrameSize); | ||
| 3882 | pCtx->pDecPic->iFrameAverageQp = pCtx->pWelsSvcRc[iCurDid].iAverageFrameQp; | 3883 | pCtx->pDecPic->iFrameAverageQp = pCtx->pWelsSvcRc[iCurDid].iAverageFrameQp; |
| 3883 | 3884 | ||
| 3884 | //update scc related | 3885 | //update scc related |
| @@ -3894,7 +3895,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 9 unmodified lines | |||
| 3894 | } | 3895 | } |
| 3895 | } | 3896 | } |
| 3896 | 3897 | ||
| 3897 | iFrameSize += iLayerSize; | 3898 | |
| 3898 | //check MinCr | 3899 | //check MinCr |
| 3899 | { | 3900 | { |
| 3900 | int32_t iMinCrFrameSize = (pParam->iVideoWidth * pParam->iVideoHeight * 3) >> 2; //MinCr = 2; | 3901 | int32_t iMinCrFrameSize = (pParam->iVideoWidth * pParam->iVideoHeight * 3) >> 2; //MinCr = 2; |