aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/fft.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2011-05-14 14:17:15 +0200
committerReinhard Tartler <siretart@tauware.de>2011-05-21 17:42:26 +0200
commit6204feb160c843320f6001d7e2bb2361c82b90ca (patch)
tree7dca115f3bbb36703fadbf3dda48ab593964e44a /libavcodec/x86/fft.c
parent4e653b98c888a922ee192c6c8f914dde6ea2dc40 (diff)
downloadffmpeg-6204feb160c843320f6001d7e2bb2361c82b90ca.tar.gz
dct32: Add AVX implementation of 32-point DCT
Diffstat (limited to 'libavcodec/x86/fft.c')
-rw-r--r--libavcodec/x86/fft.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/x86/fft.c b/libavcodec/x86/fft.c
index b29412c1dc..8eef4214a2 100644
--- a/libavcodec/x86/fft.c
+++ b/libavcodec/x86/fft.c
@@ -57,7 +57,9 @@ av_cold void ff_fft_init_mmx(FFTContext *s)
av_cold void ff_dct_init_mmx(DCTContext *s)
{
int has_vectors = av_get_cpu_flags();
- if (has_vectors & AV_CPU_FLAG_SSE && HAVE_SSE)
+ if (has_vectors & AV_CPU_FLAG_AVX && HAVE_AVX)
+ s->dct32 = ff_dct32_float_avx;
+ else if (has_vectors & AV_CPU_FLAG_SSE && HAVE_SSE)
s->dct32 = ff_dct32_float_sse;
}
#endif