Showing the changes to codec/decoder/core/src/decode_slice.cpp (1 of 12 files). Show all
Unified · Split
| @@ -2001,31 +2001,31 @@ int32_t WelsDecodeMbCavlcPSlice (PWelsDecoderContext pCtx, PNalUnit pNalCur, uin · 2000 unmodified lines | |||
| 2001 | } | 2001 | } |
| 2002 | 2002 | ||
| 2003 | void WelsBlockFuncInit (SBlockFunc* pFunc, int32_t iCpu) { | 2003 | void WelsBlockFuncInit (SBlockFunc* pFunc, int32_t iCpu) { |
| 2004 | pFunc->pWelsSetNonZeroCountFunc = WelsNonZeroCount_c; | 2004 | pFunc->pWelsSetNonZeroCountFunc = WelsNonZeroCount_c; |
| 2005 | pFunc->pWelsBlockZero16x16Func = WelsBlockZero16x16_c; | 2005 | pFunc->pWelsBlockZero16x16Func = WelsBlockZero16x16_c; |
| 2006 | pFunc->pWelsBlockZero8x8Func = WelsBlockZero8x8_c; | 2006 | pFunc->pWelsBlockZero8x8Func = WelsBlockZero8x8_c; |
| 2007 | 2007 | ||
| 2008 | #ifdef HAVE_NEON | 2008 | #ifdef HAVE_NEON |
| 2009 | if (iCpu & WELS_CPU_NEON) { | 2009 | if (iCpu & WELS_CPU_NEON) { |
| 2010 | pFunc->pWelsSetNonZeroCountFunc = WelsNonZeroCount_neon; | 2010 | pFunc->pWelsSetNonZeroCountFunc = WelsNonZeroCount_neon; |
| 2011 | pFunc->pWelsBlockZero16x16Func = WelsBlockZero16x16_neon; | 2011 | pFunc->pWelsBlockZero16x16Func = WelsBlockZero16x16_neon; |
| 2012 | pFunc->pWelsBlockZero8x8Func = WelsBlockZero8x8_neon; | 2012 | pFunc->pWelsBlockZero8x8Func = WelsBlockZero8x8_neon; |
| 2013 | } | 2013 | } |
| 2014 | #endif | 2014 | #endif |
| 2015 | 2015 | ||
| 2016 | #ifdef HAVE_NEON_AARCH64 | 2016 | #ifdef HAVE_NEON_AARCH64 |
| 2017 | if (iCpu & WELS_CPU_NEON) { | 2017 | if (iCpu & WELS_CPU_NEON) { |
| 2018 | pFunc->pWelsSetNonZeroCountFunc = WelsNonZeroCount_AArch64_neon; | 2018 | pFunc->pWelsSetNonZeroCountFunc = WelsNonZeroCount_AArch64_neon; |
| 2019 | pFunc->pWelsBlockZero16x16Func = WelsBlockZero16x16_AArch64_neon; | 2019 | pFunc->pWelsBlockZero16x16Func = WelsBlockZero16x16_AArch64_neon; |
| 2020 | pFunc->pWelsBlockZero8x8Func = WelsBlockZero8x8_AArch64_neon; | 2020 | pFunc->pWelsBlockZero8x8Func = WelsBlockZero8x8_AArch64_neon; |
| 2021 | } | 2021 | } |
| 2022 | #endif | 2022 | #endif |
| 2023 | 2023 | ||
| 2024 | #if defined(X86_ASM) | 2024 | #if defined(X86_ASM) |
| 2025 | if (iCpu & WELS_CPU_SSE2) { | 2025 | if (iCpu & WELS_CPU_SSE2) { |
| 2026 | pFunc->pWelsSetNonZeroCountFunc = WelsNonZeroCount_sse2; | 2026 | pFunc->pWelsSetNonZeroCountFunc = WelsNonZeroCount_sse2; |
| 2027 | pFunc->pWelsBlockZero16x16Func = WelsBlockZero16x16_sse2; | 2027 | pFunc->pWelsBlockZero16x16Func = WelsBlockZero16x16_sse2; |
| 2028 | pFunc->pWelsBlockZero8x8Func = WelsBlockZero8x8_sse2; | 2028 | pFunc->pWelsBlockZero8x8Func = WelsBlockZero8x8_sse2; |
| 2029 | } | 2029 | } |
| 2030 | #endif | 2030 | #endif |
| 2031 | 2031 | ||