From e7b31844f68eb51137740c5eec29b35eb4994004 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 4 Aug 2013 13:24:15 +0200 Subject: x86: Split DCT and FFT initialization into separate files --- libavcodec/x86/fft_init.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'libavcodec/x86/fft_init.c') diff --git a/libavcodec/x86/fft_init.c b/libavcodec/x86/fft_init.c index af6084f096..7ca72c54a4 100644 --- a/libavcodec/x86/fft_init.c +++ b/libavcodec/x86/fft_init.c @@ -16,9 +16,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config.h" +#include "libavutil/attributes.h" #include "libavutil/cpu.h" #include "libavutil/x86/cpu.h" -#include "libavcodec/dct.h" #include "fft.h" av_cold void ff_fft_init_x86(FFTContext *s) @@ -54,17 +55,3 @@ av_cold void ff_fft_init_x86(FFTContext *s) s->fft_permutation = FF_FFT_PERM_AVX; } } - -#if CONFIG_DCT -av_cold void ff_dct_init_x86(DCTContext *s) -{ - int cpu_flags = av_get_cpu_flags(); - - if (EXTERNAL_SSE(cpu_flags)) - s->dct32 = ff_dct32_float_sse; - if (EXTERNAL_SSE2(cpu_flags)) - s->dct32 = ff_dct32_float_sse2; - if (EXTERNAL_AVX(cpu_flags)) - s->dct32 = ff_dct32_float_avx; -} -#endif -- cgit v1.2.3