Showing the changes to codec/decoder/core/src/decode_slice.cpp (1 of 5 files). Show all
Unified · Split
| @@ -1644,15 +1644,25 @@ void WelsBlockFuncInit (SBlockFunc* pFunc, int32_t iCpu) { · 1643 unmodified lines | ||
| 1644 | 1644 | //TO DO add neon and X86 |
| 1645 | 1645 | #ifdef HAVE_NEON |
| 1646 | 1646 | if (iCpu & WELS_CPU_NEON) { |
| 1647 | − | |
| 1647 | + pFunc->pWelsBlockZero16x16Func = WelsBlockZero16x16_neon; | |
| 1648 | + pFunc->pWelsBlockZero8x8Func = WelsBlockZero8x8_neon; | |
| 1648 | 1649 | } |
| 1649 | 1650 | #endif |
| 1650 | 1651 | |
| 1651 | 1652 | #ifdef HAVE_NEON_AARCH64 |
| 1652 | 1653 | if (iCpu & WELS_CPU_NEON) { |
| 1654 | + pFunc->pWelsBlockZero16x16Func = WelsBlockZero16x16_AArch64_neon; | |
| 1655 | + pFunc->pWelsBlockZero8x8Func = WelsBlockZero8x8_AArch64_neon; | |
| 1656 | + } | |
| 1657 | +#endif | |
| 1653 | 1658 | |
| 1659 | +#if defined(X86_ASM) | |
| 1660 | + if (iCpu & WELS_CPU_SSE2) { | |
| 1661 | + pFunc->pWelsBlockZero16x16Func = WelsBlockZero16x16_sse2; | |
| 1662 | + pFunc->pWelsBlockZero8x8Func = WelsBlockZero8x8_sse2; | |
| 1654 | 1663 | } |
| 1655 | 1664 | #endif |
| 1665 | + | |
| 1656 | 1666 | } |
| 1657 | 1667 | |
| 1658 | 1668 | void SetNonZeroCount_c (int8_t* pNonZeroCount) { |