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

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


vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Mar 22 13:47:42 2018 +0100| [18aa03142af1eeae185d3e04bc2ddf32cd98f960] | 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>
(cherry picked from commit 3fbdb51297e19b706043c2a64a71c79a3ca6085b)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 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