[FFmpeg-devel] [RFC] use av_get_cpu_flags for real runtime CPU detection in swscale
Janne Grunau
janne-ffmpeg
Thu Sep 9 20:05:54 CEST 2010
On Thu, Sep 09, 2010 at 03:13:20PM +0200, Michael Niedermayer wrote:
> On Thu, Sep 09, 2010 at 12:23:41PM +0200, Janne Grunau wrote:
> > @@ -722,7 +723,37 @@ static int handle_jpeg(enum PixelFormat *format)
> >
> > static int update_flags_cpu(int flags)
> > {
> > -#if !CONFIG_RUNTIME_CPUDETECT //ensure that the flags match the compiled variant if cpudetect is off
> > +#if CONFIG_RUNTIME_CPUDETECT
>
> > + static int cpuflags;
>
> this should go in av_get_cpu_flags() not one use of it
done with refreshing Mans av_get_cpu_flags clean up patch. The patch
could be committed unmodified though since it was caching the to SWS
converted cpu flags and not the AV_CPU_FLAG_*
Janne
More information about the ffmpeg-devel
mailing list