History

Add asm code for NoneZeroCount and refine related code

zhiliang wang committed 11 years ago

Commit 01b74ea1 parent 7d5e88f12 files · +56 −91Browse files

Showing the changes to codec/encoder/core/src/deblocking.cpp (1 of 12 files). Show all

Unified · Split

codec/encoder/core/src/deblocking.cpp+5−7
@@ -774,13 +774,6 @@ void PerformDeblockingFilter (sWelsEncCtx* pEnc) { · 773 unmodified lines
774 }774 }
775}775}
776 776
777void WelsNonZeroCount_c (int8_t* pNonZeroCount) {
778 int32_t i;
779
780 for (i = 0; i < 24; i++) {
781 pNonZeroCount[i] = !!pNonZeroCount[i];
782 }
783}
784void WelsBlockFuncInit (PSetNoneZeroCountZeroFunc* pfSetNZCZero, int32_t iCpu) {777void WelsBlockFuncInit (PSetNoneZeroCountZeroFunc* pfSetNZCZero, int32_t iCpu) {
785 *pfSetNZCZero = WelsNonZeroCount_c;778 *pfSetNZCZero = WelsNonZeroCount_c;
786#ifdef HAVE_NEON779#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#endif788#endif
789#if defined(X86_ASM)
790 if (iCpu & WELS_CPU_SSE2) {
791 *pfSetNZCZero = WelsNonZeroCount_sse2;
792 }
793#endif
796}794}
797 795
798void DeblockingInit (DeblockingFunc* pFunc, int32_t iCpu) {796void DeblockingInit (DeblockingFunc* pFunc, int32_t iCpu) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t