aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/i386/simple_idct_mmx.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-09-29 22:44:22 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-09-29 22:44:22 +0000
commit2ad1516a6c7180d4f9343c0f07120eaec5130d6e (patch)
tree38dfb52da33739e269f30177e8b46c86067dbc67 /libavcodec/i386/simple_idct_mmx.c
parentf9bb4bdffcbde7362db2a0e041a2893dde0ace6f (diff)
downloadffmpeg-2ad1516a6c7180d4f9343c0f07120eaec5130d6e.tar.gz
idct permutation cleanup, idct can be selected per context now
fixing some threadunsafe code Originally committed as revision 980 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/simple_idct_mmx.c')
-rw-r--r--libavcodec/i386/simple_idct_mmx.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/libavcodec/i386/simple_idct_mmx.c b/libavcodec/i386/simple_idct_mmx.c
index 4f19cc20ae..0c859862ee 100644
--- a/libavcodec/i386/simple_idct_mmx.c
+++ b/libavcodec/i386/simple_idct_mmx.c
@@ -1291,7 +1291,20 @@ Temp
);
}
-void simple_idct_mmx(int16_t *block)
+void ff_simple_idct_mmx(int16_t *block)
{
- idct(block);
+ idct(block);
+}
+
+//FIXME merge add/put into the idct
+
+void ff_simple_idct_put_mmx(UINT8 *dest, int line_size, DCTELEM *block)
+{
+ idct(block);
+ put_pixels_clamped(block, dest, line_size);
+}
+void ff_simple_idct_add_mmx(UINT8 *dest, int line_size, DCTELEM *block)
+{
+ idct(block);
+ add_pixels_clamped(block, dest, line_size);
}