Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 4 files). Show all
Unified · Split
| @@ -3384,8 +3384,11 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3383 unmodified lines | |||
| 3384 | 3384 | ||
| 3385 | #ifdef ENABLE_FRAME_DUMP | 3385 | #ifdef ENABLE_FRAME_DUMP |
| 3386 | // Dump reconstruction picture for each sQualityStat layer | 3386 | // Dump reconstruction picture for each sQualityStat layer |
| 3387 | if (iCurDid + 1 < pSvcParam->iSpatialLayerNum) | 3387 | if (iCurDid + 1 < pSvcParam->iSpatialLayerNum) { |
| 3388 | DumpDependencyRec (fsnr, &pSvcParam->sDependencyLayers[pSvcParam->iSpatialLayerNum].sRecFileName[0], iCurDid); | 3388 | DumpDependencyRec (fsnr, &pSvcParam->sDependencyLayers[pSvcParam->iSpatialLayerNum].sRecFileName[0], iCurDid, |
| 3389 | pCtx->bDependencyRecFlag[iCurDid]); | ||
| 3390 | pCtx->bDependencyRecFlag[iCurDid] = true; | ||
| 3391 | } | ||
| 3389 | #endif//ENABLE_FRAME_DUMP | 3392 | #endif//ENABLE_FRAME_DUMP |
| 3390 | 3393 | ||
| 3391 | #if defined(ENABLE_PSNR_CALC) | 3394 | #if defined(ENABLE_PSNR_CALC) |
| @@ -3551,7 +3554,8 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 159 unmodified lines | |||
| 3551 | 3554 | ||
| 3552 | #ifdef ENABLE_FRAME_DUMP | 3555 | #ifdef ENABLE_FRAME_DUMP |
| 3553 | DumpRecFrame (fsnr, &pSvcParam->sDependencyLayers[pSvcParam->iSpatialLayerNum - | 3556 | DumpRecFrame (fsnr, &pSvcParam->sDependencyLayers[pSvcParam->iSpatialLayerNum - |
| 3554 | 1].sRecFileName[0]); // pDecPic: final reconstruction output | 3557 | 1].sRecFileName[0], pCtx->bRecFlag); // pDecPic: final reconstruction output |
| 3558 | pCtx->bRecFlag = true; | ||
| 3555 | #endif//ENABLE_FRAME_DUMP | 3559 | #endif//ENABLE_FRAME_DUMP |
| 3556 | 3560 | ||
| 3557 | ++ pCtx->iCodingIndex; | 3561 | ++ pCtx->iCodingIndex; |