diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2006-09-12 20:58:17 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2006-09-12 20:58:17 +0000 |
commit | 1dac8fea056a907a965c60199a13ba49dc8bdc3e (patch) | |
tree | 7be9bb7432254aee93e1ab2854608e9715495a62 | |
parent | d0702de9afcde4e0fda8f00e270ee2f5b4b50412 (diff) | |
download | ffmpeg-1dac8fea056a907a965c60199a13ba49dc8bdc3e.tar.gz |
Enables back the mmx/sse optimized version of the vp3 idct.
It generates different md5sum than the reference C implementation,
but no visual difference, so enabled only when bitexact is not set.
Originally committed as revision 6241 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/i386/dsputil_mmx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c index aa592d92fb..74c6f52173 100644 --- a/libavcodec/i386/dsputil_mmx.c +++ b/libavcodec/i386/dsputil_mmx.c @@ -3053,8 +3053,8 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx) c->idct = ff_mmx_idct; } c->idct_permutation_type= FF_LIBMPEG2_IDCT_PERM; -#if 0 - }else if(idct_algo==FF_IDCT_VP3){ + }else if(idct_algo==FF_IDCT_VP3 && + !(avctx->flags & CODEC_FLAG_BITEXACT)){ if(mm_flags & MM_SSE2){ c->idct_put= ff_vp3_idct_put_sse2; c->idct_add= ff_vp3_idct_add_sse2; @@ -3067,7 +3067,6 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx) c->idct = ff_vp3_idct_mmx; c->idct_permutation_type= FF_PARTTRANS_IDCT_PERM; } -#endif }else if(idct_algo==FF_IDCT_CAVS){ c->idct_permutation_type= FF_TRANSPOSE_IDCT_PERM; #ifdef CONFIG_GPL |