[vlc-devel] [PATCH] video_out/mac: Enable bt2020 color space

Vittorio Giovara vittorio.giovara at gmail.com
Sun Oct 2 03:45:43 CEST 2016


---
Not sure if this was on purpose or a typo, sending just in case.
Vittorio

 modules/video_output/caopengllayer.m | 2 +-
 modules/video_output/macosx.m        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/caopengllayer.m b/modules/video_output/caopengllayer.m
index ab10594..c3f33e1 100644
--- a/modules/video_output/caopengllayer.m
+++ b/modules/video_output/caopengllayer.m
@@ -214,7 +214,7 @@ static int Open (vlc_object_t *p_this)
                     case COLOR_PRIMARIES_BT2020:
                     {
                         msg_Dbg(vd, "Using BT.2020 color space");
-                        sys->cgColorSpace = CGColorSpaceCreateWithName(kCGColorSpaceITUR_709);
+                        sys->cgColorSpace = CGColorSpaceCreateWithName(kCGColorSpaceITUR_2020);
                         break;
                     }
                     case COLOR_PRIMARIES_DCI_P3:
diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 6c13eb6..e0d1860 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -184,7 +184,7 @@ static int Open (vlc_object_t *this)
                 case COLOR_PRIMARIES_BT2020:
                 {
                     msg_Dbg(vd, "Using BT.2020 color space");
-                    sys->cgColorSpace = CGColorSpaceCreateWithName(kCGColorSpaceITUR_709);
+                    sys->cgColorSpace = CGColorSpaceCreateWithName(kCGColorSpaceITUR_2020);
                     break;
                 }
                 case COLOR_PRIMARIES_DCI_P3:
-- 
2.10.0



More information about the vlc-devel mailing list