]> git.sesse.net Git - vlc/commitdiff
Updated avcodec with SSE3/SSSE3/SSE4.1/SSE4.2.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 23 Nov 2009 20:27:19 +0000 (21:27 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 24 Nov 2009 18:50:28 +0000 (19:50 +0100)
It just allows disabling their use.

modules/codec/avcodec/avcodec.c

index 4bc691405bdfe4fccbf9d765e12eaafa9b297c72..c9364d48c1d64b3e9c514a0e37790d159608edc8 100644 (file)
@@ -277,6 +277,22 @@ static int OpenDecoder( vlc_object_t *p_this )
     {
         p_context->dsp_mask |= FF_MM_SSE2;
     }
+#ifdef FF_MM_SSE3
+    if( !(i_cpu & CPU_CAPABILITY_SSE3) )
+        p_context->dsp_mask |= FF_MM_SSE3;
+#endif
+#ifdef FF_MM_SSSE3
+    if( !(i_cpu & CPU_CAPABILITY_SSSE3) )
+        p_context->dsp_mask |= FF_MM_SSSE3;
+#endif
+#ifdef FF_MM_SSE4
+    if( !(i_cpu & CPU_CAPABILITY_SSE4_1) )
+        p_context->dsp_mask |= FF_MM_SSE4;
+#endif
+#ifdef FF_MM_SSE42
+    if( !(i_cpu & CPU_CAPABILITY_SSE4_2) )
+        p_context->dsp_mask |= FF_MM_SSE42;
+#endif
 
     p_dec->b_need_packetized = true;
     switch( i_cat )