Package org.robovm.apple.coreimage
Class CIContext
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.coreimage.CIContext
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class CIContext extends NSObject
- Since:
- Available in iOS 5.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CIContext.CIContextPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description CIContext()
CIContext(CGContext cgctx, CIContextOptions options)
CIContext(CIContextOptions options)
protected
CIContext(NSObject.Handle h, long handle)
protected
CIContext(NSObject.SkipInit skipInit)
CIContext(MTLDevice device)
CIContext(MTLDevice device, CIContextOptions options)
CIContext(EAGLContext eaglContext)
Deprecated.Deprecated in iOS 12.0.CIContext(EAGLContext eaglContext, CIContextOptions options)
Deprecated.Deprecated in iOS 12.0.
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
CIContext
protected CIContext(NSObject.Handle h, long handle)
-
CIContext
protected CIContext(NSObject.SkipInit skipInit)
-
CIContext
public CIContext(CGContext cgctx, CIContextOptions options)
- Since:
- Available in iOS 9.0 and later.
-
CIContext
public CIContext(CIContextOptions options)
- Since:
- Available in iOS 5.0 and later.
-
CIContext
public CIContext()
- Since:
- Available in iOS 5.0 and later.
-
CIContext
@Deprecated public CIContext(EAGLContext eaglContext)
Deprecated.Deprecated in iOS 12.0. Core Image OpenGLES API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)- Since:
- Available in iOS 5.0 and later.
-
CIContext
@Deprecated public CIContext(EAGLContext eaglContext, CIContextOptions options)
Deprecated.Deprecated in iOS 12.0. Core Image OpenGLES API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)- Since:
- Available in iOS 5.0 and later.
-
CIContext
public CIContext(MTLDevice device)
- Since:
- Available in iOS 9.0 and later.
-
CIContext
public CIContext(MTLDevice device, CIContextOptions options)
- Since:
- Available in iOS 9.0 and later.
-
-
Method Detail
-
getWorkingColorSpace
public CGColorSpace getWorkingColorSpace()
- Since:
- Available in iOS 9.0 and later.
-
getWorkingFormat
public int getWorkingFormat()
- Since:
- Available in iOS 9.0 and later.
-
createCGImage
public CGImage createCGImage(CIImage image, CGRect fromRect, int format, CGColorSpace colorSpace)
-
createCGImage
public CGImage createCGImage(CIImage image, CGRect fromRect, int format, CGColorSpace colorSpace, boolean deferred)
- Since:
- Available in iOS 10.0 and later.
-
render
public void render(CIImage image, org.robovm.rt.bro.ptr.VoidPtr data, long rowBytes, CGRect bounds, int format, CGColorSpace colorSpace)
-
render
public void render(CIImage image, IOSurface surface, CGRect bounds, CGColorSpace colorSpace)
- Since:
- Available in iOS 5.0 and later.
-
render
public void render(CIImage image, CVPixelBuffer buffer)
- Since:
- Available in iOS 5.0 and later.
-
render
public void render(CIImage image, CVPixelBuffer buffer, CGRect bounds, CGColorSpace colorSpace)
- Since:
- Available in iOS 5.0 and later.
-
render
public void render(CIImage image, MTLTexture texture, MTLCommandBuffer commandBuffer, CGRect bounds, CGColorSpace colorSpace)
- Since:
- Available in iOS 9.0 and later.
-
clearCaches
public void clearCaches()
- Since:
- Available in iOS 10.0 and later.
-
getInputImageMaximumSize
public CGSize getInputImageMaximumSize()
- Since:
- Available in iOS 5.0 and later.
-
getOutputImageMaximumSize
public CGSize getOutputImageMaximumSize()
- Since:
- Available in iOS 5.0 and later.
-
create
protected static long create(CGContext cgctx, CIContextOptions options)
- Since:
- Available in iOS 9.0 and later.
-
create
protected static long create(CIContextOptions options)
- Since:
- Available in iOS 5.0 and later.
-
create
protected static long create()
- Since:
- Available in iOS 5.0 and later.
-
create
@Deprecated protected static long create(EAGLContext eaglContext)
Deprecated.Deprecated in iOS 12.0. Core Image OpenGLES API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)- Since:
- Available in iOS 5.0 and later.
-
create
@Deprecated protected static long create(EAGLContext eaglContext, CIContextOptions options)
Deprecated.Deprecated in iOS 12.0. Core Image OpenGLES API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)- Since:
- Available in iOS 5.0 and later.
-
create
protected static long create(MTLDevice device)
- Since:
- Available in iOS 9.0 and later.
-
create
protected static long create(MTLDevice device, CIContextOptions options)
- Since:
- Available in iOS 9.0 and later.
-
tiffRepresentationOfImage
public NSData tiffRepresentationOfImage(CIImage image, int format, CGColorSpace colorSpace, CIImageRepresentationOptions options)
- Since:
- Available in iOS 10.0 and later.
-
jpegRepresentationOfImage
public NSData jpegRepresentationOfImage(CIImage image, CGColorSpace colorSpace, CIImageRepresentationOptions options)
- Since:
- Available in iOS 10.0 and later.
-
HEIFRepresentationOfImage
public NSData HEIFRepresentationOfImage(CIImage image, int format, CGColorSpace colorSpace, CIImageRepresentationOptions options)
- Since:
- Available in iOS 11.0 and later.
-
PNGRepresentationOfImage
public NSData PNGRepresentationOfImage(CIImage image, int format, CGColorSpace colorSpace, CIImageRepresentationOptions options)
- Since:
- Available in iOS 11.0 and later.
-
writeTIFFRepresentationOfImage
public boolean writeTIFFRepresentationOfImage(CIImage image, NSURL url, int format, CGColorSpace colorSpace, CIImageRepresentationOptions options, NSError.NSErrorPtr errorPtr)
- Since:
- Available in iOS 10.0 and later.
-
writePNGRepresentationOfImage
public boolean writePNGRepresentationOfImage(CIImage image, NSURL url, int format, CGColorSpace colorSpace, CIImageRepresentationOptions options, NSError.NSErrorPtr errorPtr)
- Since:
- Available in iOS 11.0 and later.
-
writeJPEGRepresentationOfImage
public boolean writeJPEGRepresentationOfImage(CIImage image, NSURL url, CGColorSpace colorSpace, CIImageRepresentationOptions options, NSError.NSErrorPtr errorPtr)
- Since:
- Available in iOS 10.0 and later.
-
writeHEIFRepresentationOfImage
public boolean writeHEIFRepresentationOfImage(CIImage image, NSURL url, int format, CGColorSpace colorSpace, CIImageRepresentationOptions options, NSError.NSErrorPtr errorPtr)
- Since:
- Available in iOS 11.0 and later.
-
depthBlurEffectFilter
public CIFilter depthBlurEffectFilter(NSURL url, NSDictionary<?,?> options)
- Since:
- Available in iOS 12.0 and later.
-
depthBlurEffectFilter
public CIFilter depthBlurEffectFilter(NSData data, NSDictionary<?,?> options)
- Since:
- Available in iOS 12.0 and later.
-
depthBlurEffectFilter
public CIFilter depthBlurEffectFilter(CIImage image, CIImage disparityImage, CIImage portraitEffectsMatte, CGImagePropertyOrientation orientation, NSDictionary<?,?> options)
- Since:
- Available in iOS 12.0 and later.
-
startTaskToRender
public CIRenderTask startTaskToRender(CIImage image, CGRect fromRect, CIRenderDestination destination, CGPoint atPoint, NSError.NSErrorPtr error)
- Since:
- Available in iOS 11.0 and later.
-
startTaskToRender
public CIRenderTask startTaskToRender(CIImage image, CIRenderDestination destination, NSError.NSErrorPtr error)
- Since:
- Available in iOS 11.0 and later.
-
prepareRender
public boolean prepareRender(CIImage image, CGRect fromRect, CIRenderDestination destination, CGPoint atPoint, NSError.NSErrorPtr error)
- Since:
- Available in iOS 11.0 and later.
-
startTaskToClear
public CIRenderTask startTaskToClear(CIRenderDestination destination, NSError.NSErrorPtr error)
- Since:
- Available in iOS 11.0 and later.
-
-