diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-01-02 22:29:08 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-01-02 22:29:08 +0000 |
commit | 783df5f347f79643c07c5f6244b496a33e1354a0 (patch) | |
tree | d20e4254475d25d9d37aaa3fc8e03b9f457fd573 /libavcodec/mpegvideo.c | |
parent | be408b67e6cb817318d841d693a5b60a07f2508d (diff) | |
download | ffmpeg-783df5f347f79643c07c5f6244b496a33e1354a0.tar.gz |
denoise_dct_mmx()
Originally committed as revision 2657 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 8c4938c856..01e0d9930f 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -57,6 +57,7 @@ static void draw_edges_c(uint8_t *buf, int wrap, int width, int height, int w); static int dct_quantize_c(MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow); static int dct_quantize_trellis_c(MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow); static int sse_mb(MpegEncContext *s); +static void denoise_dct_c(MpegEncContext *s, DCTELEM *block); #endif //CONFIG_ENCODERS #ifdef HAVE_XVMC @@ -219,6 +220,7 @@ int DCT_common_init(MpegEncContext *s) #ifdef CONFIG_ENCODERS s->dct_quantize= dct_quantize_c; + s->denoise_dct= denoise_dct_c; #endif #ifdef HAVE_MMX @@ -4611,7 +4613,7 @@ static void encode_picture(MpegEncContext *s, int picture_number) #endif //CONFIG_ENCODERS -void ff_denoise_dct(MpegEncContext *s, DCTELEM *block){ +static void denoise_dct_c(MpegEncContext *s, DCTELEM *block){ const int intra= s->mb_intra; int i; @@ -4666,7 +4668,7 @@ static int dct_quantize_trellis_c(MpegEncContext *s, s->dsp.fdct (block); if(s->dct_error_sum) - ff_denoise_dct(s, block); + s->denoise_dct(s, block); qmul= qscale*16; qadd= ((qscale-1)|1)*8; @@ -4939,7 +4941,7 @@ static int dct_quantize_c(MpegEncContext *s, s->dsp.fdct (block); if(s->dct_error_sum) - ff_denoise_dct(s, block); + s->denoise_dct(s, block); if (s->mb_intra) { if (!s->h263_aic) { |