diff x86/dsputil_mmx.c @ 8510:cea216e44ee3 libavcodec

Add x264 SSE2 iDCT functions to H.264 decoder.
author darkshikari
date Sat, 03 Jan 2009 00:46:17 +0000
parents c45cc4e913dd
children cc64e1343397
line wrap: on
line diff
--- a/x86/dsputil_mmx.c	Fri Jan 02 16:21:22 2009 +0000
+++ b/x86/dsputil_mmx.c	Sat Jan 03 00:46:17 2009 +0000
@@ -2872,14 +2872,17 @@
             c->h264_v_loop_filter_luma_intra = ff_x264_deblock_v_luma_intra_mmxext;
             c->h264_h_loop_filter_luma_intra = ff_x264_deblock_h_luma_intra_mmxext;
 #endif
+            if( mm_flags&FF_MM_SSE2 ){
 #if defined(ARCH_X86_64) || !defined(__ICC) || __ICC > 1100
-            if( mm_flags&FF_MM_SSE2 ){
                 c->h264_v_loop_filter_luma = ff_x264_deblock_v_luma_sse2;
                 c->h264_h_loop_filter_luma = ff_x264_deblock_h_luma_sse2;
                 c->h264_v_loop_filter_luma_intra = ff_x264_deblock_v_luma_intra_sse2;
                 c->h264_h_loop_filter_luma_intra = ff_x264_deblock_h_luma_intra_sse2;
+#endif
+                c->h264_idct_add16 = ff_h264_idct_add16_sse2;
+                c->h264_idct_add8  = ff_h264_idct_add8_sse2;
+                c->h264_idct_add16intra = ff_h264_idct_add16intra_sse2;
             }
-#endif
         }
 #endif