Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 14 files). Show all
Unified · Split
| @@ -1005,11 +1005,14 @@ void InitPredFunc (PWelsDecoderContext pCtx, uint32_t uiCpuFlag) { · 1004 unmodified lines | |||
| 1005 | pCtx->pGetIChromaPredFunc[C_PRED_DC_T] = WelsDecoderIChromaPredDcTop_sse2; | 1005 | pCtx->pGetIChromaPredFunc[C_PRED_DC_T] = WelsDecoderIChromaPredDcTop_sse2; |
| 1006 | pCtx->pGetI4x4LumaPredFunc[I4_PRED_H] = WelsDecoderI4x4LumaPredH_sse2; | 1006 | pCtx->pGetI4x4LumaPredFunc[I4_PRED_H] = WelsDecoderI4x4LumaPredH_sse2; |
| 1007 | } | 1007 | } |
| 1008 | #if defined(HAVE_AVX2) | ||
| 1008 | if (uiCpuFlag & WELS_CPU_AVX2) { | 1009 | if (uiCpuFlag & WELS_CPU_AVX2) { |
| 1009 | pCtx->pIdctResAddPredFunc = IdctResAddPred_avx2; | 1010 | pCtx->pIdctResAddPredFunc = IdctResAddPred_avx2; |
| 1010 | pCtx->pIdctFourResAddPredFunc = IdctFourResAddPred_avx2; | 1011 | pCtx->pIdctFourResAddPredFunc = IdctFourResAddPred_avx2; |
| 1011 | } | 1012 | } |
| 1012 | #endif | 1013 | #endif |
| 1014 | |||
| 1015 | #endif | ||
| 1013 | } | 1016 | } |
| 1014 | 1017 | ||
| 1015 | //reset decoder number related statistics info | 1018 | //reset decoder number related statistics info |