[vlc-commits] direct3d11: do the tone mapping for HLG sources too

Steve Lhomme git at videolan.org
Tue Mar 21 18:47:50 CET 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Mar 15 18:00:21 2017 +0100| [6f50b4999c85a64109a7608575c856300fdc6033] | committer: Hugo Beauzée-Luyssen

direct3d11: do the tone mapping for HLG sources too

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

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

 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 fc48eba..cde8fa4 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1672,7 +1672,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 =



More information about the vlc-commits mailing list