Commit bc52262f authored by michaelni's avatar michaelni

mlib fix patch by (Juergen Keil <jk at tools dot de>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1337 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c73ae1f6
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment