On Tue, Aug 09, 2011 at 11:20:09AM +0200, Kostya Shishkov wrote:
> 
> --- /dev/null
> +++ b/libavcodec/rv34dsp.c
> @@ -0,0 +1,54 @@
> +
> +/**
> + * @file
> + * RV30/40 decoder motion compensation functions
> + */
> +
> --- /dev/null
> +++ b/libavcodec/rv34dsp.h
> @@ -0,0 +1,50 @@
> +
> +/**
> + * @file
> + * RV30/40 decoder motion compensation functions
> + */
> +
> --- a/libavcodec/x86/Makefile
> +++ b/libavcodec/x86/Makefile
> @@ -21,6 +21,10 @@ YASM-OBJS-$(CONFIG_H264PRED)           += 
> x86/h264_intrapred.o          \
>  
> +YASM-OBJS-$(CONFIG_RV30_DECODER)       += x86/rv34dsp.o                 \
> +
> +YASM-OBJS-$(CONFIG_RV40_DECODER)       += x86/rv34dsp.o                 \
> +
>  YASM-OBJS-$(CONFIG_VC1_DECODER)        += x86/vc1dsp_yasm.o
>  
> --- /dev/null
> +++ b/libavcodec/x86/rv34dsp.c
> @@ -0,0 +1,59 @@
> +
> +/**
> + * @file
> + * RV30/40 decoder motion compensation functions
> + */

You use the same Doxygen comment in the x86/ subdir, maybe add
"x86-optimized" in there somewhere.

> +void ff_rv34dsp_init_x86(RV34DSPContext *c, DSPContext *dsp)
> +{
> +    av_unused int mm_flags = av_get_cpu_flags();
> +
> +#if HAVE_YASM
> +    c->put_rv40_chroma_pixels_tab[0] = ff_put_rv40_chroma_mc8_mmx;
> +    c->put_rv40_chroma_pixels_tab[1] = ff_put_rv40_chroma_mc4_mmx;
> +    if (mm_flags & AV_CPU_FLAG_MMX2) {
> +        c->avg_rv40_chroma_pixels_tab[0] = ff_avg_rv40_chroma_mc8_mmx2;
> +        c->avg_rv40_chroma_pixels_tab[1] = ff_avg_rv40_chroma_mc4_mmx2;
> +    } else if (mm_flags & AV_CPU_FLAG_3DNOW) {
> +        c->avg_rv40_chroma_pixels_tab[0] = ff_avg_rv40_chroma_mc8_3dnow;
> +        c->avg_rv40_chroma_pixels_tab[1] = ff_avg_rv40_chroma_mc4_3dnow;
> +    }
> +#endif
> +}

The file is only compiled in the YASM case, so the #if and the av_unused
are unnecessary.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to