Mercurial > libavcodec.hg
diff ps2/mpegvideo_mmi.c @ 768:c3fc09466f92 libavcodec
idct_permutation_type variable, so the permutation type can quickly be identified
author | michaelni |
---|---|
date | Fri, 25 Oct 2002 13:39:47 +0000 |
parents | 71f669e9f633 |
children | b32afefe7d33 |
line wrap: on
line diff
--- a/ps2/mpegvideo_mmi.c Fri Oct 25 10:50:02 2002 +0000 +++ b/ps2/mpegvideo_mmi.c Fri Oct 25 13:39:47 2002 +0000 @@ -85,14 +85,12 @@ 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; }