History

add option for enable/disable AVX2

Guangwei Wang committed 10 years ago

Commit 7d00e8b1 parent 898073114 files · +56 −1Browse files

Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 14 files). Show all

Unified · Split

codec/decoder/core/src/decoder.cpp+3−0
@@ -1005,11 +1005,14 @@ void InitPredFunc (PWelsDecoderContext pCtx, uint32_t uiCpuFlag) { · 1004 unmodified lines
10051005 pCtx->pGetIChromaPredFunc[C_PRED_DC_T] = WelsDecoderIChromaPredDcTop_sse2;
10061006 pCtx->pGetI4x4LumaPredFunc[I4_PRED_H] = WelsDecoderI4x4LumaPredH_sse2;
10071007 }
1008+#if defined(HAVE_AVX2)
10081009 if (uiCpuFlag & WELS_CPU_AVX2) {
10091010 pCtx->pIdctResAddPredFunc = IdctResAddPred_avx2;
10101011 pCtx->pIdctFourResAddPredFunc = IdctFourResAddPred_avx2;
10111012 }
10121013 #endif
1014+
1015+#endif
10131016 }
10141017
10151018 //reset decoder number related statistics info

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