[vlc-commits] ci_filters: Use CIContext without color management

Marvin Scholz git at videolan.org
Fri Mar 23 11:57:57 CET 2018


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Mar 22 13:47:42 2018 +0100| [3fbdb51297e19b706043c2a64a71c79a3ca6085b] | committer: Thomas Guillem

ci_filters: Use CIContext without color management

There seems to be no need to have macOS do color space conversions at
this point and it fixes the issue where the image would change colors a
bit when activating a CIFilter even without changing any parameters.

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/video_filter/ci_filters.m | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/video_filter/ci_filters.m b/modules/video_filter/ci_filters.m
index 8a8f7a3527..795c907aa5 100644
--- a/modules/video_filter/ci_filters.m
+++ b/modules/video_filter/ci_filters.m
@@ -637,7 +637,10 @@ Open(vlc_object_t *obj, char const *psz_filter)
         ctx->ci_ctx = [CIContext contextWithCGLContext: glctx
                                            pixelFormat: nil
                                             colorSpace: nil
-                                               options: nil];
+                                               options: @{
+                                                kCIContextWorkingColorSpace : [NSNull null],
+                                                kCIContextOutputColorSpace : [NSNull null],
+                                               }];
 #else
         CVEAGLContext eaglctx = var_InheritAddress(filter, "ios-eaglcontext");
         if (!eaglctx)



More information about the vlc-commits mailing list