[FFmpeg-devel] [PATCH] Move CPU detection to libavutil and cleanup

Ronald S. Bultje rsbultje
Thu Aug 26 18:02:33 CEST 2010


Hi,

On Wed, Aug 25, 2010 at 7:27 AM, Janne Grunau <janne-ffmpeg at jannau.net> wrote:
> if we rename them after a major bump, we should fix FF_MM_MMX and
> FF_MM_ALTIVEC being defined to the same value. While a cpu with both
> seems unlikey it had bitten me while implementing real runtime cpu
> detection in libswscale/libpostproc.

I don't think that's necessary, don't forget you shouldn't use
FF_MM_ALTIVEC outside HAVE_ALTIVEC (which depends on ARCH_PPC), and
HAVE_MMX depends on ARCH_X86, so the two can never be defined at the
same time anyway.

The problem with defining them separately is that you're limited to 32
opt flags _in total_, rather than _per arch_, which is rather little.

Ronald



More information about the ffmpeg-devel mailing list