On Tue, Aug 09, 2011 at 12:03:35PM +0200, Diego Biurrun wrote:
> On Tue, Aug 09, 2011 at 11:20:09AM +0200, Kostya Shishkov wrote:
> > --- /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.

done
 
> > +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.

My mistake, it should be under general MMX case.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to