Showing the changes to codec/encoder/core/src/encoder.cpp (1 of 38 files). Show all
Unified · Split
| @@ -152,8 +152,9 @@ void WelsInitBGDFunc (SWelsFuncPtrList* pFuncList, const bool kbEnableBackground · 151 unmodified lines | |||
| 152 | * \param pEncCtx sWelsEncCtx* | 152 | * \param pEncCtx sWelsEncCtx* |
| 153 | * \return successful - 0; otherwise none 0 for failed | 153 | * \return successful - 0; otherwise none 0 for failed |
| 154 | */ | 154 | */ |
| 155 | int32_t InitFunctionPointers (SWelsFuncPtrList* pFuncList, SWelsSvcCodingParam* pParam, uint32_t uiCpuFlag) { | 155 | int32_t InitFunctionPointers (sWelsEncCtx* pEncCtx, SWelsSvcCodingParam* pParam, uint32_t uiCpuFlag) { |
| 156 | int32_t iReturn = ENC_RETURN_SUCCESS; | 156 | int32_t iReturn = ENC_RETURN_SUCCESS; |
| 157 | SWelsFuncPtrList* pFuncList = pEncCtx->pFuncList; | ||
| 157 | bool bScreenContent = (SCREEN_CONTENT_REAL_TIME == pParam->iUsageType); | 158 | bool bScreenContent = (SCREEN_CONTENT_REAL_TIME == pParam->iUsageType); |
| 158 | 159 | ||
| 159 | /* Functionality utilization of CPU instructions dependency */ | 160 | /* Functionality utilization of CPU instructions dependency */ |
| @@ -209,7 +210,7 @@ int32_t InitFunctionPointers (SWelsFuncPtrList* pFuncList, SWelsSvcCodingParam* · 49 unmodified lines | |||
| 209 | /*init pixel average function*/ | 210 | /*init pixel average function*/ |
| 210 | /*get one column or row pixel when refinement*/ | 211 | /*get one column or row pixel when refinement*/ |
| 211 | WelsInitMcFuncs (pFuncList, uiCpuFlag); | 212 | WelsInitMcFuncs (pFuncList, uiCpuFlag); |
| 212 | InitCoeffFunc (pFuncList, uiCpuFlag); | 213 | InitCoeffFunc (pFuncList,uiCpuFlag,pParam->iEntropyCodingModeFlag); |
| 213 | 214 | ||
| 214 | WelsInitEncodingFuncs (pFuncList, uiCpuFlag); | 215 | WelsInitEncodingFuncs (pFuncList, uiCpuFlag); |
| 215 | WelsInitReconstructionFuncs (pFuncList, uiCpuFlag); | 216 | WelsInitReconstructionFuncs (pFuncList, uiCpuFlag); |