[vlc-commits] direct3d11: rename COLORSPACE_RGB_FULL as it's used for other things

Steve Lhomme git at videolan.org
Tue Mar 21 18:36:59 CET 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Mon Mar 20 17:05:47 2017 +0100| [16132f93f69080b71c6eac5fdef51d9b5a774c01] | committer: Hugo Beauzée-Luyssen

direct3d11: rename COLORSPACE_RGB_FULL as it's used for other things

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=16132f93f69080b71c6eac5fdef51d9b5a774c01
---

 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 a1323ec..7add7cb 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2212,7 +2212,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,
@@ -2245,7 +2245,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:
@@ -2267,7 +2267,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)
     {



More information about the vlc-commits mailing list