aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ps2
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-10-25 13:39:47 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-10-25 13:39:47 +0000
commit50eb9cbc44bb79f67188e77a734ce2d66644eb54 (patch)
tree502dcb22eb29fa7e6f9798be3ca8da012d4fc370 /libavcodec/ps2
parent6e2d5f1aeabd0abbe2ee4ff9d24c4c4ce384d77c (diff)
downloadffmpeg-50eb9cbc44bb79f67188e77a734ce2d66644eb54.tar.gz
idct_permutation_type variable, so the permutation type can quickly be identified
Originally committed as revision 1071 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ps2')
-rw-r--r--libavcodec/ps2/mpegvideo_mmi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/ps2/mpegvideo_mmi.c b/libavcodec/ps2/mpegvideo_mmi.c
index f12640cb8b..322ac2c7b1 100644
--- a/libavcodec/ps2/mpegvideo_mmi.c
+++ b/libavcodec/ps2/mpegvideo_mmi.c
@@ -85,14 +85,12 @@ static void dct_unquantize_h263_mmi(MpegEncContext *s,
void MPV_common_init_mmi(MpegEncContext *s)
{
int i;
-// const int dct_algo = s->avctx->dct_algo;
const int idct_algo= s->avctx->idct_algo;
- if(idct_algo==FF_IDCT_AUTO){
+ if(idct_algo==FF_IDCT_AUTO || idct_algo==FF_IDCT_PS2){
s->idct_put= ff_mmi_idct_put;
s->idct_add= ff_mmi_idct_add;
- for(i=0; i<64; i++)
- s->idct_permutation[i]= (i & 0x38) | ((i & 6) >> 1) | ((i & 1) << 2);
+ s->idct_permutation_type= FF_LIBMPEG2_IDCT_PERM;
}
s->dct_unquantize_h263 = dct_unquantize_h263_mmi;
}