[vlc-commits] caopengllayer: request HDR mode

Felix Paul Kühne git at videolan.org
Sat Apr 16 14:15:14 CEST 2016


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Apr 16 14:35:04 2016 +0300| [9c269836144d42b7e83f3369df8b112e9d2187e7] | committer: Felix Paul Kühne

caopengllayer: request HDR mode

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

 modules/video_output/caopengllayer.m |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/video_output/caopengllayer.m b/modules/video_output/caopengllayer.m
index 787bd45..2335df0 100644
--- a/modules/video_output/caopengllayer.m
+++ b/modules/video_output/caopengllayer.m
@@ -219,6 +219,11 @@ static int Open (vlc_object_t *p_this)
             msg_Dbg(vd, "OS does not support custom color spaces, output may be undefined");
         }
 
+        /* request our screen's HDR mode (introduced in OS X 10.11) */
+        if ([sys->cgLayer respondsToSelector:@selector(setWantsExtendedDynamicRangeContent:)]) {
+            [sys->cgLayer setWantsExtendedDynamicRangeContent:YES];
+        }
+
         /* setup initial state */
         CGSize outputSize;
         if ([container respondsToSelector:@selector(currentOutputSize)])



More information about the vlc-commits mailing list