Showing the changes to codec/encoder/core/src/deblocking.cpp (1 of 12 files). Show all
Unified · Split
| @@ -774,13 +774,6 @@ void PerformDeblockingFilter (sWelsEncCtx* pEnc) { · 773 unmodified lines | |||
| 774 | } | 774 | } |
| 775 | } | 775 | } |
| 776 | 776 | ||
| 777 | void WelsNonZeroCount_c (int8_t* pNonZeroCount) { | ||
| 778 | int32_t i; | ||
| 779 | |||
| 780 | for (i = 0; i < 24; i++) { | ||
| 781 | pNonZeroCount[i] = !!pNonZeroCount[i]; | ||
| 782 | } | ||
| 783 | } | ||
| 784 | void WelsBlockFuncInit (PSetNoneZeroCountZeroFunc* pfSetNZCZero, int32_t iCpu) { | 777 | void WelsBlockFuncInit (PSetNoneZeroCountZeroFunc* pfSetNZCZero, int32_t iCpu) { |
| 785 | *pfSetNZCZero = WelsNonZeroCount_c; | 778 | *pfSetNZCZero = WelsNonZeroCount_c; |
| 786 | #ifdef HAVE_NEON | 779 | #ifdef HAVE_NEON |
| @@ -793,6 +786,11 @@ void WelsBlockFuncInit (PSetNoneZeroCountZeroFunc* pfSetNZCZero, int32_t iCpu) · 6 unmodified lines | |||
| 793 | *pfSetNZCZero = WelsNonZeroCount_AArch64_neon; | 786 | *pfSetNZCZero = WelsNonZeroCount_AArch64_neon; |
| 794 | } | 787 | } |
| 795 | #endif | 788 | #endif |
| 789 | #if defined(X86_ASM) | ||
| 790 | if (iCpu & WELS_CPU_SSE2) { | ||
| 791 | *pfSetNZCZero = WelsNonZeroCount_sse2; | ||
| 792 | } | ||
| 793 | #endif | ||
| 796 | } | 794 | } |
| 797 | 795 | ||
| 798 | void DeblockingInit (DeblockingFunc* pFunc, int32_t iCpu) { | 796 | void DeblockingInit (DeblockingFunc* pFunc, int32_t iCpu) { |