diff options
author | cantabile <cantabile.desu@gmail.com> | 2012-08-21 00:03:59 +0300 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-21 18:17:41 +0200 |
commit | a1380f394597e06e04195b1812300550f3c2df40 (patch) | |
tree | db2303737c451586f1f427e0f3b562f1c7f0dade /libmpdemux | |
parent | 27262dec1be623618a2e55ab1dbc35371e0ec758 (diff) | |
download | mpv-a1380f394597e06e04195b1812300550f3c2df40.tar.bz2 mpv-a1380f394597e06e04195b1812300550f3c2df40.tar.xz |
video: honor the video's colormatrix and color range flags
If either of them is not defined, the old behavior is used:
- the colormatrix is guessed based on resolution.
- the color range is assumed to be tv aka limited range.
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/stheader.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/stheader.h b/libmpdemux/stheader.h index c0bf9e4db0..f36ac8c347 100644 --- a/libmpdemux/stheader.h +++ b/libmpdemux/stheader.h @@ -147,6 +147,8 @@ typedef struct sh_video { float stream_aspect; // aspect ratio in media headers (DVD IFO files) int i_bps; // == bitrate (compressed bytes/sec) int disp_w, disp_h; // display size (filled by demuxer) + int colorspace; // mp_csp + int color_range; // mp_csp_levels // output driver/filters: (set by libmpcodecs core) unsigned int outfmt; unsigned int outfmtidx; |