summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-11-02 11:28:08 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-11-02 11:28:08 +0000
commit05c4072b45f3cde1185de6eccfe7febf91d9f8fd (patch)
tree164979e7e556e44f5678d5599a40810bbf89fed8 /libavcodec/mpegvideo.c
parent26b35efb3a0d02a1ef6a8af804e6c59c1a190fa3 (diff)
Altivec Patch (Mark III) by (Dieter Shirley <dieters at schemasoft dot com>)
Originally committed as revision 1147 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index d93c64e97a..2f6a42554a 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -157,6 +157,9 @@ void ff_init_scantable(MpegEncContext *s, ScanTable *st, const UINT8 *src_scanta
int j;
j = src_scantable[i];
st->permutated[i] = s->idct_permutation[j];
+#ifdef ARCH_POWERPC
+ st->inverse[j] = i;
+#endif
}
end=-1;
@@ -221,6 +224,9 @@ int DCT_common_init(MpegEncContext *s)
#ifdef ARCH_ARMV4L
MPV_common_init_armv4l();
#endif
+#ifdef ARCH_POWERPC
+ MPV_common_init_ppc(s);
+#endif
switch(s->idct_permutation_type){
case FF_NO_IDCT_PERM:
@@ -3011,7 +3017,7 @@ static int dct_quantize_c(MpegEncContext *s,
int bias;
int max=0;
unsigned int threshold1, threshold2;
-
+
s->fdct (block);
if (s->mb_intra) {