Showing the changes to codec/processing/src/downsample/downsample.cpp (1 of 14 files). Show all
Unified · Split
| @@ -107,10 +107,12 @@ void CDownsampling::InitDownsampleFuncs (SDownsampleFuncs& sDownsampleFunc, int · 106 unmodified lines | ||
| 107 | 107 | sDownsampleFunc.pfQuarterDownsampler = DyadicBilinearQuarterDownsampler_sse4; |
| 108 | 108 | sDownsampleFunc.pfGeneralRatioChroma = GeneralBilinearAccurateDownsamplerWrap_sse41; |
| 109 | 109 | } |
| 110 | +#ifdef HAVE_AVX2 | |
| 110 | 111 | if (iCpuFlag & WELS_CPU_AVX2) { |
| 111 | 112 | sDownsampleFunc.pfGeneralRatioChroma = GeneralBilinearAccurateDownsamplerWrap_avx2; |
| 112 | 113 | sDownsampleFunc.pfGeneralRatioLuma = GeneralBilinearFastDownsamplerWrap_avx2; |
| 113 | 114 | } |
| 115 | +#endif | |
| 114 | 116 | #endif//X86_ASM |
| 115 | 117 | |
| 116 | 118 | #if defined(HAVE_NEON) |