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
1005 pCtx->pGetIChromaPredFunc[C_PRED_DC_T] = WelsDecoderIChromaPredDcTop_sse2;1005 pCtx->pGetIChromaPredFunc[C_PRED_DC_T] = WelsDecoderIChromaPredDcTop_sse2;
1006 pCtx->pGetI4x4LumaPredFunc[I4_PRED_H] = WelsDecoderI4x4LumaPredH_sse2;1006 pCtx->pGetI4x4LumaPredFunc[I4_PRED_H] = WelsDecoderI4x4LumaPredH_sse2;
1007 }1007 }
1008#if defined(HAVE_AVX2)
1008 if (uiCpuFlag & WELS_CPU_AVX2) {1009 if (uiCpuFlag & WELS_CPU_AVX2) {
1009 pCtx->pIdctResAddPredFunc = IdctResAddPred_avx2;1010 pCtx->pIdctResAddPredFunc = IdctResAddPred_avx2;
1010 pCtx->pIdctFourResAddPredFunc = IdctFourResAddPred_avx2;1011 pCtx->pIdctFourResAddPredFunc = IdctFourResAddPred_avx2;
1011 }1012 }
1012#endif1013#endif
1014
1015#endif
1013}1016}
1014 1017
1015//reset decoder number related statistics info1018//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