[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h263dec.c,1.169,1.170
Michael Niedermayer
michaelni
Sat Sep 10 20:44:54 CEST 2005
Hi
On Sat, Sep 10, 2005 at 07:24:31PM +0200, matthieu castet wrote:
> Michael Niedermayer CVS wrote:
> >Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
> >In directory mail:/var2/tmp/cvs-serv28550
> >
> >Modified Files:
> > h263dec.c
> >Log Message:
> >select xvid idct for xvid files if possible
> >
> >
> >Index: h263dec.c
> >===================================================================
> >RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h263dec.c,v
> >retrieving revision 1.169
> >retrieving revision 1.170
> >diff -u -d -r1.169 -r1.170
> >--- h263dec.c 14 Jul 2005 21:39:35 -0000 1.169
> >+++ h263dec.c 10 Sep 2005 17:09:54 -0000 1.170
> >@@ -636,9 +636,9 @@
> > }
> > #endif
> >
> >-#ifdef HAVE_MMX
> >+#if defined(HAVE_MMX) && defined(CONFIG_GPL)
> > if(s->codec_id == CODEC_ID_MPEG4 && s->xvid_build && avctx->idct_algo
> > == FF_IDCT_AUTO && (mm_flags & MM_MMX) &&
> > !(s->flags&CODEC_FLAG_BITEXACT)){
> >- avctx->idct_algo= FF_IDCT_LIBMPEG2MMX;
> >+ avctx->idct_algo= FF_IDCT_XVIDMMX;
> > avctx->coded_width= 0; // force reinit
> > }
> > #endif
> >
> That don't seem nice as LGPL user won't have MMX IDCT (FF_IDCT_LIBMPEG2MMX).
no, RTFS
>
> why not just do a
> #defined(CONFIG_GPL)
> avctx->idct_algo= FF_IDCT_XVIDMMX;
> #else
> avctx->idct_algo= FF_IDCT_LIBMPEG2MMX;
> #endif
> ?
>
> or in case of no-GPL #define FF_IDCT_XVIDMMX FF_IDCT_LIBMPEG2MMX
> ?
>
> Also is there any speed difference ?
dunno, benchmarks are certainly welcome
> Shouldn't be only enable for xvid file that have this problem ?
yes, all xvid have it AFAIK, if the default idct wvid uses is changed we
will change the if() too
[...]
--
Michael
More information about the ffmpeg-cvslog
mailing list