aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/fft.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2010-07-06 16:58:54 +0000
committerVitor Sessak <vitor1001@gmail.com>2010-07-06 16:58:54 +0000
commit4dcc4f8eaa23dc3ff85f6b4eed58d719e50cbe92 (patch)
tree5e72e1f3252b0a225d401749011ab953ba5f1767 /libavcodec/x86/fft.c
parentdefb0009cff57d66fe952915917864cc5b3a417f (diff)
downloadffmpeg-4dcc4f8eaa23dc3ff85f6b4eed58d719e50cbe92.tar.gz
SSE optimized 32-point DCT
Originally committed as revision 24077 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/x86/fft.c')
-rw-r--r--libavcodec/x86/fft.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/x86/fft.c b/libavcodec/x86/fft.c
index 2c46c6361b..6f641b6f02 100644
--- a/libavcodec/x86/fft.c
+++ b/libavcodec/x86/fft.c
@@ -42,3 +42,11 @@ av_cold void ff_fft_init_mmx(FFTContext *s)
}
#endif
}
+
+av_cold void ff_dct_init_mmx(DCTContext *s)
+{
+ int has_vectors = mm_support();
+ if (has_vectors & FF_MM_SSE && HAVE_SSE)
+ s->dct32 = ff_dct32_float_sse;
+}
+