Showing the changes to codec/decoder/core/src/decode_slice.cpp (1 of 12 files). Show all
Unified · Split
| @@ -1150,9 +1150,11 @@ void WelsBlockFuncInit (SBlockFunc* pFunc, int32_t iCpu) { · 1149 unmodified lines | ||
| 1150 | 1150 | #endif |
| 1151 | 1151 | |
| 1152 | 1152 | #ifdef HAVE_NEON |
| 1153 | − pFunc->pWelsBlockZero16x16Func = WelsResBlockZero16x16_neon; | |
| 1154 | − pFunc->pWelsBlockZero8x8Func = WelsResBlockZero8x8_neon; | |
| 1155 | − pFunc->pWelsSetNonZeroCountFunc = SetNonZeroCount_neon; | |
| 1153 | + if ( iCpu & WELS_CPU_NEON ) { | |
| 1154 | + pFunc->pWelsBlockZero16x16Func = WelsResBlockZero16x16_neon; | |
| 1155 | + pFunc->pWelsBlockZero8x8Func = WelsResBlockZero8x8_neon; | |
| 1156 | + pFunc->pWelsSetNonZeroCountFunc = SetNonZeroCount_neon; | |
| 1157 | + } | |
| 1156 | 1158 | #endif |
| 1157 | 1159 | } |
| 1158 | 1160 | void WelsBlockZero16x16_c (int16_t* pBlock, int32_t iStride) { |