Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all
Unified · Split
| @@ -3038,21 +3038,21 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3037 unmodified lines | |||
| 3038 | if (iSpatialNum < 1) { // skip due to temporal layer settings (different frame rate) | 3038 | if (iSpatialNum < 1) { // skip due to temporal layer settings (different frame rate) |
| 3039 | ++ pCtx->iCodingIndex; | 3039 | ++ pCtx->iCodingIndex; |
| 3040 | pFbi->eFrameType = videoFrameTypeSkip; | 3040 | pFbi->eFrameType = videoFrameTypeSkip; |
| 3041 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8d, skip one frame",pSrcPic->uiTimeStamp); | 3041 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8"PRId64", skip one frame", (int64_t)pSrcPic->uiTimeStamp); |
| 3042 | return ENC_RETURN_SUCCESS; | 3042 | return ENC_RETURN_SUCCESS; |
| 3043 | } | 3043 | } |
| 3044 | 3044 | ||
| 3045 | eFrameType = DecideFrameType (pCtx, iSpatialNum); | 3045 | eFrameType = DecideFrameType (pCtx, iSpatialNum); |
| 3046 | if (eFrameType == videoFrameTypeSkip) { | 3046 | if (eFrameType == videoFrameTypeSkip) { |
| 3047 | pFbi->eFrameType = eFrameType; | 3047 | pFbi->eFrameType = eFrameType; |
| 3048 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8d, skip one frame",pSrcPic->uiTimeStamp); | 3048 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8"PRId64", skip one frame", (int64_t)pSrcPic->uiTimeStamp); |
| 3049 | return ENC_RETURN_SUCCESS; | 3049 | return ENC_RETURN_SUCCESS; |
| 3050 | } | 3050 | } |
| 3051 | 3051 | ||
| 3052 | //loop each layer to check if have skip frame when RC and frame skip enable | 3052 | //loop each layer to check if have skip frame when RC and frame skip enable |
| 3053 | if (CheckFrameSkipBasedMaxbr (pCtx, iSpatialNum, eFrameType, (uint32_t)pSrcPic->uiTimeStamp)) { | 3053 | if (CheckFrameSkipBasedMaxbr (pCtx, iSpatialNum, eFrameType, (uint32_t)pSrcPic->uiTimeStamp)) { |
| 3054 | pFbi->eFrameType = videoFrameTypeSkip; | 3054 | pFbi->eFrameType = videoFrameTypeSkip; |
| 3055 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8d, skip one frame",pSrcPic->uiTimeStamp); | 3055 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8"PRId64", skip one frame", (int64_t)pSrcPic->uiTimeStamp); |
| 3056 | return ENC_RETURN_SUCCESS; | 3056 | return ENC_RETURN_SUCCESS; |
| 3057 | } | 3057 | } |
| 3058 | 3058 | ||