Mercurial > mplayer.hg
changeset 9855:15fe3fba5b1d
qscale exporting for postprocess
patch by Fabian Franz <FabianFranz@gmx.de>
author | arpi |
---|---|
date | Sun, 06 Apr 2003 16:37:37 +0000 |
parents | 1446c04b558d |
children | 08496327b7ec |
files | libmpeg2/mpeg2_internal.h libmpeg2/slice.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 {
--- 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 */ \