Class CIBlendKernel

  • All Implemented Interfaces:
    NSObject

    public class CIBlendKernel
    extends CIColorKernel
    CIBlendKernel is a special type of color kernel that blends two images. Blend kernel functions are declared akin to this example: kernel vec4 myBlendKernel (__sample fore, __sample back) A blend kernel function must have exactly two arguments of type __sample. The first argument represents the value of the source pixel and the second represents that of the old destination. The vec4 returned by the kernel will be the new destination color. The kernel should not call sample(), samplerCoord(), or samplerTransform(). The function must return a vec4 pixel color.
    • Constructor Detail

      • CIBlendKernel

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • applyWithForegroundBackground

        public CIImage applyWithForegroundBackground​(CIImage foreground,
                                                     CIImage background)
        Apply the receiver CIBlendKernel to produce a new CIImage object by blending a foreground and background images. The 'extent' of the result image will be determined by the reciver and the extent of the forground and background images. For most of the builtin blend kernels (as well as custom blend kernels) the result image extent will be the union of the forground and background image extents.
      • automaticallyNotifiesObserversForKey

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

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

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

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

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • clear

        public static CIBlendKernel clear()
        Porter Duff http://dl.acm.org/citation.cfm?id=808606
      • componentAdd

        public static CIBlendKernel componentAdd()
        Component-wise operators
      • componentMultiply

        public static CIBlendKernel componentMultiply()
      • debugDescription_static

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

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

        public static CIBlendKernel destinationAtop()
      • destinationOver

        public static CIBlendKernel destinationOver()
      • hash_static

        public static long hash_static()
      • hue

        public static CIBlendKernel hue()
        Standard nonseparable blend modes
      • 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)
      • kernelWithFunctionNameFromMetalLibraryDataError

        public static CIBlendKernel kernelWithFunctionNameFromMetalLibraryDataError​(java.lang.String name,
                                                                                    NSData data,
                                                                                    org.moe.natj.general.ptr.Ptr<NSError> error)
      • kernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError

        public static CIBlendKernel kernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError​(java.lang.String name,
                                                                                                     NSData data,
                                                                                                     int format,
                                                                                                     org.moe.natj.general.ptr.Ptr<NSError> error)
      • kernelWithString

        public static CIBlendKernel kernelWithString​(java.lang.String string)
        The string argument should contain a program with one custom blend kernel.
      • kernelsWithString

        public static NSArray<? extends CIKernel> kernelsWithString​(java.lang.String string)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • multiply

        public static CIBlendKernel multiply()
        Standard separable blend modes
      • new_objc

        public static java.lang.Object 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)
      • subtract

        public static CIBlendKernel subtract()
        Additional blend modes
      • superclass_static

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

        public static long version_static()
      • applyWithForegroundBackgroundColorSpace

        public CIImage applyWithForegroundBackgroundColorSpace​(CIImage foreground,
                                                               CIImage background,
                                                               CGColorSpaceRef colorSpace)
        Apply the receiver CIBlendKernel to produce a new CIImage object by blending a foreground and background images in the specifid colorspace. The 'extent' of the result image will be determined by the reciver and the extent of the forground and background images. For most of the builtin blend kernels (as well as custom blend kernels) the result image extent will be the union of the forground and background image extents.
      • kernelNamesFromMetalLibraryData

        public static NSArray<java.lang.String> kernelNamesFromMetalLibraryData​(NSData data)