mirror of
https://github.com/mpv-player/mpv
synced 2025-02-03 05:31:34 +00:00
qscale exporting for postprocess
patch by Fabian Franz <FabianFranz@gmx.de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9856 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b26c266cfd
commit
df67e3e8e2
@ -135,6 +135,10 @@ struct decoder_s {
|
||||
int second_field;
|
||||
|
||||
int mpeg1;
|
||||
|
||||
/* for MPlayer: */
|
||||
char* quant_store;
|
||||
int quant_stride;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
|
@ -1420,6 +1420,9 @@ do { \
|
||||
|
||||
#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 */ \
|
||||
|
Loading…
Reference in New Issue
Block a user