[vlc-devel] [PATCH 08/14] direct3d11: do the tone mapping for HLG sources too

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


---
 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 ffd39e309b..e9bcbd229e 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1678,7 +1678,7 @@ static HRESULT CompilePixelShader(vout_display_t *vd, const d3d_format_t *format
                     /* Linear to sRGB */
                     psz_display_transform = "return pow(rgb, 1.0 / 2.2)";
 
-                    if (transfer == TRANSFER_FUNC_SMPTE_ST2084)
+                    if (transfer == TRANSFER_FUNC_SMPTE_ST2084 || transfer == TRANSFER_FUNC_HLG)
                     {
                         /* HDR tone mapping */
                         psz_tone_mapping =
-- 
2.11.1



More information about the vlc-devel mailing list