aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/alpha/mpegvideo_alpha.c
diff options
context:
space:
mode:
authorFalk Hüffner <mellum@users.sourceforge.net>2002-10-11 23:01:16 +0000
committerFalk Hüffner <mellum@users.sourceforge.net>2002-10-11 23:01:16 +0000
commit8b313a47871a02146ab093b3eff31636413dea13 (patch)
tree2e8ffad9c3fe3d8d12e270a46c496ab15e7dd2fc /libavcodec/alpha/mpegvideo_alpha.c
parentbb15f7fdd5c0c5f200f89fc9e47a3ff94e567e36 (diff)
downloadffmpeg-8b313a47871a02146ab093b3eff31636413dea13.tar.gz
Move Alpha optimized IDCT to own file. Based on a patch by Måns
Rullgård <mru@users.sourceforge.net>. I've left out the idctCol2 part, because W4 has recently been decreed to be 16383, and also I doubt it will give a noticeable speedup. Originally committed as revision 1029 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/alpha/mpegvideo_alpha.c')
-rw-r--r--libavcodec/alpha/mpegvideo_alpha.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/alpha/mpegvideo_alpha.c b/libavcodec/alpha/mpegvideo_alpha.c
index 1a58e5dfd0..350b53f62f 100644
--- a/libavcodec/alpha/mpegvideo_alpha.c
+++ b/libavcodec/alpha/mpegvideo_alpha.c
@@ -21,6 +21,9 @@
#include "../dsputil.h"
#include "../mpegvideo.h"
+extern void simple_idct_put_axp(uint8_t *dest, int line_size, DCTELEM *block);
+extern void simple_idct_add_axp(uint8_t *dest, int line_size, DCTELEM *block);
+
static void dct_unquantize_h263_axp(MpegEncContext *s, DCTELEM *block,
int n, int qscale)
{
@@ -94,4 +97,6 @@ static void dct_unquantize_h263_axp(MpegEncContext *s, DCTELEM *block,
void MPV_common_init_axp(MpegEncContext *s)
{
s->dct_unquantize_h263 = dct_unquantize_h263_axp;
+ s->idct_put = simple_idct_put_axp;
+ s->idct_add = simple_idct_add_axp;
}