comparison h263dec.c @ 2094:9c29987380e4 libavcodec

use libmpeg2 idct to decode xvid videos unless the user forced some other idct
author michael
date Fri, 25 Jun 2004 19:14:23 +0000
parents 4032a03192ec
children 83ab15bd1638
comparison
equal deleted inserted replaced
2093:82816cad0e29 2094:9c29987380e4
621 static FILE *f=NULL; 621 static FILE *f=NULL;
622 if(!f) f=fopen("rate_qp_cplx.txt", "w"); 622 if(!f) f=fopen("rate_qp_cplx.txt", "w");
623 fprintf(f, "%d %d %f\n", buf_size, s->qscale, buf_size*(double)s->qscale); 623 fprintf(f, "%d %d %f\n", buf_size, s->qscale, buf_size*(double)s->qscale);
624 } 624 }
625 #endif 625 #endif
626 626
627 if(s->codec_id == CODEC_ID_MPEG4 && s->xvid_build && avctx->idct_algo == FF_IDCT_AUTO && (mm_flags & MM_MMX) && !(s->flags&CODEC_FLAG_BITEXACT)){
628 avctx->idct_algo= FF_IDCT_LIBMPEG2MMX;
629 avctx->width= 0; // force reinit
630 }
627 /* After H263 & mpeg4 header decode we have the height, width,*/ 631 /* After H263 & mpeg4 header decode we have the height, width,*/
628 /* and other parameters. So then we could init the picture */ 632 /* and other parameters. So then we could init the picture */
629 /* FIXME: By the way H263 decoder is evolving it should have */ 633 /* FIXME: By the way H263 decoder is evolving it should have */
630 /* an H263EncContext */ 634 /* an H263EncContext */
631 635