aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mlib/dsputil_mlib.c
diff options
context:
space:
mode:
authorZdenek Kabelac <kabi@informatics.muni.cz>2002-11-11 10:04:45 +0000
committerZdenek Kabelac <kabi@informatics.muni.cz>2002-11-11 10:04:45 +0000
commitaf19f78f2fe2b969104d4419efd25fdee90a2814 (patch)
tree2eb293152ccf514d37b27b043f564315a08513f4 /libavcodec/mlib/dsputil_mlib.c
parent85bd552606ec60eeda76728734f772a8fde27622 (diff)
downloadffmpeg-af19f78f2fe2b969104d4419efd25fdee90a2814.tar.gz
* 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
Diffstat (limited to 'libavcodec/mlib/dsputil_mlib.c')
-rw-r--r--libavcodec/mlib/dsputil_mlib.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/libavcodec/mlib/dsputil_mlib.c b/libavcodec/mlib/dsputil_mlib.c
index 445500c50d..e75f858a20 100644
--- a/libavcodec/mlib/dsputil_mlib.c
+++ b/libavcodec/mlib/dsputil_mlib.c
@@ -223,30 +223,30 @@ static void ff_fdct_mlib(DCTELEM *data)
mlib_VideoDCT8x8_S16_S16 (data, data);
}
-void dsputil_init_mlib(void)
+void dsputil_init_mlib(DSPContext* c, unsigned mask)
{
- put_pixels_tab[0][0] = put_pixels16_mlib;
- put_pixels_tab[0][1] = put_pixels16_x2_mlib;
- put_pixels_tab[0][2] = put_pixels16_y2_mlib;
- put_pixels_tab[0][3] = put_pixels16_xy2_mlib;
- put_pixels_tab[1][0] = put_pixels8_mlib;
- put_pixels_tab[1][1] = put_pixels8_x2_mlib;
- put_pixels_tab[1][2] = put_pixels8_y2_mlib;
- put_pixels_tab[1][3] = put_pixels8_xy2_mlib;
-
- avg_pixels_tab[0][0] = avg_pixels16_mlib;
- avg_pixels_tab[0][1] = avg_pixels16_x2_mlib;
- avg_pixels_tab[0][2] = avg_pixels16_y2_mlib;
- avg_pixels_tab[0][3] = avg_pixels16_xy2_mlib;
- avg_pixels_tab[1][0] = avg_pixels8_mlib;
- avg_pixels_tab[1][1] = avg_pixels8_x2_mlib;
- avg_pixels_tab[1][2] = avg_pixels8_y2_mlib;
- avg_pixels_tab[1][3] = avg_pixels8_xy2_mlib;
-
- put_no_rnd_pixels_tab[0][0] = put_pixels16_mlib;
- put_no_rnd_pixels_tab[1][0] = put_pixels8_mlib;
-
- add_pixels_clamped = add_pixels_clamped_mlib;
+ c->put_pixels_tab[0][0] = put_pixels16_mlib;
+ c->put_pixels_tab[0][1] = put_pixels16_x2_mlib;
+ c->put_pixels_tab[0][2] = put_pixels16_y2_mlib;
+ c->put_pixels_tab[0][3] = put_pixels16_xy2_mlib;
+ c->put_pixels_tab[1][0] = put_pixels8_mlib;
+ c->put_pixels_tab[1][1] = put_pixels8_x2_mlib;
+ c->put_pixels_tab[1][2] = put_pixels8_y2_mlib;
+ c->put_pixels_tab[1][3] = put_pixels8_xy2_mlib;
+
+ c->avg_pixels_tab[0][0] = avg_pixels16_mlib;
+ c->avg_pixels_tab[0][1] = avg_pixels16_x2_mlib;
+ c->avg_pixels_tab[0][2] = avg_pixels16_y2_mlib;
+ c->avg_pixels_tab[0][3] = avg_pixels16_xy2_mlib;
+ c->avg_pixels_tab[1][0] = avg_pixels8_mlib;
+ c->avg_pixels_tab[1][1] = avg_pixels8_x2_mlib;
+ c->avg_pixels_tab[1][2] = avg_pixels8_y2_mlib;
+ c->avg_pixels_tab[1][3] = avg_pixels8_xy2_mlib;
+
+ c->put_no_rnd_pixels_tab[0][0] = put_pixels16_mlib;
+ c->put_no_rnd_pixels_tab[1][0] = put_pixels8_mlib;
+
+ c->add_pixels_clamped = add_pixels_clamped_mlib;
}
void MPV_common_init_mlib(MpegEncContext *s)