diff options
author | Alexander Strange <astrange@ithinksw.com> | 2008-04-16 01:36:14 +0000 |
---|---|---|
committer | Alexander Strange <astrange@ithinksw.com> | 2008-04-16 01:36:14 +0000 |
commit | f73a6393e755b7858ec2b7f1947080f14a51c28c (patch) | |
tree | dece7ea195375012618872dd5641e71bfd8f7ae6 /libavcodec/i386/dsputil_mmx.c | |
parent | 0e956ba2771452088ebfd69bbc75fce07c56f33c (diff) | |
download | ffmpeg-f73a6393e755b7858ec2b7f1947080f14a51c28c.tar.gz |
Add a new xvid-style IDCT using SSE2.
Originally committed as revision 12843 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/dsputil_mmx.c')
-rw-r--r-- | libavcodec/i386/dsputil_mmx.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c index 3ae1b5947f..620b9a2478 100644 --- a/libavcodec/i386/dsputil_mmx.c +++ b/libavcodec/i386/dsputil_mmx.c @@ -2124,7 +2124,12 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx) }else if(idct_algo==FF_IDCT_CAVS){ c->idct_permutation_type= FF_TRANSPOSE_IDCT_PERM; }else if(idct_algo==FF_IDCT_XVIDMMX){ - if(mm_flags & MM_MMXEXT){ + if(mm_flags & MM_SSE2){ + c->idct_put= ff_idct_xvid_sse2_put; + c->idct_add= ff_idct_xvid_sse2_add; + c->idct = ff_idct_xvid_sse2; + c->idct_permutation_type= FF_SSE2_IDCT_PERM; + }else if(mm_flags & MM_MMXEXT){ c->idct_put= ff_idct_xvid_mmx2_put; c->idct_add= ff_idct_xvid_mmx2_add; c->idct = ff_idct_xvid_mmx2; |