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
774774 }
775775 }
776776
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−}
784777 void WelsBlockFuncInit (PSetNoneZeroCountZeroFunc* pfSetNZCZero, int32_t iCpu) {
785778 *pfSetNZCZero = WelsNonZeroCount_c;
786779 #ifdef HAVE_NEON
@@ -793,6 +786,11 @@ void WelsBlockFuncInit (PSetNoneZeroCountZeroFunc* pfSetNZCZero, int32_t iCpu) · 6 unmodified lines
793786 *pfSetNZCZero = WelsNonZeroCount_AArch64_neon;
794787 }
795788 #endif
789+#if defined(X86_ASM)
790+ if (iCpu & WELS_CPU_SSE2) {
791+ *pfSetNZCZero = WelsNonZeroCount_sse2;
792+ }
793+#endif
796794 }
797795
798796 void 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