From 50eb9cbc44bb79f67188e77a734ce2d66644eb54 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 25 Oct 2002 13:39:47 +0000 Subject: idct_permutation_type variable, so the permutation type can quickly be identified Originally committed as revision 1071 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ps2/mpegvideo_mmi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libavcodec/ps2/mpegvideo_mmi.c') 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; } -- cgit v1.2.3