Package apple.coreimage
Class CIRenderDestination
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.coreimage.CIRenderDestination
-
- All Implemented Interfaces:
NSObject
public class CIRenderDestination extends NSObject
This is a lightweight API to allow clients to specify all the attributes of a render that pertain to the render's destination. It is intended to be used for issuing renders that return to the caller as soon as all the work has been issued but before it completes/
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCIRenderDestination.Block_initWithWidthHeightPixelFormatCommandBufferMtlTextureProvider-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCIRenderDestination(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static CIRenderDestinationalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)longalphaMode()This property will defualt to an appropriate value given the object that the CIRenderDestination was initialized with.static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)CIBlendKernelblendKernel()Allow client to specify a CIBlendKernel (e.g.booleanblendsInDestinationColorSpace()If true, then the blendKernel is applied in the destination's colorSpace.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()CGColorSpaceRefcolorSpace()This property will defualt to an appropriate value given the object that the CIRenderDestination was initialized with.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static longhash_static()longheight()CIRenderDestinationinit()CIRenderDestinationinitWithBitmapDataWidthHeightBytesPerRowFormat(org.moe.natj.general.ptr.VoidPtr data, long width, long height, long bytesPerRow, int format)Create a CIRenderDestination based on client-managed buffer.CIRenderDestinationinitWithGLTextureTargetWidthHeight(int texture, int target, long width, long height)Create a CIRenderDestination based on an OpenGL texture.CIRenderDestinationinitWithIOSurface(IOSurface surface)Create a CIRenderDestination based on an IOSurface object.CIRenderDestinationinitWithMTLTextureCommandBuffer(MTLTexture texture, MTLCommandBuffer commandBuffer)A render to a MTLTexture-backed CIRenderDestination is only supported by MTLTexture-backed CIContexts.CIRenderDestinationinitWithPixelBuffer(CVBufferRef pixelBuffer)Create a CIRenderDestination based on a CVPixelBufferRef object.CIRenderDestinationinitWithWidthHeightPixelFormatCommandBufferMtlTextureProvider(long width, long height, long pixelFormat, MTLCommandBuffer commandBuffer, CIRenderDestination.Block_initWithWidthHeightPixelFormatCommandBufferMtlTextureProvider block)Create a CIRenderDestination based on a Metal texture.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisClamped()If true, the render will clamp color channels to 0..alpha if 'alphaMode' is premultiplied otherwise 0..1 This property is initialized to false if the destination's format supports extended rangebooleanisDithered()Instructs the render to add pseudo-random luma noise given the depth of the destination.booleanisFlipped()The logical coordinate system of a CIRenderDestination is always cartesian: (0,0) represents the lower-left corner (0.5,0.5) represents the lower-left pixel center (pixelsWide-0.5,pixelsHigh-0.5) represents the upper-right pixel center (pixelsWide,pixelsHigh) represents the upper-right corner.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAlphaMode(long value)This property will defualt to an appropriate value given the object that the CIRenderDestination was initialized with.voidsetBlendKernel(CIBlendKernel value)Allow client to specify a CIBlendKernel (e.g.voidsetBlendsInDestinationColorSpace(boolean value)If true, then the blendKernel is applied in the destination's colorSpace.voidsetClamped(boolean value)If true, the render will clamp color channels to 0..alpha if 'alphaMode' is premultiplied otherwise 0..1 This property is initialized to false if the destination's format supports extended rangevoidsetColorSpace(CGColorSpaceRef value)This property will defualt to an appropriate value given the object that the CIRenderDestination was initialized with.voidsetDithered(boolean value)Instructs the render to add pseudo-random luma noise given the depth of the destination.voidsetFlipped(boolean value)The logical coordinate system of a CIRenderDestination is always cartesian: (0,0) represents the lower-left corner (0.5,0.5) represents the lower-left pixel center (pixelsWide-0.5,pixelsHigh-0.5) represents the upper-right pixel center (pixelsWide,pixelsHigh) represents the upper-right corner.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static longversion_static()longwidth()MARK: Properties-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static CIRenderDestination alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
alphaMode
public long alphaMode()
This property will defualt to an appropriate value given the object that the CIRenderDestination was initialized with. This property can be set to a different value if desired.
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
blendKernel
public CIBlendKernel blendKernel()
Allow client to specify a CIBlendKernel (e.g. CIBlendKernel.sourceOver) to be used on the destination.
-
blendsInDestinationColorSpace
public boolean blendsInDestinationColorSpace()
If true, then the blendKernel is applied in the destination's colorSpace. If false, then the blendKernel is applied in the CIContext's working colorspace. This is false by default.
-
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()
-
colorSpace
public CGColorSpaceRef colorSpace()
This property will defualt to an appropriate value given the object that the CIRenderDestination was initialized with. This property can be set to a different colorSpace if desired. This property can be set to nil to disable color matching from the working space to the destination.
-
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()
-
height
public long height()
-
init
public CIRenderDestination init()
-
initWithBitmapDataWidthHeightBytesPerRowFormat
public CIRenderDestination initWithBitmapDataWidthHeightBytesPerRowFormat(org.moe.natj.general.ptr.VoidPtr data, long width, long height, long bytesPerRow, int format)
Create a CIRenderDestination based on client-managed buffer. The 'data' parameter must point to a buffer that is at least bytesPerRow * height bytes in size. The destination's 'colorspace' property will default a CGColorSpace created with kCGColorSpaceSRGB, kCGColorSpaceExtendedSRGB, or kCGColorSpaceGenericGrayGamma2_2.
-
initWithGLTextureTargetWidthHeight
public CIRenderDestination initWithGLTextureTargetWidthHeight(int texture, int target, long width, long height)
Create a CIRenderDestination based on an OpenGL texture. Rendering to a GLTexture-backed CIRenderDestination is only supported by GLContext-backed CIContexts. The texture id must be bound to a GLContext that is shared with that of the GLContext-backed CIContext. The destination's 'colorspace' property will default a CGColorSpace created with kCGColorSpaceSRGB, kCGColorSpaceExtendedSRGB, or kCGColorSpaceGenericGrayGamma2_2.
-
initWithIOSurface
public CIRenderDestination initWithIOSurface(IOSurface surface)
Create a CIRenderDestination based on an IOSurface object. The destination's 'colorspace' property will default a CGColorSpace created by, querying the IOSurface attributes.
-
initWithMTLTextureCommandBuffer
public CIRenderDestination initWithMTLTextureCommandBuffer(MTLTexture texture, MTLCommandBuffer commandBuffer)
A render to a MTLTexture-backed CIRenderDestination is only supported by MTLTexture-backed CIContexts. The texture must have a MTLTextureType of MTLTextureType2D An optional MTLCommandBuffer can be specified, with which to use for rendering to the MTLTexture. 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:] and create the CIRenderDestination without specifying a buffer. The destination's 'colorspace' property will default a CGColorSpace created with kCGColorSpaceSRGB, kCGColorSpaceExtendedSRGB, or kCGColorSpaceGenericGrayGamma2_2.
-
initWithPixelBuffer
public CIRenderDestination initWithPixelBuffer(CVBufferRef pixelBuffer)
Create a CIRenderDestination based on a CVPixelBufferRef object. The destination's 'colorspace' property will default a CGColorSpace created by, querying the CVPixelBufferRef attributes.
-
initWithWidthHeightPixelFormatCommandBufferMtlTextureProvider
public CIRenderDestination initWithWidthHeightPixelFormatCommandBufferMtlTextureProvider(long width, long height, long pixelFormat, MTLCommandBuffer commandBuffer, CIRenderDestination.Block_initWithWidthHeightPixelFormatCommandBufferMtlTextureProvider block)
Create a CIRenderDestination based on a Metal texture. Rendering to a MTLTexture-backed CIRenderDestination is only supported by MTLTexture-backed CIContexts. The provider 'block' will be called lazily when the destination is rendered to. The block must return a texture with a MTLTextureType of MTLTextureType2D. The 'width', 'height' and 'pixelFormat' argument values should be the same as the width, height and pixelFormat of the MTLTexture that will be returned by 'block' An optional MTLCommandBuffer can be specified, with which to use for rendering to the MTLTexture. 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:] and create the CIRenderDestination without specifying a buffer. The destination's 'colorspace' property will default a CGColorSpace created with kCGColorSpaceSRGB, kCGColorSpaceExtendedSRGB, or kCGColorSpaceGenericGrayGamma2_2.
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isClamped
public boolean isClamped()
If true, the render will clamp color channels to 0..alpha if 'alphaMode' is premultiplied otherwise 0..1 This property is initialized to false if the destination's format supports extended range
-
isDithered
public boolean isDithered()
Instructs the render to add pseudo-random luma noise given the depth of the destination. The magnitude of the noise is approximatly ±pow(2,-(bitPerComponent+1))
-
isFlipped
public boolean isFlipped()
The logical coordinate system of a CIRenderDestination is always cartesian: (0,0) represents the lower-left corner (0.5,0.5) represents the lower-left pixel center (pixelsWide-0.5,pixelsHigh-0.5) represents the upper-right pixel center (pixelsWide,pixelsHigh) represents the upper-right corner. The 'flipped' property controls how pixels this logical coordinate system are stored into the memory of the object backing the destination. If 'flipped' is false, then the base address of the backing stores the pixel centered on the logical coordinate (0.5,0.5) If 'flipped' is true, then the base address of the backing stores the pixel centered on the logical coordinate (0.5,height-0.5)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
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)
-
setAlphaMode
public void setAlphaMode(long value)
This property will defualt to an appropriate value given the object that the CIRenderDestination was initialized with. This property can be set to a different value if desired.
-
setBlendKernel
public void setBlendKernel(CIBlendKernel value)
Allow client to specify a CIBlendKernel (e.g. CIBlendKernel.sourceOver) to be used on the destination.
-
setBlendsInDestinationColorSpace
public void setBlendsInDestinationColorSpace(boolean value)
If true, then the blendKernel is applied in the destination's colorSpace. If false, then the blendKernel is applied in the CIContext's working colorspace. This is false by default.
-
setClamped
public void setClamped(boolean value)
If true, the render will clamp color channels to 0..alpha if 'alphaMode' is premultiplied otherwise 0..1 This property is initialized to false if the destination's format supports extended range
-
setColorSpace
public void setColorSpace(CGColorSpaceRef value)
This property will defualt to an appropriate value given the object that the CIRenderDestination was initialized with. This property can be set to a different colorSpace if desired. This property can be set to nil to disable color matching from the working space to the destination.
-
setDithered
public void setDithered(boolean value)
Instructs the render to add pseudo-random luma noise given the depth of the destination. The magnitude of the noise is approximatly ±pow(2,-(bitPerComponent+1))
-
setFlipped
public void setFlipped(boolean value)
The logical coordinate system of a CIRenderDestination is always cartesian: (0,0) represents the lower-left corner (0.5,0.5) represents the lower-left pixel center (pixelsWide-0.5,pixelsHigh-0.5) represents the upper-right pixel center (pixelsWide,pixelsHigh) represents the upper-right corner. The 'flipped' property controls how pixels this logical coordinate system are stored into the memory of the object backing the destination. If 'flipped' is false, then the base address of the backing stores the pixel centered on the logical coordinate (0.5,0.5) If 'flipped' is true, then the base address of the backing stores the pixel centered on the logical coordinate (0.5,height-0.5)
-
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()
-
width
public long width()
MARK: Properties
-
-