diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-11-02 23:19:47 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-11-02 23:19:47 +0000 |
commit | 821cb11f76d55111dd747346313dad3b9568810b (patch) | |
tree | 99cd5a9ce5d46729bbd50f13098150c444868f76 /libavcodec/i386 | |
parent | 432d84c395a0ccdbed383767a87ef037817e56f8 (diff) | |
download | ffmpeg-821cb11f76d55111dd747346313dad3b9568810b.tar.gz |
noise reduction of dct coefficients
Originally committed as revision 2468 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386')
-rw-r--r-- | libavcodec/i386/mpegvideo_mmx.c | 1 | ||||
-rw-r--r-- | libavcodec/i386/mpegvideo_mmx_template.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/i386/mpegvideo_mmx.c b/libavcodec/i386/mpegvideo_mmx.c index d217e10249..9302c7b83d 100644 --- a/libavcodec/i386/mpegvideo_mmx.c +++ b/libavcodec/i386/mpegvideo_mmx.c @@ -495,6 +495,7 @@ static void draw_edges_mmx(uint8_t *buf, int wrap, int width, int height, int w) #define HAVE_MMX2 #undef RENAME +#undef RENAMEl #define RENAME(a) a ## _MMX2 #define RENAMEl(a) a ## _mmx2 #include "mpegvideo_mmx_template.c" diff --git a/libavcodec/i386/mpegvideo_mmx_template.c b/libavcodec/i386/mpegvideo_mmx_template.c index 2728a8dd95..f357e14035 100644 --- a/libavcodec/i386/mpegvideo_mmx_template.c +++ b/libavcodec/i386/mpegvideo_mmx_template.c @@ -45,6 +45,9 @@ static int RENAME(dct_quantize)(MpegEncContext *s, //s->fdct (block); RENAMEl(ff_fdct) (block); //cant be anything else ... + if(s->dct_error_sum) + ff_denoise_dct(s, block); + if (s->mb_intra) { int dummy; if (n < 4) |