[vlc-commits] direct3d9: use a different vout for HDR content if possible

Steve Lhomme git at videolan.org
Mon Feb 5 19:21:19 CET 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb  5 18:01:31 2018 +0100| [706c91ba6ebef1ccb347e9fd62885f6262b21e1b] | committer: Jean-Baptiste Kempf

direct3d9: use a different vout for HDR content if possible

Similar to what we do with 360 videos.

It should fallback to OpenGL on Win7.

(cherry picked from commit 3c667badb4119dd1a4fe5a686c6a378fb8f92795)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/video_output/win32/direct3d9.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 71b517a59d..d60e92e7ed 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -248,6 +248,9 @@ static int Open(vlc_object_t *object)
     if ( !vd->obj.force && vd->source.projection_mode != PROJECTION_MODE_RECTANGULAR)
         return VLC_EGENERIC; /* let a module who can handle it do it */
 
+    if ( !vd->obj.force && vd->source.mastering.max_luminance != 0)
+        return VLC_EGENERIC; /* let a module who can handle it do it */
+
     OSVERSIONINFO winVer;
     winVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
     if(GetVersionEx(&winVer) && winVer.dwMajorVersion < 6 && !object->obj.force)



More information about the vlc-commits mailing list