pgssubdec: fix subpicture output colorspace and range
authorJan Ekström <jeebjp@gmail.com>
Sun, 24 Apr 2016 14:30:56 +0000 (17:30 +0300)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 27 Apr 2016 02:40:12 +0000 (04:40 +0200)
commit3003277103a26765b1e1c1c5bd4865f703a703b4
treec2c1c145aadf4e5c06f6963b5fba2ce450ab497d
parent05b33258e3ac3fca4586c67da596330fbc9dfaf5
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
(cherry picked from commit 9779b6262471d553c1ed811ff7312564e39d8adf)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pgssubdec.c
libavutil/colorspace.h