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

Steve Lhomme git at videolan.org
Wed May 29 13:38:21 CEST 2019


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

direct3d11: the peak luminance of HLG is officially 1000

(cherry picked from commit 43e5fb14483055fa47eb73f79f4810891f2722d1)

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

 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 77de06c527..81f605d1af 100644
--- a/modules/video_output/win32/d3d11_shaders.c
+++ b/modules/video_output/win32/d3d11_shaders.c
@@ -539,7 +539,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 ce56113034..0d72e2875e 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 enum video_color_axis {



More information about the vlc-commits mailing list