Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 3 files). Show all
Unified · Split
| @@ -3136,7 +3136,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, void* pDst, const SSourcePictur · 3135 unmodified lines | |||
| 3136 | pFbi->iLayerNum = 0; // for initialization | 3136 | pFbi->iLayerNum = 0; // for initialization |
| 3137 | 3137 | ||
| 3138 | // perform csc/denoise/downsample/padding, generate spatial layers | 3138 | // perform csc/denoise/downsample/padding, generate spatial layers |
| 3139 | iSpatialNum = pCtx->pVpp->WelsPreprocessStep1 (pCtx, ppSrcList, iConfiguredLayerNum); | 3139 | iSpatialNum = pCtx->pVpp->BuildSpatialPicList (pCtx, ppSrcList, iConfiguredLayerNum); |
| 3140 | if (iSpatialNum < 1) { // skip due to temporal layer settings (different frame rate) | 3140 | if (iSpatialNum < 1) { // skip due to temporal layer settings (different frame rate) |
| 3141 | ++ pCtx->iCodingIndex; | 3141 | ++ pCtx->iCodingIndex; |
| 3142 | return WELS_FRAME_TYPE_SKIP; | 3142 | return WELS_FRAME_TYPE_SKIP; |
| @@ -3184,7 +3184,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, void* pDst, const SSourcePictur · 41 unmodified lines | |||
| 3184 | SDLayerParam* param_d = &pSvcParam->sDependencyLayers[d_idx]; | 3184 | SDLayerParam* param_d = &pSvcParam->sDependencyLayers[d_idx]; |
| 3185 | 3185 | ||
| 3186 | pCtx->uiDependencyId = iCurDid = (int8_t)d_idx; | 3186 | pCtx->uiDependencyId = iCurDid = (int8_t)d_idx; |
| 3187 | pCtx->pVpp->WelsPreprocessStep3 (pCtx, d_idx); | 3187 | pCtx->pVpp->AnalyzeSpatialPic (pCtx, d_idx); |
| 3188 | 3188 | ||
| 3189 | pCtx->pEncPic = pEncPic = (pSpatialIndexMap + iSpatialIdx)->pSrc; | 3189 | pCtx->pEncPic = pEncPic = (pSpatialIndexMap + iSpatialIdx)->pSrc; |
| 3190 | pCtx->pEncPic->iPictureType = pCtx->eSliceType; | 3190 | pCtx->pEncPic->iPictureType = pCtx->eSliceType; |