[vlc-commits] direct3d11: document the pixel conversion matrices
Steve Lhomme
git at videolan.org
Fri Mar 10 19:40:45 CET 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Mar 7 16:39:35 2017 +0100| [ec18b1f4c00efff379b78427570c69a23880f122] | committer: Jean-Baptiste Kempf
direct3d11: document the pixel conversion matrices
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec18b1f4c00efff379b78427570c69a23880f122
---
modules/video_output/win32/direct3d11.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 237376f..ca6ca33 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2190,12 +2190,16 @@ static int SetupQuad(vout_display_t *vd, const video_format_t *fmt, d3d_quad_t *
0.f, 0.f, 1.f, 0.f,
0.f, 0.f, 0.f, 1.f,
};
+
+ /* matrices for studio range */
+ /* see https://en.wikipedia.org/wiki/YCbCr#ITU-R_BT.601_conversion, in studio range */
static const FLOAT COLORSPACE_BT601_TO_FULL[4*4] = {
1.164383561643836f, 0.f, 1.596026785714286f, 0.f,
1.164383561643836f, -0.391762290094914f, -0.812967647237771f, 0.f,
1.164383561643836f, 2.017232142857142f, 0.f, 0.f,
0.f, 0.f, 0.f, 1.f,
};
+ /* see https://en.wikipedia.org/wiki/YCbCr#ITU-R_BT.709_conversion, in studio range */
static const FLOAT COLORSPACE_BT709_TO_FULL[4*4] = {
1.164383561643836f, 0.f, 1.792741071428571f, 0.f,
1.164383561643836f, -0.213248614273730f, -0.532909328559444f, 0.f,
More information about the vlc-commits
mailing list