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

Stefano Sabatini stefano.sabatini-lala
Sun Sep 5 17:27:50 CEST 2010


On date Sunday 2010-09-05 16:48:23 +0200, Michael Niedermayer encoded:
> On Sat, Sep 04, 2010 at 12:09:50PM +0200, Stefano Sabatini wrote:
> [...]
> > +#include "config.h"
> > +
> > +int av_get_cpu_flags(void)
> > +{
> > +    return HAVE_IWMMXT * AV_CPU_IWMMXT;
> > +}
> > +
> > +int ff_has_altivec(void)
> 
> why this seperate function and why does it have a ff_ prefix but is used from
> outside libavutil?

Is used in libavcodec/ppc/dsputil_init_ppc.c.

If you prefer av_ rather than ff_ no problem, but also I see no much
point in it, I can also split the patch if required.

Regards.
-- 
FFmpeg = Fundamentalist Fabulous Mythic Pitiful Eretic Gorilla



More information about the ffmpeg-devel mailing list