[vlc-commits] direct3d11: the default luminance with PQ is always 10,000 nits

Steve Lhomme git at videolan.org
Wed Jan 24 11:03:48 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jan 24 10:15:57 2018 +0100| [82e3d78e50a7ae40e920578ea88a82d6994ba34d] | committer: Steve Lhomme

direct3d11: the default luminance with PQ is always 10,000 nits

It may differ according to the HDR metadata passed with frames.

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

 modules/video_output/win32/direct3d11.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 82e79304a3..162871be77 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1744,12 +1744,8 @@ static HRESULT CompilePixelShader(vout_display_t *vd, const d3d_format_t *format
     switch (transfer)
     {
         case TRANSFER_FUNC_SMPTE_ST2084:
-            if (sys->display.colorspace->transfer == TRANSFER_FUNC_SMPTE_ST2084)
-                /* the display will take care of the meta data if there are some */
-                src_luminance_peak = MAX_PQ_BRIGHTNESS;
-            else
-                /* TODO adjust this value during playback using HDR metadata ? */
-                src_luminance_peak = 5000;
+            /* that's the default PQ value if the metadata are not set */
+            src_luminance_peak = MAX_PQ_BRIGHTNESS;
             break;
         case TRANSFER_FUNC_HLG:
             src_luminance_peak = 1000;



More information about the vlc-commits mailing list