# HG changeset patch # User arpi # Date 1049647057 0 # Node ID 15fe3fba5b1dd60fb3b313804303b7ffb17d5834 # Parent 1446c04b558dc8d53eafaf8cb306ad63669d8e6f qscale exporting for postprocess patch by Fabian Franz diff -r 1446c04b558d -r 15fe3fba5b1d libmpeg2/mpeg2_internal.h --- a/libmpeg2/mpeg2_internal.h Sun Apr 06 16:37:12 2003 +0000 +++ b/libmpeg2/mpeg2_internal.h Sun Apr 06 16:37:37 2003 +0000 @@ -135,6 +135,10 @@ int second_field; int mpeg1; + + /* for MPlayer: */ + char* quant_store; + int quant_stride; }; typedef struct { diff -r 1446c04b558d -r 15fe3fba5b1d libmpeg2/slice.c --- a/libmpeg2/slice.c Sun Apr 06 16:37:12 2003 +0000 +++ b/libmpeg2/slice.c Sun Apr 06 16:37:37 2003 +0000 @@ -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 */ \