[vlc-devel] commit: Updated avcodec with SSE3/SSSE3/SSE4.1/SSE4.2. (Laurent Aimar )
git version control
git at videolan.org
Tue Nov 24 19:53:56 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Nov 23 21:27:19 2009 +0100| [1eadd58b04462eff3dbb435ee885fb95d5b377a7] | committer: Laurent Aimar
Updated avcodec with SSE3/SSSE3/SSE4.1/SSE4.2.
It just allows disabling their use.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1eadd58b04462eff3dbb435ee885fb95d5b377a7
---
modules/codec/avcodec/avcodec.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/modules/codec/avcodec/avcodec.c b/modules/codec/avcodec/avcodec.c
index 4bc6914..c9364d4 100644
--- a/modules/codec/avcodec/avcodec.c
+++ b/modules/codec/avcodec/avcodec.c
@@ -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 )
More information about the vlc-devel
mailing list