[vlc-devel] [PATCH 04/14] direct3d11: rename COLORSPACE_RGB_FULL as it's used for other things

Steve Lhomme robux4 at videolabs.io
Mon Mar 20 17:28:23 CET 2017


---
 modules/video_output/win32/direct3d11.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index b34a1f2dbb..1f47013c3a 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2225,7 +2225,7 @@ static int SetupQuad(vout_display_t *vd, const video_format_t *fmt, d3d_quad_t *
         }
     }
 
-    static const FLOAT COLORSPACE_RGB_FULL[4 * 4] = {
+    static const FLOAT IDENTITY_4X4[4 * 4] = {
         1.f, 0.f, 0.f, 0.f,
         0.f, 1.f, 0.f, 0.f,
         0.f, 0.f, 1.f, 0.f,
@@ -2258,7 +2258,7 @@ static int SetupQuad(vout_display_t *vd, const video_format_t *fmt, d3d_quad_t *
     PS_COLOR_TRANSFORM colorspace;
     const FLOAT *ppColorspace;
     if (RGB_shader)
-        ppColorspace = COLORSPACE_RGB_FULL;
+        ppColorspace = IDENTITY_4X4;
     else
     switch (fmt->space){
         case COLOR_SPACE_BT709:
@@ -2280,7 +2280,7 @@ static int SetupQuad(vout_display_t *vd, const video_format_t *fmt, d3d_quad_t *
     }
 
     memcpy(colorspace.Colorspace, ppColorspace, sizeof(colorspace.Colorspace));
-    memcpy(colorspace.WhitePoint, COLORSPACE_RGB_FULL, sizeof(colorspace.WhitePoint));
+    memcpy(colorspace.WhitePoint, IDENTITY_4X4, sizeof(colorspace.WhitePoint));
 
     if (!RGB_shader)
     {
-- 
2.11.1



More information about the vlc-devel mailing list