Class CIContext

    • Constructor Detail

      • CIContext

        protected CIContext​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static CIContext allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • context

        @NotNull
        public static @NotNull CIContext context()
        API-Since: 5.0
      • contextWithCGContextOptions

        @NotNull
        public static @NotNull CIContext contextWithCGContextOptions​(@NotNull
                                                                     @NotNull CGContextRef cgctx,
                                                                     @Nullable
                                                                     @Nullable NSDictionary<java.lang.String,​?> options)
        Create a context specifying a destination CGContext. Core Image will use an internal destination context when methods such as [context render:to...] or [context createCGImage:...] are called. The [context drawImage:...] render methods will render to the CGContext. API-Since: 9.0
      • contextWithEAGLContext

        @NotNull
        @Deprecated
        public static @NotNull CIContext contextWithEAGLContext​(@NotNull
                                                                @NotNull EAGLContext eaglContext)
        Deprecated.
        API-Since: 5.0 Deprecated-Since: 12.0 Deprecated-Message: Core Image OpenGLES API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)
      • contextWithEAGLContextOptions

        @NotNull
        @Deprecated
        public static @NotNull CIContext contextWithEAGLContextOptions​(@NotNull
                                                                       @NotNull EAGLContext eaglContext,
                                                                       @Nullable
                                                                       @Nullable NSDictionary<java.lang.String,​?> options)
        Deprecated.
        API-Since: 5.0 Deprecated-Since: 12.0 Deprecated-Message: Core Image OpenGLES API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)
      • contextWithMTLDevice

        @NotNull
        public static @NotNull CIContext contextWithMTLDevice​(@NotNull
                                                              @NotNull MTLDevice device)
        If a system has more than one MTLDevice, then you can create a CIContext that uses a specific device. If a client wishes to use the default MTLDevice then call [CIContext contextWithOptions:] instead. API-Since: 9.0
      • contextWithMTLDeviceOptions

        @NotNull
        public static @NotNull CIContext contextWithMTLDeviceOptions​(@NotNull
                                                                     @NotNull MTLDevice device,
                                                                     @Nullable
                                                                     @Nullable NSDictionary<java.lang.String,​?> options)
        API-Since: 9.0
      • contextWithOptions

        @NotNull
        public static @NotNull CIContext contextWithOptions​(@Nullable
                                                            @Nullable NSDictionary<java.lang.String,​?> options)
        Create a context without specifying a destination CG/GL/Metal context. Core Image will use an internal destination context when methods such as [context render:to...] or [context createCGImage:...] are called. The [context drawImage:...] render methods will not operate on this type of context. API-Since: 5.0
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • new_objc

        public static CIContext new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • JPEGRepresentationOfImageColorSpaceOptions

        @Nullable
        public @Nullable NSData JPEGRepresentationOfImageColorSpaceOptions​(@NotNull
                                                                           @NotNull CIImage image,
                                                                           @NotNull
                                                                           @NotNull CGColorSpaceRef colorSpace,
                                                                           @NotNull
                                                                           @NotNull NSDictionary<java.lang.String,​?> options)
        Render a CIImage to JPEG data. Image must have a finite non-empty extent. The CGColorSpace must be kCGColorSpaceModelRGB or kCGColorSpaceModelMonochrome. Supported options keys are kCGImageDestinationLossyCompressionQuality, and the depth, disparity, and matte options. API-Since: 10.0
      • TIFFRepresentationOfImageFormatColorSpaceOptions

        @Nullable
        public @Nullable NSData TIFFRepresentationOfImageFormatColorSpaceOptions​(@NotNull
                                                                                 @NotNull CIImage image,
                                                                                 int format,
                                                                                 @NotNull
                                                                                 @NotNull CGColorSpaceRef colorSpace,
                                                                                 @NotNull
                                                                                 @NotNull NSDictionary<java.lang.String,​?> options)
        Render a CIImage to TIFF data. Image must have a finite non-empty extent. The CGColorSpace must be kCGColorSpaceModelRGB or kCGColorSpaceModelMonochrome and must match the specified CIFormat. No options keys are supported at this time. API-Since: 10.0
      • clearCaches

        public void clearCaches()
        Frees any cached data (such as temporary images) associated with the context. This also runs the garbage collector. API-Since: 10.0
      • createCGImageFromRect

        @Nullable
        public @Nullable CGImageRef createCGImageFromRect​(@NotNull
                                                          @NotNull CIImage image,
                                                          CGRect fromRect)
        Render the region 'fromRect' of image 'image' into a temporary buffer using the context, then create and return a new CoreGraphics image with the results. The caller is responsible for releasing the returned image. The return value will be null if size is empty or too big.
      • createCGImageFromRectFormatColorSpace

        @Nullable
        public @Nullable CGImageRef createCGImageFromRectFormatColorSpace​(@NotNull
                                                                          @NotNull CIImage image,
                                                                          CGRect fromRect,
                                                                          int format,
                                                                          @Nullable
                                                                          @Nullable CGColorSpaceRef colorSpace)
        Create a new CGImage from the specified subrect of the image. If non-nil the new image will be created in the specified format and colorspace. The CGColorSpace must be kCGColorSpaceModelRGB or kCGColorSpaceModelMonochrome and must match the specified CIFormat. This will return null if fromRect is empty or infinite or the format isn't supported.
      • createCGImageFromRectFormatColorSpaceDeferred

        @Nullable
        public @Nullable CGImageRef createCGImageFromRectFormatColorSpaceDeferred​(@NotNull
                                                                                  @NotNull CIImage image,
                                                                                  CGRect fromRect,
                                                                                  int format,
                                                                                  @Nullable
                                                                                  @Nullable CGColorSpaceRef colorSpace,
                                                                                  boolean deferred)
        Create a new CGImage from the specified subrect of the image. The new CGImageRef will be created in the specified format and colorspace. The return value will be null if fromRect is empty or infinite. The CGColorSpace must be kCGColorSpaceModelRGB or kCGColorSpaceModelMonochrome and must match the specified CIFormat. This will return null if fromRect is empty or infinite or the format isn't supported. If deferred is NO, then the CIImage will be rendered once when this method is called. If deferred is YES, then the CIImage will be rendered whenever the CGImage is rendered. API-Since: 10.0
      • drawImageAtPointFromRect

        @Deprecated
        public void drawImageAtPointFromRect​(@NotNull
                                             @NotNull CIImage image,
                                             CGPoint atPoint,
                                             CGRect fromRect)
        Deprecated.
        DEPRECATED, please use drawImage:inRect:fromRect: instead. Render the subregion 'fromRect' of 'image' to point 'atPoint' in the context's destination. API-Since: 5.0 Deprecated-Since: 6.0
      • drawImageInRectFromRect

        public void drawImageInRectFromRect​(@NotNull
                                            @NotNull CIImage image,
                                            CGRect inRect,
                                            CGRect fromRect)
        Render the rectangle 'fromRect' of 'image' to the rectangle 'inRect' in the context's destination.
      • initWithOptions

        public CIContext initWithOptions​(@Nullable
                                         @Nullable NSDictionary<java.lang.String,​?> options)
        API-Since: 5.0
      • inputImageMaximumSize

        public CGSize inputImageMaximumSize()
        Returns the maximum dimension for input images that can be processed on the context. API-Since: 5.0
      • outputImageMaximumSize

        public CGSize outputImageMaximumSize()
        Returns the maximum dimension for image that can be rendered on the context. API-Since: 5.0
      • renderToBitmapRowBytesBoundsFormatColorSpace

        public void renderToBitmapRowBytesBoundsFormatColorSpace​(@NotNull
                                                                 @NotNull CIImage image,
                                                                 @NotNull
                                                                 @NotNull org.moe.natj.general.ptr.VoidPtr data,
                                                                 long rowBytes,
                                                                 CGRect bounds,
                                                                 int format,
                                                                 @Nullable
                                                                 @Nullable CGColorSpaceRef colorSpace)
        Render 'image' to the given bitmap. The 'data' parameter must point to at least rowBytes*floor(bounds.size.height) bytes. The 'bounds' parameter has the following behavior: The 'bounds' parameter acts to specify the region of 'image' to render. This region (regardless of its origin) is rendered at upper-left corner of 'data'. Passing a 'colorSpace' value of null means: Disable output color management if app is linked against iOS SDK Disable output color management if app is linked against OSX 10.11 SDK or later Match to context's output color space if app is linked against OSX 10.10 SDK or earlier
      • renderToCVPixelBuffer

        public void renderToCVPixelBuffer​(@NotNull
                                          @NotNull CIImage image,
                                          @NotNull
                                          @NotNull CVBufferRef buffer)
        Render 'image' into the given CVPixelBuffer. In OS X 10.11.3 and iOS 9.3 and later CI will color match to the colorspace of the buffer. otherwise CI will color match to the context's output colorspace. API-Since: 5.0
      • renderToCVPixelBufferBoundsColorSpace

        public void renderToCVPixelBufferBoundsColorSpace​(@NotNull
                                                          @NotNull CIImage image,
                                                          @NotNull
                                                          @NotNull CVBufferRef buffer,
                                                          CGRect bounds,
                                                          @Nullable
                                                          @Nullable CGColorSpaceRef colorSpace)
        Render 'image' to the given CVPixelBufferRef. Point (0,0) in the image coordinate sysyem will align to the lower left corner of 'buffer'. The 'bounds' parameter acts as a clip rect to limit what region of 'buffer' is modified. If 'colorSpace' is nil, CI will not color match to the destination. API-Since: 5.0
      • renderToMTLTextureCommandBufferBoundsColorSpace

        public void renderToMTLTextureCommandBufferBoundsColorSpace​(@NotNull
                                                                    @NotNull CIImage image,
                                                                    @NotNull
                                                                    @NotNull MTLTexture texture,
                                                                    @Nullable
                                                                    @Nullable MTLCommandBuffer commandBuffer,
                                                                    CGRect bounds,
                                                                    @NotNull
                                                                    @NotNull CGColorSpaceRef colorSpace)
        Render 'bounds' of 'image' to a Metal texture, optionally specifying what command buffer to use. Texture type must be MTLTexture2D. NOTE: Rendering to a texture initialized with a commandBuffer requires encoding all the commands to render an image into the specified buffer. This may impact system responsiveness and may result in higher memory usage if the image requires many passes to render. To avoid this impact, it is recommended to create a context using [CIContext contextWithMTLCommandQueue:]. API-Since: 9.0
      • workingColorSpace

        @Nullable
        public @Nullable CGColorSpaceRef workingColorSpace()
        The working color space of the CIContext The property will be null if the context was created with color management disabled. API-Since: 9.0
      • workingFormat

        public int workingFormat()
        The working pixel format of the CIContext used for intermediate buffers API-Since: 9.0
      • writeJPEGRepresentationOfImageToURLColorSpaceOptionsError

        public boolean writeJPEGRepresentationOfImageToURLColorSpaceOptionsError​(@NotNull
                                                                                 @NotNull CIImage image,
                                                                                 @NotNull
                                                                                 @NotNull NSURL url,
                                                                                 @NotNull
                                                                                 @NotNull CGColorSpaceRef colorSpace,
                                                                                 @NotNull
                                                                                 @NotNull NSDictionary<java.lang.String,​?> options,
                                                                                 @Nullable
                                                                                 @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
        Render a CIImage to JPEG file. Image must have a finite non-empty extent. The CGColorSpace must be kCGColorSpaceModelRGB or kCGColorSpaceModelMonochrome. Supported options keys are kCGImageDestinationLossyCompressionQuality, and the depth, disparity, and matte options. API-Since: 10.0
      • writeTIFFRepresentationOfImageToURLFormatColorSpaceOptionsError

        public boolean writeTIFFRepresentationOfImageToURLFormatColorSpaceOptionsError​(@NotNull
                                                                                       @NotNull CIImage image,
                                                                                       @NotNull
                                                                                       @NotNull NSURL url,
                                                                                       int format,
                                                                                       @NotNull
                                                                                       @NotNull CGColorSpaceRef colorSpace,
                                                                                       @NotNull
                                                                                       @NotNull NSDictionary<java.lang.String,​?> options,
                                                                                       @Nullable
                                                                                       @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
        Render a CIImage to TIFF file. Image must have a finite non-empty extent. The CGColorSpace must be kCGColorSpaceModelRGB or kCGColorSpaceModelMonochrome and must match the specified CIFormat. No options keys are supported at this time. API-Since: 10.0
      • HEIFRepresentationOfImageFormatColorSpaceOptions

        @Nullable
        public @Nullable NSData HEIFRepresentationOfImageFormatColorSpaceOptions​(@NotNull
                                                                                 @NotNull CIImage image,
                                                                                 int format,
                                                                                 @NotNull
                                                                                 @NotNull CGColorSpaceRef colorSpace,
                                                                                 @NotNull
                                                                                 @NotNull NSDictionary<java.lang.String,​?> options)
        Render a CIImage to HEIF data. Image must have a finite non-empty extent. The CGColorSpace must be kCGColorSpaceModelRGB or kCGColorSpaceModelMonochrome and must match the specified CIFormat. Supported options keys are kCGImageDestinationLossyCompressionQuality, and the depth, disparity, and matte options. API-Since: 11.0
      • PNGRepresentationOfImageFormatColorSpaceOptions

        @Nullable
        public @Nullable NSData PNGRepresentationOfImageFormatColorSpaceOptions​(@NotNull
                                                                                @NotNull CIImage image,
                                                                                int format,
                                                                                @NotNull
                                                                                @NotNull CGColorSpaceRef colorSpace,
                                                                                @NotNull
                                                                                @NotNull NSDictionary<java.lang.String,​?> options)
        Render a CIImage to PNG data. Image must have a finite non-empty extent. The CGColorSpace must be kCGColorSpaceModelRGB or kCGColorSpaceModelMonochrome and must match the specified CIFormat. No options keys are supported at this time. API-Since: 11.0
      • prepareRenderFromRectToDestinationAtPointError

        public boolean prepareRenderFromRectToDestinationAtPointError​(@NotNull
                                                                      @NotNull CIImage image,
                                                                      CGRect fromRect,
                                                                      @NotNull
                                                                      @NotNull CIRenderDestination destination,
                                                                      CGPoint atPoint,
                                                                      @Nullable
                                                                      @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        This is an optional call which can be used to "warm up" a CIContext so that a subsequent call to render with the same arguments can be more efficient. By making this call, Core Image will ensure that - any needed kernels will be compiled - any intermedate buffers are allocated and marked volatile API-Since: 11.0
      • renderToIOSurfaceBoundsColorSpace

        public void renderToIOSurfaceBoundsColorSpace​(@NotNull
                                                      @NotNull CIImage image,
                                                      @NotNull
                                                      @NotNull IOSurfaceRef surface,
                                                      CGRect bounds,
                                                      @Nullable
                                                      @Nullable CGColorSpaceRef colorSpace)
        Render 'image' to the given IOSurface. Point (0,0) in the image coordinate sysyem will align to the lower left corner of 'surface'. The 'bounds' parameter acts as a clip rect to limit what region of 'surface' is modified. If 'colorSpace' is nil, CI will not color match to the destination. API-Since: 5.0
      • startTaskToClearError

        @Nullable
        public @Nullable CIRenderTask startTaskToClearError​(@NotNull
                                                            @NotNull CIRenderDestination destination,
                                                            @Nullable
                                                            @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Fill the entire destination with black (0,0,0,1) if its alphaMode is None or clear (0,0,0,0) if its alphaMode is Premultiplied or Unpremultiplied. API-Since: 11.0
      • startTaskToRenderFromRectToDestinationAtPointError

        @Nullable
        public @Nullable CIRenderTask startTaskToRenderFromRectToDestinationAtPointError​(@NotNull
                                                                                         @NotNull CIImage image,
                                                                                         CGRect fromRect,
                                                                                         @NotNull
                                                                                         @NotNull CIRenderDestination destination,
                                                                                         CGPoint atPoint,
                                                                                         @Nullable
                                                                                         @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Renders a portion of image to a point of destination It renders as if 'image' is cropped to 'fromRect' and the origin of the result is placed at 'atPoint' If image.extent and fromRect are infinite, then it renders so that point (0,0) of image is placed at 'atPoint' MTLTexture-backed CIRenderDestinations are only supported by MTLTexture-backed CIContexts. GLTexture-backed CIRenderDestinations are only supported by GLContext-backed CIContexts. For contexts that are initialized with a command queue, this call will return as soon as all the work for the render is enqueued on the context's device. Otherwise, it will return as soon as all the work is scheduled. In many situations, after issuing a render, the client can use the destination or its backing object without waiting for the enqueued work to complete. For example, after rendering a surface CIRenderDestination, the surface can be passed on for further processing by the GPU. In other situations, the client may need to wait for the render to be complete. For example, after rendering a surface CIRenderDestination, the surface can be accessed by CPU code by calling IOSurfaceGetBytePointer only after the render is completed. In this case the client can use the returned CIRenderTask like this: CIRenderTask* task = [context render:...]; [task waitUntilCompletedAndReturnError:&error]; API-Since: 11.0
      • startTaskToRenderToDestinationError

        @Nullable
        public @Nullable CIRenderTask startTaskToRenderToDestinationError​(@NotNull
                                                                          @NotNull CIImage image,
                                                                          @NotNull
                                                                          @NotNull CIRenderDestination destination,
                                                                          @Nullable
                                                                          @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Renders an image to a destination so that point (0,0) of image. is placed at point (0,0) of the destination. API-Since: 11.0
      • writeHEIFRepresentationOfImageToURLFormatColorSpaceOptionsError

        public boolean writeHEIFRepresentationOfImageToURLFormatColorSpaceOptionsError​(@NotNull
                                                                                       @NotNull CIImage image,
                                                                                       @NotNull
                                                                                       @NotNull NSURL url,
                                                                                       int format,
                                                                                       @NotNull
                                                                                       @NotNull CGColorSpaceRef colorSpace,
                                                                                       @NotNull
                                                                                       @NotNull NSDictionary<java.lang.String,​?> options,
                                                                                       @Nullable
                                                                                       @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
        Render a CIImage to HEIF file. Image must have a finite non-empty extent. The CGColorSpace must be kCGColorSpaceModelRGB or kCGColorSpaceModelMonochrome and must match the specified CIFormat. Supported options keys are kCGImageDestinationLossyCompressionQuality, and the depth, disparity, and matte options. API-Since: 11.0
      • writePNGRepresentationOfImageToURLFormatColorSpaceOptionsError

        public boolean writePNGRepresentationOfImageToURLFormatColorSpaceOptionsError​(@NotNull
                                                                                      @NotNull CIImage image,
                                                                                      @NotNull
                                                                                      @NotNull NSURL url,
                                                                                      int format,
                                                                                      @NotNull
                                                                                      @NotNull CGColorSpaceRef colorSpace,
                                                                                      @NotNull
                                                                                      @NotNull NSDictionary<java.lang.String,​?> options,
                                                                                      @Nullable
                                                                                      @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
        Render a CIImage to PNG file. Image must have a finite non-empty extent. The CGColorSpace must be kCGColorSpaceModelRGB or kCGColorSpaceModelMonochrome and must match the specified CIFormat. No options keys are supported at this time. API-Since: 11.0
      • contextWithMTLCommandQueue

        @NotNull
        public static @NotNull CIContext contextWithMTLCommandQueue​(@NotNull
                                                                    @NotNull MTLCommandQueue commandQueue)
        Create a CIContext that commits commands to a specific queue. API-Since: 13.0
      • contextWithMTLCommandQueueOptions

        @NotNull
        public static @NotNull CIContext contextWithMTLCommandQueueOptions​(@NotNull
                                                                           @NotNull MTLCommandQueue commandQueue,
                                                                           @Nullable
                                                                           @Nullable NSDictionary<java.lang.String,​?> options)
        API-Since: 13.0
      • depthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationOrientationOptions

        @Nullable
        public @Nullable CIFilter depthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationOrientationOptions​(@NotNull
                                                                                                                                            @NotNull CIImage image,
                                                                                                                                            @NotNull
                                                                                                                                            @NotNull CIImage disparityImage,
                                                                                                                                            @Nullable
                                                                                                                                            @Nullable CIImage portraitEffectsMatte,
                                                                                                                                            @Nullable
                                                                                                                                            @Nullable CIImage hairSemanticSegmentation,
                                                                                                                                            int orientation,
                                                                                                                                            @Nullable
                                                                                                                                            @Nullable NSDictionary<?,​?> options)
        API-Since: 13.0
      • depthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteOrientationOptions

        @Nullable
        public @Nullable CIFilter depthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteOrientationOptions​(@NotNull
                                                                                                                    @NotNull CIImage image,
                                                                                                                    @NotNull
                                                                                                                    @NotNull CIImage disparityImage,
                                                                                                                    @Nullable
                                                                                                                    @Nullable CIImage portraitEffectsMatte,
                                                                                                                    int orientation,
                                                                                                                    @Nullable
                                                                                                                    @Nullable NSDictionary<?,​?> options)
        Create and CIFilter instance for 'image' that can be used to apply the CIDepthBlurEffect. The receiver context is user to render the image in order to get the facial landmarks The 'orientation' parameter should be CGImagePropertyOrientation enum value as defined in the TIFF spec. The 'options' parameter is a key value/pair reserved for future use. API-Since: 12.0
      • depthBlurEffectFilterForImageDataOptions

        @Nullable
        public @Nullable CIFilter depthBlurEffectFilterForImageDataOptions​(@NotNull
                                                                           @NotNull NSData data,
                                                                           @Nullable
                                                                           @Nullable NSDictionary<?,​?> options)
        This is the same as the method above expect it uses NSData to instantiate the image data instead of the contents of a NSURL. API-Since: 12.0
      • depthBlurEffectFilterForImageURLOptions

        @Nullable
        public @Nullable CIFilter depthBlurEffectFilterForImageURLOptions​(@NotNull
                                                                          @NotNull NSURL url,
                                                                          @Nullable
                                                                          @Nullable NSDictionary<?,​?> options)
        Create and CIFilter instance for 'image' that can be used to apply the CIDepthBlurEffect. The receiver context is user to render the image in order to get the facial landmarks The 'options' parameter is a key value/pair reserved for future use. API-Since: 12.0
      • depthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationGlassesMatteGainMapOrientationOptions

        @Nullable
        public @Nullable CIFilter depthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationGlassesMatteGainMapOrientationOptions​(@NotNull
                                                                                                                                                               @NotNull CIImage image,
                                                                                                                                                               @NotNull
                                                                                                                                                               @NotNull CIImage disparityImage,
                                                                                                                                                               @Nullable
                                                                                                                                                               @Nullable CIImage portraitEffectsMatte,
                                                                                                                                                               @Nullable
                                                                                                                                                               @Nullable CIImage hairSemanticSegmentation,
                                                                                                                                                               @Nullable
                                                                                                                                                               @Nullable CIImage glassesMatte,
                                                                                                                                                               @Nullable
                                                                                                                                                               @Nullable CIImage gainMap,
                                                                                                                                                               int orientation,
                                                                                                                                                               @Nullable
                                                                                                                                                               @Nullable NSDictionary<?,​?> options)
        API-Since: 14.1
      • HEIF10RepresentationOfImageColorSpaceOptionsError

        @Nullable
        public @Nullable NSData HEIF10RepresentationOfImageColorSpaceOptionsError​(@NotNull
                                                                                  @NotNull CIImage image,
                                                                                  @NotNull
                                                                                  @NotNull CGColorSpaceRef colorSpace,
                                                                                  @NotNull
                                                                                  @NotNull NSDictionary<java.lang.String,​?> options,
                                                                                  @Nullable
                                                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
        Render a CIImage to HEIF data. Image must have a finite non-empty extent. The CGColorSpace must be kCGColorSpaceModelRGB or kCGColorSpaceModelMonochrome. Supported options keys are kCGImageDestinationLossyCompressionQuality, and the depth, disparity, and matte options. API-Since: 15.0
      • writeHEIF10RepresentationOfImageToURLColorSpaceOptionsError

        public boolean writeHEIF10RepresentationOfImageToURLColorSpaceOptionsError​(@NotNull
                                                                                   @NotNull CIImage image,
                                                                                   @NotNull
                                                                                   @NotNull NSURL url,
                                                                                   @NotNull
                                                                                   @NotNull CGColorSpaceRef colorSpace,
                                                                                   @NotNull
                                                                                   @NotNull NSDictionary<java.lang.String,​?> options,
                                                                                   @Nullable
                                                                                   @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
        Render a CIImage to 10-bit deep HEIF file. Image must have a finite non-empty extent. The CGColorSpace must be kCGColorSpaceModelRGB or kCGColorSpaceModelMonochrome. Supported options keys are kCGImageDestinationLossyCompressionQuality, and the depth, disparity, and matte options. API-Since: 15.0
      • OpenEXRRepresentationOfImageOptionsError

        @Nullable
        public @Nullable NSData OpenEXRRepresentationOfImageOptionsError​(@NotNull
                                                                         @NotNull CIImage image,
                                                                         @NotNull
                                                                         @NotNull NSDictionary<java.lang.String,​?> options,
                                                                         @Nullable
                                                                         @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
        Render a CIImage to OpenEXR data. Image must have a finite non-empty extent. No options keys are supported at this time. API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • writeOpenEXRRepresentationOfImageToURLOptionsError

        public boolean writeOpenEXRRepresentationOfImageToURLOptionsError​(@NotNull
                                                                          @NotNull CIImage image,
                                                                          @NotNull
                                                                          @NotNull NSURL url,
                                                                          @NotNull
                                                                          @NotNull NSDictionary<java.lang.String,​?> options,
                                                                          @Nullable
                                                                          @Nullable org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
        Render a CIImage to OpenEXR file. Image must have a finite non-empty extent. No options keys are supported at this time. API-Since: 17.0