[vlc-commits] direct3d11: fix the HLG to Linear luminance

Steve Lhomme git at videolan.org
Tue Mar 21 18:37:00 CET 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Mar 16 11:46:14 2017 +0100| [d27d32c82366a85fd16b69e0d38d2b1bc7543819] | committer: Hugo Beauzée-Luyssen

direct3d11: fix the HLG to Linear luminance

The standard mentions the 12.0 coefficient. The rendering problem is elsewhere.

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

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

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

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index cde8fa4..f944036 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1646,7 +1646,7 @@ static HRESULT CompilePixelShader(vout_display_t *vd, const d3d_format_t *format
                    "rgb.r = inverse_HLG(rgb.r);\
                     rgb.g = inverse_HLG(rgb.g);\
                     rgb.b = inverse_HLG(rgb.b);\
-                    return rgb / 6.0";
+                    return rgb / 12.0";
             src_transfer = TRANSFER_FUNC_LINEAR;
             break;
         case TRANSFER_FUNC_BT709:



More information about the vlc-commits mailing list