Mercurial > libavcodec.hg
comparison mpegvideo.c @ 828:ace3ccd18dd2 libavcodec
Altivec Patch (Mark III) by (Dieter Shirley <dieters at schemasoft dot com>)
author | michaelni |
---|---|
date | Sat, 02 Nov 2002 11:28:08 +0000 |
parents | 78accc54493b |
children | e460775adb38 |
comparison
equal
deleted
inserted
replaced
827:770578c6c300 | 828:ace3ccd18dd2 |
---|---|
155 | 155 |
156 for(i=0; i<64; i++){ | 156 for(i=0; i<64; i++){ |
157 int j; | 157 int j; |
158 j = src_scantable[i]; | 158 j = src_scantable[i]; |
159 st->permutated[i] = s->idct_permutation[j]; | 159 st->permutated[i] = s->idct_permutation[j]; |
160 #ifdef ARCH_POWERPC | |
161 st->inverse[j] = i; | |
162 #endif | |
160 } | 163 } |
161 | 164 |
162 end=-1; | 165 end=-1; |
163 for(i=0; i<64; i++){ | 166 for(i=0; i<64; i++){ |
164 int j; | 167 int j; |
218 #ifdef HAVE_MMI | 221 #ifdef HAVE_MMI |
219 MPV_common_init_mmi(s); | 222 MPV_common_init_mmi(s); |
220 #endif | 223 #endif |
221 #ifdef ARCH_ARMV4L | 224 #ifdef ARCH_ARMV4L |
222 MPV_common_init_armv4l(); | 225 MPV_common_init_armv4l(); |
226 #endif | |
227 #ifdef ARCH_POWERPC | |
228 MPV_common_init_ppc(s); | |
223 #endif | 229 #endif |
224 | 230 |
225 switch(s->idct_permutation_type){ | 231 switch(s->idct_permutation_type){ |
226 case FF_NO_IDCT_PERM: | 232 case FF_NO_IDCT_PERM: |
227 for(i=0; i<64; i++) | 233 for(i=0; i<64; i++) |
3009 const int *qmat; | 3015 const int *qmat; |
3010 const UINT8 *scantable= s->intra_scantable.scantable; | 3016 const UINT8 *scantable= s->intra_scantable.scantable; |
3011 int bias; | 3017 int bias; |
3012 int max=0; | 3018 int max=0; |
3013 unsigned int threshold1, threshold2; | 3019 unsigned int threshold1, threshold2; |
3014 | 3020 |
3015 s->fdct (block); | 3021 s->fdct (block); |
3016 | 3022 |
3017 if (s->mb_intra) { | 3023 if (s->mb_intra) { |
3018 if (!s->h263_aic) { | 3024 if (!s->h263_aic) { |
3019 if (n < 4) | 3025 if (n < 4) |