[Mplayer-cvslog] CVS: main/libmpcodecs vd_libmpeg2.c,1.29,1.30

Jindrich Makovicka CVS syncmail at mplayerhq.hu
Mon Aug 2 15:09:19 CEST 2004


CVS change done by Jindrich Makovicka CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv15199/libmpcodecs

Modified Files:
	vd_libmpeg2.c 
Log Message:
forgotten libmpeg2 postprocessing

Index: vd_libmpeg2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_libmpeg2.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- vd_libmpeg2.c	2 Aug 2004 11:26:43 -0000	1.29
+++ vd_libmpeg2.c	2 Aug 2004 13:09:17 -0000	1.30
@@ -154,6 +154,17 @@
 	    else mpi->fields &= ~MP_IMGFIELD_REPEAT_FIRST;
 	    mpi->fields |= MP_IMGFIELD_ORDERED;
 
+#ifdef MPEG12_POSTPROC
+	    if(!mpi->qscale){
+		mpi->qstride=(info->sequence->picture_width+15)>>4;
+		mpi->qscale=malloc(mpi->qstride*((info->sequence->picture_height+15)>>4));
+	    }
+	    mpeg2dec->decoder.quant_store=mpi->qscale;
+	    mpeg2dec->decoder.quant_stride=mpi->qstride;
+	    mpi->pict_type=type; // 1->I, 2->P, 3->B
+	    mpi->qscale_type= 1;
+#endif
+
 	    if(mpi->flags&MP_IMGFLAG_DRAW_CALLBACK &&
 		!(mpi->flags&MP_IMGFLAG_DIRECT)){
 		   // nice, filter/vo likes draw_callback :)




More information about the MPlayer-cvslog mailing list