[vlc-devel] [PATCH 3/5] direct3d11: fix the YCbRb BT2020 to RGB conversion matrix
Steve Lhomme
robux4 at videolabs.io
Mon Mar 6 17:57:51 CET 2017
---
modules/video_output/win32/direct3d11.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 5506b9feba..9ef7791a4b 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2211,10 +2211,10 @@ static int SetupQuad(vout_display_t *vd, const video_format_t *fmt, d3d_quad_t *
};
/* 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