[vlc-devel] [PATCH 3/6] direct3d11: fix the YCbRb BT2020 to RGB conversion matrix
Steve Lhomme
robux4 at videolabs.io
Tue Mar 7 16:39:36 CET 2017
---
modules/video_output/win32/direct3d11.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index ca6ca33581..ef996fdb7f 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2206,12 +2206,12 @@ static int SetupQuad(vout_display_t *vd, const video_format_t *fmt, d3d_quad_t *
1.164383561643836f, 2.112401785714286f, 0.f, 0.f,
0.f, 0.f, 0.f, 1.f,
};
- /* RGB-709 to RGB-2020 based on https://www.researchgate.net/publication/258434326_Beyond_BT709 */
+ /* see https://en.wikipedia.org/wiki/YCbCr#ITU-R_BT.2020_conversion, in studio range */
static const FLOAT COLORSPACE_BT2020_TO_FULL[4*4] = {
- 1.163746465f, -0.028815145f, 2.823537589f, 0.f,
- 1.164383561f, -0.258509894f, 0.379693635f, 0.f,
- 1.164383561f, 2.385315708f, 0.021554502f, 0.f,
- 0.f, 0.f, 0.f, 1.f,
+ 1.164383561643836f, 0.000000000000f, 1.678674107143f, 0.f,
+ 1.164383561643836f, -0.127007098661f, -0.440987687946f, 0.f,
+ 1.164383561643836f, 2.141772321429f, 0.000000000000f, 0.f,
+ 0.f, 0.f, 0.f, 1.f,
};
PS_COLOR_TRANSFORM colorspace;
--
2.11.1
More information about the vlc-devel
mailing list