Mercurial > libavcodec.hg
diff i386/mpegvideo_mmx.c @ 1765:e31754bc5b65 libavcodec
SSE2 fdct by (Balatoni Denes <pnis at coder dot hu>)
author | michael |
---|---|
date | Thu, 29 Jan 2004 01:15:25 +0000 |
parents | 96a86bd1e0d5 |
children | f65d87bfdd5a |
line wrap: on
line diff
--- a/i386/mpegvideo_mmx.c Wed Jan 28 00:36:58 2004 +0000 +++ b/i386/mpegvideo_mmx.c Thu Jan 29 01:15:25 2004 +0000 @@ -683,6 +683,12 @@ #define RENAMEl(a) a ## _mmx2 #include "mpegvideo_mmx_template.c" +#undef RENAME +#undef RENAMEl +#define RENAME(a) a ## _SSE2 +#define RENAMEl(a) a ## _sse2 +#include "mpegvideo_mmx_template.c" + void MPV_common_init_mmx(MpegEncContext *s) { if (mm_flags & MM_MMX) { @@ -704,7 +710,9 @@ } if(dct_algo==FF_DCT_AUTO || dct_algo==FF_DCT_MMX){ - if(mm_flags & MM_MMXEXT){ + if(mm_flags & MM_SSE2){ + s->dct_quantize= dct_quantize_SSE2; + } else if(mm_flags & MM_MMXEXT){ s->dct_quantize= dct_quantize_MMX2; } else { s->dct_quantize= dct_quantize_MMX;