[vlc-commits] direct3d11: the peak luminance of HLG is officially 1000

Steve Lhomme git at videolan.org
Wed May 29 13:23:05 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue May 28 09:41:45 2019 +0200| [ddbb1a8b61e0bb5e8e2f0f29c9f255ff1088c93f] | committer: Steve Lhomme

direct3d11: the peak luminance of HLG is officially 1000

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

 modules/video_output/win32/d3d11_shaders.c | 2 +-
 modules/video_output/win32/d3d11_shaders.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/win32/d3d11_shaders.c b/modules/video_output/win32/d3d11_shaders.c
index b1f56303ed..e516112c60 100644
--- a/modules/video_output/win32/d3d11_shaders.c
+++ b/modules/video_output/win32/d3d11_shaders.c
@@ -682,7 +682,7 @@ float GetFormatLuminance(vlc_object_t *o, const video_format_t *fmt)
             /* that's the default PQ value if the metadata are not set */
             return MAX_PQ_BRIGHTNESS;
         case TRANSFER_FUNC_HLG:
-            return 2000;
+            return MAX_HLG_BRIGHTNESS;
         case TRANSFER_FUNC_BT470_BG:
         case TRANSFER_FUNC_BT470_M:
         case TRANSFER_FUNC_BT709:
diff --git a/modules/video_output/win32/d3d11_shaders.h b/modules/video_output/win32/d3d11_shaders.h
index 5af23b3943..576eea64ba 100644
--- a/modules/video_output/win32/d3d11_shaders.h
+++ b/modules/video_output/win32/d3d11_shaders.h
@@ -28,6 +28,7 @@
 
 #define DEFAULT_BRIGHTNESS         100
 #define DEFAULT_SRGB_BRIGHTNESS    100
+#define MAX_HLG_BRIGHTNESS        1000
 #define MAX_PQ_BRIGHTNESS        10000
 
 typedef struct {



More information about the vlc-commits mailing list