diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-08-04 13:24:15 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-08-21 20:15:27 +0200 |
commit | e7b31844f68eb51137740c5eec29b35eb4994004 (patch) | |
tree | c1e1a9b2512bdb1ec819d6793d6a59ced1710038 /libavcodec/x86/fft_init.c | |
parent | 60198742ff851f11a3757c713fc75a9c19b88566 (diff) | |
download | ffmpeg-e7b31844f68eb51137740c5eec29b35eb4994004.tar.gz |
x86: Split DCT and FFT initialization into separate files
Diffstat (limited to 'libavcodec/x86/fft_init.c')
-rw-r--r-- | libavcodec/x86/fft_init.c | 17 |
1 files changed, 2 insertions, 15 deletions
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 |