Hi, On Thu, Apr 14, 2011 at 8:23 PM, Janne Grunau <[email protected]> wrote: > From: Janne Grunau <[email protected]> > > port swscale to AV_CPU_FLAGS* and use av_get_cpu_flags() for runtime cpu > detection. Still only used with --enable-runtime-cpudetect. Next step is > getting rid of all #if !CONFIG_RUNTIME_CPUDETECT code in libswscale or > enable it by default to get the same behaviour as in libavcodec. > > Is there a way to enable deprecation warnings for defines? > > APIChanges entry is missing. > > Janne > ---8<--- > use AV_CPU_FLAG_* internally and deprecate SWS_CPU_CAPS_* > add dsp_mask to swsContext and AVOptions to fill them > auto detection is only done if no SWS_CPU_CAPS are set in flags and > dsp_mask does not contain AV_CPU_FLAG_FORCE > --- > libswscale/bfin/swscale_bfin.c | 1 - > libswscale/colorspace-test.c | 8 +- > libswscale/options.c | 11 +++ > libswscale/ppc/yuv2rgb_altivec.c | 2 +- > libswscale/rgb2rgb.c | 5 +- > libswscale/rgb2rgb.h | 4 +- > libswscale/swscale.c | 27 +++---- > libswscale/swscale.h | 6 ++ > libswscale/swscale_internal.h | 1 + > libswscale/utils.c | 138 > ++++++++++++++++++++++++++++--------- > libswscale/x86/rgb2rgb.c | 11 ++-- > libswscale/x86/swscale_template.c | 7 +- > libswscale/x86/yuv2rgb_mmx.c | 5 +- > libswscale/yuv2rgb.c | 6 +- > 14 files changed, 158 insertions(+), 74 deletions(-)
That looks good. You've tested this to compile (and work in basic terms) with and without --enable-runtime-cpudetect, right? If so, this is fine and we should auto-enable --enable-runtime-cpudetect by default. We can then throw out the manual selection code whenever we want. Ronald _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
