]> git.sesse.net Git - ffmpeg/commit
pgssubdec: fix subpicture output colorspace and range
authorJan Ekström <jeebjp@gmail.com>
Sun, 24 Apr 2016 14:30:56 +0000 (17:30 +0300)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 24 Apr 2016 21:05:04 +0000 (23:05 +0200)
commit9779b6262471d553c1ed811ff7312564e39d8adf
tree4410d1a525abef02dedd8a311abe5caf31d87207
parent87b8e9500874930667ac966ea2fabdd6222ef6e0
pgssubdec: fix subpicture output colorspace and range

Functionality used before didn't widen the values from limited to
full range. Additionally, now the decoder uses BT.709 where it
should be used according to the video resolution.

Default for not yet set colorimetry is BT.709 due to most observed
HDMV content being HD.

BT.709 coefficients were gathered from the first two parts of BT.709
to BT.2020 conversion guide in ARIB STD-B62 (Pt. 1, Chapter 6.2.2).
They were additionally confirmed by manually calculating values.

Fixes #4637
libavcodec/pgssubdec.c
libavutil/colorspace.h