[Encoder] Refactor: add class for diff preprocess strategy
Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 3 files). Show all
Unified · Split
| @@ -2454,7 +2454,7 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 2453 unmodified lines | |||
| 2454 | WelsCabacInit (pCtx); | 2454 | WelsCabacInit (pCtx); |
| 2455 | WelsRcInitModule (pCtx, pCtx->pSvcParam->iRCMode); | 2455 | WelsRcInitModule (pCtx, pCtx->pSvcParam->iRCMode); |
| 2456 | 2456 | ||
| 2457 | pCtx->pVpp = new CWelsPreProcess (pCtx); | 2457 | pCtx->pVpp = CWelsPreProcess::CreatePreProcess(pCtx); |
| 2458 | if (pCtx->pVpp == NULL) { | 2458 | if (pCtx->pVpp == NULL) { |
| 2459 | iRet = 1; | 2459 | iRet = 1; |
| 2460 | WelsLog (pLogCtx, WELS_LOG_ERROR, "WelsInitEncoderExt(), pOut of memory in case new CWelsPreProcess()."); | 2460 | WelsLog (pLogCtx, WELS_LOG_ERROR, "WelsInitEncoderExt(), pOut of memory in case new CWelsPreProcess()."); |