From af19f78f2fe2b969104d4419efd25fdee90a2814 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 11 Nov 2002 10:04:45 +0000 Subject: * using DSPContext - so each codec could use its local (sub)set of CPU extension * these are untested - users/developers please check Originally committed as revision 1197 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ps2/dsputil_mmi.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'libavcodec/ps2') diff --git a/libavcodec/ps2/dsputil_mmi.c b/libavcodec/ps2/dsputil_mmi.c index a6a1b99..c9be68d 100644 --- a/libavcodec/ps2/dsputil_mmi.c +++ b/libavcodec/ps2/dsputil_mmi.c @@ -103,16 +103,16 @@ static void put_pixels16_mmi(uint8_t *block, const uint8_t *pixels, int line_siz } -void dsputil_init_mmi(void) +void dsputil_init_mmi(DSPContext* c, unsigned mask) { - clear_blocks = clear_blocks_mmi; - - put_pixels_tab[1][0] = put_pixels8_mmi; - put_no_rnd_pixels_tab[1][0] = put_pixels8_mmi; - - put_pixels_tab[0][0] = put_pixels16_mmi; - put_no_rnd_pixels_tab[0][0] = put_pixels16_mmi; - - get_pixels = get_pixels_mmi; + c->clear_blocks = clear_blocks_mmi; + + c->put_pixels_tab[1][0] = put_pixels8_mmi; + c->put_no_rnd_pixels_tab[1][0] = put_pixels8_mmi; + + c->put_pixels_tab[0][0] = put_pixels16_mmi; + c->put_no_rnd_pixels_tab[0][0] = put_pixels16_mmi; + + c->get_pixels = get_pixels_mmi; } -- cgit v1.1