[vlc-commits] d3d11_quad: fix RGB to YUV range conversion

Steve Lhomme git at videolan.org
Mon May 28 13:26:01 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan 30 14:36:06 2018 +0100| [b76880ad2a7e967100aacb2f5d6d2fe60156c6f7] | committer: Steve Lhomme

d3d11_quad: fix RGB to YUV range conversion

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

 modules/video_output/win32/d3d11_quad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/win32/d3d11_quad.c b/modules/video_output/win32/d3d11_quad.c
index 364208f04e..fc88d54979 100644
--- a/modules/video_output/win32/d3d11_quad.c
+++ b/modules/video_output/win32/d3d11_quad.c
@@ -740,7 +740,7 @@ int D3D11_SetupQuad(vlc_object_t *o, d3d11_device_t *d3d_dev, const video_format
         else
         {
             ppColorspace = COLORSPACE_FULL_RGBA_TO_BT601_YUV;
-            colorspace.WhitePoint[0*4 + 3] = itu_black_level;
+            colorspace.WhitePoint[0*4 + 3] = -itu_black_level;
             colorspace.WhitePoint[1*4 + 3] = itu_achromacy;
             colorspace.WhitePoint[2*4 + 3] = itu_achromacy;
         }



More information about the vlc-commits mailing list