diff x86/fft.c @ 12099:1bf322283429 libavcodec

SSE optimized 32-point DCT
author vitor
date Tue, 06 Jul 2010 16:58:54 +0000
parents 5cf49858179a
children db9ef48dc0e4
line wrap: on
line diff
--- a/x86/fft.c	Tue Jul 06 13:22:44 2010 +0000
+++ b/x86/fft.c	Tue Jul 06 16:58:54 2010 +0000
@@ -42,3 +42,11 @@
     }
 #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;
+}
+