[FFmpeg-devel] [PATCH] libavfilter-soc: sws cpu caps flags detection

Ramiro Polla ramiro.polla
Wed Apr 1 22:58:39 CEST 2009


On Wed, Apr 1, 2009 at 5:40 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> also see RUNTIME_CPUDETECT and the related code in sws

About RUNTIME_CPUDETECT: currently there's no way to enable it in
FFmpeg besides using --extra-cflags. So if you HAVE_MMX2, there will
only be the MMX2 variant of all functions in swscale.c.

rgb2rgb.c OTOH compiles all variants (but only one gets used because
of the limitation in swscale.c).

Is it ok to make runtime cpudetect the default (like dsputils does
currently) and always build all variants the toolchain supports?

Ramiro Polla

More information about the ffmpeg-devel mailing list