[FFmpeg-devel] Extend/optimize RGB to RGB conversions funcsintorgb2rgb.c

Ben Jackson ben at ben.com
Tue Sep 11 01:39:27 CEST 2012


On Tue, Sep 11, 2012 at 12:25:32AM +0200, yann.lepetitcorps at free.fr wrote:
> 
> #include <tmmintrin.h>
> 
> but I have errors messages at compilation :(
> 
> gcc test_rgb2rgba.c -o test_rgb2rgba -O9
> In file included from test_rgb2rgba.c:240:0:
> /usr/lib/gcc/i686-linux-gnu/4.6/include/tmmintrin.h:31:3: erreur: #error "SSSE3

You choose your include file (xmmintrin, emmintrin, tmmintrin, etc) based
on what level of SSE you use (see
http://en.wikipedia.org/wiki/Streaming_SIMD_Extensions for a history).
Then you must compile with the right -m option(s) to enable those
instructions which will cause the right #defines to be set by the compiler.
In your case use -mssse3 ("Supplemental Streaming SIMD Extensions 3" which
corresponds to tmmintrin)

-- 
Ben Jackson AD7GD
<ben at ben.com>
http://www.ben.com/


More information about the ffmpeg-devel mailing list