diff options
author | Jürgen Keil <jk@tools.de> | 2002-12-15 22:42:59 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-12-15 22:42:59 +0000 |
commit | a8140ad5aba418a89bfbd48577f453cdf2448edf (patch) | |
tree | 54d0f9956d6b394af34aaf798698612115855f5e /libavcodec | |
parent | e2b2851e5aaba85c42ba527a47375f93abe361df (diff) | |
download | ffmpeg-streaming-a8140ad5aba418a89bfbd48577f453cdf2448edf.zip ffmpeg-streaming-a8140ad5aba418a89bfbd48577f453cdf2448edf.tar.gz |
mlib fix patch by (Juergen Keil <jk at tools dot de>)
Originally committed as revision 1337 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mlib/dsputil_mlib.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/mlib/dsputil_mlib.c b/libavcodec/mlib/dsputil_mlib.c index e75f858..b951cd4 100644 --- a/libavcodec/mlib/dsputil_mlib.c +++ b/libavcodec/mlib/dsputil_mlib.c @@ -198,6 +198,9 @@ static void avg_pixels8_xy2_mlib (uint8_t * dest, const uint8_t * ref, } +static void (*put_pixels_clamped)(const DCTELEM *block, UINT8 *pixels, int line_size); + + static void add_pixels_clamped_mlib(const DCTELEM *block, UINT8 *pixels, int line_size) { mlib_VideoAddBlock_U8_S16(pixels, (mlib_s16 *)block, line_size); @@ -215,7 +218,7 @@ static void ff_idct_put_mlib(UINT8 *dest, int line_size, DCTELEM *data) static void ff_idct_add_mlib(UINT8 *dest, int line_size, DCTELEM *data) { mlib_VideoIDCT8x8_S16_S16 (data, data); - add_pixels_clamped(data, dest, line_size); + mlib_VideoAddBlock_U8_S16(dest, (mlib_s16 *)data, line_size); } static void ff_fdct_mlib(DCTELEM *data) @@ -247,6 +250,7 @@ void dsputil_init_mlib(DSPContext* c, unsigned mask) c->put_no_rnd_pixels_tab[1][0] = put_pixels8_mlib; c->add_pixels_clamped = add_pixels_clamped_mlib; + put_pixels_clamped = c->put_pixels_clamped; } void MPV_common_init_mlib(MpegEncContext *s) |