Showing the changes to codec/encoder/core/src/wels_preprocess.cpp (1 of 3 files). Show all
Unified · Split
| @@ -366,9 +366,17 @@ int32_t CWelsPreProcess::SingleLayerPreprocess (sWelsEncCtx* pCtx, const SSource · 365 unmodified lines | |||
| 366 | 366 | ||
| 367 | iSrcWidth = pSvcParam->SUsedPicRect.iWidth; | 367 | iSrcWidth = pSvcParam->SUsedPicRect.iWidth; |
| 368 | iSrcHeight = pSvcParam->SUsedPicRect.iHeight; | 368 | iSrcHeight = pSvcParam->SUsedPicRect.iHeight; |
| 369 | if (pSvcParam->uiIntraPeriod) | 369 | if (pSvcParam->uiIntraPeriod) { |
| 370 | pCtx->pVaa->bIdrPeriodFlag = (1 + pDlayerParamInternal->iFrameIndex >= (int32_t)pSvcParam->uiIntraPeriod) ? true : | 370 | pCtx->pVaa->bIdrPeriodFlag = (1 + pDlayerParamInternal->iFrameIndex >= (int32_t)pSvcParam->uiIntraPeriod) ? true : |
| 371 | false; | 371 | false; |
| 372 | if (pCtx->pVaa->bIdrPeriodFlag) { | ||
| 373 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG, | ||
| 374 | "pSvcParam->uiIntraPeriod=%d, pCtx->pVaa->bIdrPeriodFlag=%d", | ||
| 375 | pSvcParam->uiIntraPeriod, | ||
| 376 | pCtx->pVaa->bIdrPeriodFlag); | ||
| 377 | } | ||
| 378 | } | ||
| 379 | |||
| 372 | pSrcPic = pScaledPicture->pScaledInputPicture ? pScaledPicture->pScaledInputPicture : GetCurrentOrigFrame ( | 380 | pSrcPic = pScaledPicture->pScaledInputPicture ? pScaledPicture->pScaledInputPicture : GetCurrentOrigFrame ( |
| 373 | iDependencyId); | 381 | iDependencyId); |
| 374 | 382 | ||