[Mplayer-cvslog] CVS: main/libmpeg2 slice.c,1.9,1.10 mpeg2_internal.h,1.15,1.16

Arpi of Ize arpi at mplayerhq.hu
Sun Apr 6 18:37:43 CEST 2003


Update of /cvsroot/mplayer/main/libmpeg2
In directory mail:/var/tmp.root/cvs-serv9248

Modified Files:
	slice.c mpeg2_internal.h 
Log Message:
qscale exporting for postprocess
patch by Fabian Franz <FabianFranz at gmx.de>


Index: slice.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpeg2/slice.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- slice.c	6 Apr 2003 16:36:02 -0000	1.9
+++ slice.c	6 Apr 2003 16:37:37 -0000	1.10
@@ -1420,6 +1420,9 @@
 
 #define NEXT_MACROBLOCK							\
 do {									\
+    if(decoder->quant_store)						\
+	decoder->quant_store[decoder->quant_stride*(decoder->v_offset>>4) \
+		    +(decoder->offset>>4)] = decoder->quantizer_scale;  \
     decoder->offset += 16;						\
     if (decoder->offset == decoder->width) {				\
 	do { /* just so we can use the break statement */		\

Index: mpeg2_internal.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpeg2/mpeg2_internal.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- mpeg2_internal.h	6 Apr 2003 16:36:02 -0000	1.15
+++ mpeg2_internal.h	6 Apr 2003 16:37:37 -0000	1.16
@@ -135,6 +135,10 @@
     int second_field;
 
     int mpeg1;
+
+    /* for MPlayer: */
+    char* quant_store;
+    int   quant_stride;
 };
 
 typedef struct {



More information about the MPlayer-cvslog mailing list