Documentation Archive Developer
Search

CoreImage Changes for Objective-C

CoreImage

CIColor.h

Modified CIColor
Protocols
FromNSCoding, NSCopying
ToNSCopying, NSSecureCoding

Modified CIColor.alpha
Declaration
From
- (CGFloat)alpha
To
@property(readonly) CGFloat alpha

Modified CIColor.blue
Declaration
From
- (CGFloat)blue
To
@property(readonly) CGFloat blue

Declaration
From
- (CGColorSpaceRef)colorSpace
To
@property(readonly, nonnull) CGColorSpaceRef colorSpace

Declaration
From
+ (CIColor *)colorWithCGColor:(CGColorRef)c
To
+ (instancetype _Nonnull)colorWithCGColor:(CGColorRef _Nonnull)c

Declaration
From
+ (CIColor *)colorWithRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b
To
+ (instancetype _Nonnull)colorWithRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b

Declaration
From
+ (CIColor *)colorWithRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b alpha:(CGFloat)a
To
+ (instancetype _Nonnull)colorWithRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b alpha:(CGFloat)a

Declaration
From
+ (CIColor *)colorWithString:(NSString *)representation
To
+ (instancetype _Nonnull)colorWithString:(NSString * _Nonnull)representation

Declaration
From
- (const CGFloat *)components
To
@property(readonly, nonnull) const CGFloat *components

Modified CIColor.green
Declaration
From
- (CGFloat)green
To
@property(readonly) CGFloat green

DeclarationDesignated Initializer
From
- (id)initWithCGColor:(CGColorRef)c
--
To
- (instancetype _Nonnull)initWithCGColor:(CGColorRef _Nonnull)c
yes

Declaration
From
- (size_t)numberOfComponents
To
@property(readonly) size_t numberOfComponents

Modified CIColor.red
Declaration
From
- (CGFloat)red
To
@property(readonly) CGFloat red

Declaration
From
- (NSString *)stringRepresentation
To
@property(readonly, nonnull) NSString *stringRepresentation

CIContext.h

Declaration
From
+ (CIContext *)contextWithEAGLContext:(EAGLContext *)eaglContext options:(NSDictionary *)dict
To
+ (CIContext * _Nonnull)contextWithEAGLContext:(EAGLContext * _Nonnull)eaglContext options:(NSDictionary<NSString *,id> * _Nullable)options

Declaration
From
+ (CIContext *)contextWithOptions:(NSDictionary *)dict
To
+ (CIContext * _Nonnull)contextWithOptions:(NSDictionary<NSString *,id> * _Nullable)options

Declaration
From
- (CGImageRef)createCGImage:(CIImage *)im fromRect:(CGRect)r
To
- (CGImageRef _Nonnull)createCGImage:(CIImage * _Nonnull)image fromRect:(CGRect)fromRect

Declaration
From
- (CGImageRef)createCGImage:(CIImage *)im fromRect:(CGRect)r format:(CIFormat)f colorSpace:(CGColorSpaceRef)cs
To
- (CGImageRef _Nonnull)createCGImage:(CIImage * _Nonnull)image fromRect:(CGRect)fromRect format:(CIFormat)format colorSpace:(CGColorSpaceRef _Nullable)colorSpace

Declaration
From
- (void)drawImage:(CIImage *)im atPoint:(CGPoint)p fromRect:(CGRect)src
To
- (void)drawImage:(CIImage * _Nonnull)image atPoint:(CGPoint)atPoint fromRect:(CGRect)fromRect

Declaration
From
- (void)drawImage:(CIImage *)im inRect:(CGRect)dest fromRect:(CGRect)src
To
- (void)drawImage:(CIImage * _Nonnull)image inRect:(CGRect)inRect fromRect:(CGRect)fromRect

Declaration
From
- (void)render:(CIImage *)im toBitmap:(void *)data rowBytes:(ptrdiff_t)rb bounds:(CGRect)r format:(CIFormat)f colorSpace:(CGColorSpaceRef)cs
To
- (void)render:(CIImage * _Nonnull)image toBitmap:(void * _Nonnull)data rowBytes:(ptrdiff_t)rowBytes bounds:(CGRect)bounds format:(CIFormat)format colorSpace:(CGColorSpaceRef _Nullable)colorSpace

Declaration
From
- (void)render:(CIImage *)image toCVPixelBuffer:(CVPixelBufferRef)buffer bounds:(CGRect)r colorSpace:(CGColorSpaceRef)cs
To
- (void)render:(CIImage * _Nonnull)image toCVPixelBuffer:(CVPixelBufferRef _Nonnull)buffer bounds:(CGRect)bounds colorSpace:(CGColorSpaceRef _Nullable)colorSpace

CIDetector.h

Added #def CI_ARRAY
Added #def CI_DICTIONARY
Declaration
From
+ (CIDetector *)detectorOfType:(NSString *)type context:(CIContext *)context options:(NSDictionary *)options
To
+ (CIDetector * _Nonnull)detectorOfType:(NSString * _Nonnull)type context:(CIContext * _Nullable)context options:(NSDictionary<NSString *,id> * _Nullable)options

Declaration
From
- (NSArray *)featuresInImage:(CIImage *)image
To
- (NSArray<CIFeature *> * _Nonnull)featuresInImage:(CIImage * _Nonnull)image

Declaration
From
- (NSArray *)featuresInImage:(CIImage *)image options:(NSDictionary *)options
To
- (NSArray<CIFeature *> * _Nonnull)featuresInImage:(CIImage * _Nonnull)image options:(NSDictionary<NSString *,id> * _Nullable)options

CIFeature.h

Declaration
From
@property(readonly, assign) CGPoint bottomLeft
To
@property(readonly) CGPoint bottomLeft

Declaration
From
@property(readonly, assign) CGPoint bottomRight
To
@property(readonly) CGPoint bottomRight

Declaration
From
@property(readonly, assign) CGRect bounds
To
@property(readonly) CGRect bounds

Declaration
From
@property(readonly, copy) NSString *messageString
To
@property(readonly, nonnull) NSString *messageString

Declaration
From
@property(readonly, assign) CGPoint topLeft
To
@property(readonly) CGPoint topLeft

Declaration
From
@property(readonly, assign) CGPoint topRight
To
@property(readonly) CGPoint topRight

Declaration
From
@property(readonly, assign) CGPoint bottomLeft
To
@property(readonly) CGPoint bottomLeft

Declaration
From
@property(readonly, assign) CGPoint bottomRight
To
@property(readonly) CGPoint bottomRight

Declaration
From
@property(readonly, assign) CGRect bounds
To
@property(readonly) CGRect bounds

Declaration
From
@property(readonly, assign) CGPoint topLeft
To
@property(readonly) CGPoint topLeft

Declaration
From
@property(readonly, assign) CGPoint topRight
To
@property(readonly) CGPoint topRight

CIFilter.h

Modified CIFilter
Protocols
FromNSCoding, NSCopying
ToNSCopying, NSSecureCoding

Declaration
From
- (NSDictionary *)attributes
To
@property(nonatomic, readonly, nonnull) NSDictionary<NSString *,id> *attributes

Declaration
From
+ (NSArray *)filterArrayFromSerializedXMP:(NSData *)xmpData inputImageExtent:(CGRect)extent error:(NSError **)outError
To
+ (NSArray<CIFilter *> * _Nonnull)filterArrayFromSerializedXMP:(NSData * _Nonnull)xmpData inputImageExtent:(CGRect)extent error:(NSError * _Nullable * _Nullable)outError

Declaration
From
+ (NSArray *)filterNamesInCategories:(NSArray *)categories
To
+ (NSArray<NSString *> * _Nonnull)filterNamesInCategories:(NSArray<NSString *> * _Nullable)categories

Declaration
From
+ (NSArray *)filterNamesInCategory:(NSString *)category
To
+ (NSArray<NSString *> * _Nonnull)filterNamesInCategory:(NSString * _Nullable)category

Declaration
From
+ (CIFilter *)filterWithName:(NSString *)name withInputParameters:(NSDictionary *)params
To
+ (CIFilter * _Nullable)filterWithName:(NSString * _Nonnull)name withInputParameters:(NSDictionary<NSString *,id> * _Nullable)params

Declaration
From
- (NSArray *)inputKeys
To
@property(nonatomic, readonly, nonnull) NSArray<NSString *> *inputKeys

Modified CIFilter.name
Declaration
From
- (NSString *)name
To
@property(nonatomic, readonly, nonnull) NSString *name

Declaration
From
- (NSArray *)outputKeys
To
@property(nonatomic, readonly, nonnull) NSArray<NSString *> *outputKeys

Declaration
From
+ (NSData *)serializedXMPFromFilters:(NSArray *)filters inputImageExtent:(CGRect)extent
To
+ (NSData * _Nonnull)serializedXMPFromFilters:(NSArray<CIFilter *> * _Nonnull)filters inputImageExtent:(CGRect)extent

CIFilterConstructor.h (Added)

CIFilterShape.h (Added)

CIImage.h

Modified CIImage
Protocols
FromNSCoding, NSCopying
ToNSCopying, NSSecureCoding

Declaration
From
- (NSArray *)autoAdjustmentFiltersWithOptions:(NSDictionary *)dict
To
- (NSArray<CIFilter *> * _Nonnull)autoAdjustmentFiltersWithOptions:(NSDictionary<NSString *,id> * _Nullable)options

Declaration
From
- (CGRect)extent
To
@property(readonly, nonatomic) CGRect extent

Declaration
From
- (CIImage *)imageByApplyingFilter:(NSString *)filterName withInputParameters:(NSDictionary *)params
To
- (CIImage * _Nonnull)imageByApplyingFilter:(NSString * _Nonnull)filterName withInputParameters:(NSDictionary<NSString *,id> * _Nullable)params

Declaration
From
- (CIImage *)imageByCroppingToRect:(CGRect)r
To
- (CIImage * _Nonnull)imageByCroppingToRect:(CGRect)rect

Declaration
From
+ (CIImage *)imageWithBitmapData:(NSData *)d bytesPerRow:(size_t)bpr size:(CGSize)size format:(CIFormat)f colorSpace:(CGColorSpaceRef)cs
To
+ (CIImage * _Nonnull)imageWithBitmapData:(NSData * _Nonnull)data bytesPerRow:(size_t)bytesPerRow size:(CGSize)size format:(CIFormat)format colorSpace:(CGColorSpaceRef _Nullable)colorSpace

Declaration
From
+ (CIImage *)imageWithCGImage:(CGImageRef)image options:(NSDictionary *)d
To
+ (CIImage * _Nonnull)imageWithCGImage:(CGImageRef _Nonnull)image options:(NSDictionary<NSString *,id> * _Nullable)options

Declaration
From
+ (CIImage *)imageWithContentsOfURL:(NSURL *)url options:(NSDictionary *)d
To
+ (CIImage * _Nullable)imageWithContentsOfURL:(NSURL * _Nonnull)url options:(NSDictionary<NSString *,id> * _Nullable)options

Declaration
From
+ (CIImage *)imageWithCVPixelBuffer:(CVPixelBufferRef)buffer
To
+ (CIImage * _Nonnull)imageWithCVPixelBuffer:(CVPixelBufferRef _Nonnull)pixelBuffer

Declaration
From
+ (CIImage *)imageWithCVPixelBuffer:(CVPixelBufferRef)buffer options:(NSDictionary *)dict
To
+ (CIImage * _Nonnull)imageWithCVPixelBuffer:(CVPixelBufferRef _Nonnull)pixelBuffer options:(NSDictionary<NSString *,id> * _Nullable)options

Declaration
From
+ (CIImage *)imageWithData:(NSData *)data options:(NSDictionary *)d
To
+ (CIImage * _Nullable)imageWithData:(NSData * _Nonnull)data options:(NSDictionary<NSString *,id> * _Nullable)options

Declaration
From
+ (CIImage *)imageWithTexture:(unsigned int)name size:(CGSize)size flipped:(BOOL)flag colorSpace:(CGColorSpaceRef)cs
To
+ (CIImage * _Nonnull)imageWithTexture:(unsigned int)name size:(CGSize)size flipped:(BOOL)flipped colorSpace:(CGColorSpaceRef _Nullable)colorSpace

Declaration
From
- (id)initWithBitmapData:(NSData *)d bytesPerRow:(size_t)bpr size:(CGSize)size format:(CIFormat)f colorSpace:(CGColorSpaceRef)c
To
- (instancetype _Nonnull)initWithBitmapData:(NSData * _Nonnull)data bytesPerRow:(size_t)bytesPerRow size:(CGSize)size format:(CIFormat)format colorSpace:(CGColorSpaceRef _Nullable)colorSpace

Declaration
From
- (id)initWithCGImage:(CGImageRef)image
To
- (instancetype _Nonnull)initWithCGImage:(CGImageRef _Nonnull)image

Declaration
From
- (id)initWithCGImage:(CGImageRef)image options:(NSDictionary *)d
To
- (instancetype _Nonnull)initWithCGImage:(CGImageRef _Nonnull)image options:(NSDictionary<NSString *,id> * _Nullable)options

Declaration
From
- (id)initWithColor:(CIColor *)color
To
- (instancetype _Nonnull)initWithColor:(CIColor * _Nonnull)color

Declaration
From
- (id)initWithContentsOfURL:(NSURL *)url
To
- (instancetype _Nullable)initWithContentsOfURL:(NSURL * _Nonnull)url

Declaration
From
- (id)initWithContentsOfURL:(NSURL *)url options:(NSDictionary *)d
To
- (instancetype _Nullable)initWithContentsOfURL:(NSURL * _Nonnull)url options:(NSDictionary<NSString *,id> * _Nullable)options

Declaration
From
- (id)initWithCVPixelBuffer:(CVPixelBufferRef)buffer
To
- (instancetype _Nonnull)initWithCVPixelBuffer:(CVPixelBufferRef _Nonnull)pixelBuffer

Declaration
From
- (id)initWithCVPixelBuffer:(CVPixelBufferRef)buffer options:(NSDictionary *)dict
To
- (instancetype _Nonnull)initWithCVPixelBuffer:(CVPixelBufferRef _Nonnull)pixelBuffer options:(NSDictionary<NSString *,id> * _Nullable)options

Declaration
From
- (id)initWithData:(NSData *)data
To
- (instancetype _Nullable)initWithData:(NSData * _Nonnull)data

Declaration
From
- (id)initWithData:(NSData *)data options:(NSDictionary *)d
To
- (instancetype _Nullable)initWithData:(NSData * _Nonnull)data options:(NSDictionary<NSString *,id> * _Nullable)options

Declaration
From
- (id)initWithTexture:(unsigned int)name size:(CGSize)size flipped:(BOOL)flag colorSpace:(CGColorSpaceRef)cs
To
- (instancetype _Nonnull)initWithTexture:(unsigned int)name size:(CGSize)size flipped:(BOOL)flipped colorSpace:(CGColorSpaceRef _Nullable)colorSpace

Declaration
From
- (NSDictionary *)properties
To
@property(atomic, readonly, nonnull) NSDictionary<NSString *,id> *properties

Declaration
From
- (CGRect)regionOfInterestForImage:(CIImage *)im inRect:(CGRect)r
To
- (CGRect)regionOfInterestForImage:(CIImage * _Nonnull)image inRect:(CGRect)rect

CIImageAccumulator.h (Added)

CIImageProvider.h (Added)

CIKernel.h

Added #def CI_ARRAY
Added #def CI_DICTIONARY
Declaration
From
- (CIImage *)applyWithExtent:(CGRect)extent arguments:(NSArray *)args
To
- (CIImage * _Nullable)applyWithExtent:(CGRect)extent arguments:(NSArray<id> * _Nullable)args

Declaration
From
- (CIImage *)applyWithExtent:(CGRect)extent roiCallback:(CIKernelROICallback)callback arguments:(NSArray *)args
To
- (CIImage * _Nullable)applyWithExtent:(CGRect)extent roiCallback:(CIKernelROICallback _Nonnull)callback arguments:(NSArray<id> * _Nullable)args

Declaration
From
+ (NSArray *)kernelsWithString:(NSString *)s
To
+ (NSArray<CIKernel *> * _Nullable)kernelsWithString:(NSString * _Nonnull)string

Modified CIKernel.name
Declaration
From
- (NSString *)name
To
@property(atomic, readonly, nonnull) NSString *name

Declaration
From
- (CIImage *)applyWithExtent:(CGRect)extent roiCallback:(CIKernelROICallback)callback inputImage:(CIImage *)image arguments:(NSArray *)args
To
- (CIImage * _Nullable)applyWithExtent:(CGRect)extent roiCallback:(CIKernelROICallback _Nonnull)callback inputImage:(CIImage * _Nonnull)image arguments:(NSArray<id> * _Nullable)args

CISampler.h (Added)

CIVector.h

Modified CIVector
Protocols
FromNSCoding, NSCopying
ToNSCopying, NSSecureCoding

Declaration
From
- (CGAffineTransform)CGAffineTransformValue
To
@property(readonly) CGAffineTransform CGAffineTransformValue

Declaration
From
- (CGPoint)CGPointValue
To
@property(readonly) CGPoint CGPointValue

Declaration
From
- (CGRect)CGRectValue
To
@property(readonly) CGRect CGRectValue

Declaration
From
- (size_t)count
To
@property(readonly) size_t count

Declaration
From
- (id)initWithCGAffineTransform:(CGAffineTransform)r
To
- (instancetype _Nonnull)initWithCGAffineTransform:(CGAffineTransform)r

Declaration
From
- (id)initWithCGPoint:(CGPoint)p
To
- (instancetype _Nonnull)initWithCGPoint:(CGPoint)p

Declaration
From
- (id)initWithCGRect:(CGRect)r
To
- (instancetype _Nonnull)initWithCGRect:(CGRect)r

Declaration
From
- (id)initWithString:(NSString *)representation
To
- (instancetype _Nonnull)initWithString:(NSString * _Nonnull)representation

DeclarationDesignated Initializer
From
- (id)initWithValues:(const CGFloat *)values count:(size_t)count
--
To
- (instancetype _Nonnull)initWithValues:(const CGFloat * _Nonnull)values count:(size_t)count
yes

Declaration
From
- (id)initWithX:(CGFloat)x
To
- (instancetype _Nonnull)initWithX:(CGFloat)x

Declaration
From
- (id)initWithX:(CGFloat)x Y:(CGFloat)y
To
- (instancetype _Nonnull)initWithX:(CGFloat)x Y:(CGFloat)y

Declaration
From
- (id)initWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z
To
- (instancetype _Nonnull)initWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z

Declaration
From
- (id)initWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z W:(CGFloat)w
To
- (instancetype _Nonnull)initWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z W:(CGFloat)w

Declaration
From
- (NSString *)stringRepresentation
To
@property(readonly, nonnull) NSString *stringRepresentation

Declaration
From
+ (CIVector *)vectorWithCGAffineTransform:(CGAffineTransform)t
To
+ (instancetype _Nonnull)vectorWithCGAffineTransform:(CGAffineTransform)t

Declaration
From
+ (CIVector *)vectorWithCGPoint:(CGPoint)p
To
+ (instancetype _Nonnull)vectorWithCGPoint:(CGPoint)p

Declaration
From
+ (CIVector *)vectorWithCGRect:(CGRect)r
To
+ (instancetype _Nonnull)vectorWithCGRect:(CGRect)r

Declaration
From
+ (CIVector *)vectorWithString:(NSString *)representation
To
+ (instancetype _Nonnull)vectorWithString:(NSString * _Nonnull)representation

Declaration
From
+ (CIVector *)vectorWithValues:(const CGFloat *)values count:(size_t)count
To
+ (instancetype _Nonnull)vectorWithValues:(const CGFloat * _Nonnull)values count:(size_t)count

Declaration
From
+ (CIVector *)vectorWithX:(CGFloat)x
To
+ (instancetype _Nonnull)vectorWithX:(CGFloat)x

Declaration
From
+ (CIVector *)vectorWithX:(CGFloat)x Y:(CGFloat)y
To
+ (instancetype _Nonnull)vectorWithX:(CGFloat)x Y:(CGFloat)y

Declaration
From
+ (CIVector *)vectorWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z
To
+ (instancetype _Nonnull)vectorWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z

Declaration
From
+ (CIVector *)vectorWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z W:(CGFloat)w
To
+ (instancetype _Nonnull)vectorWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z W:(CGFloat)w

Modified CIVector.W
Declaration
From
- (CGFloat)W
To
@property(readonly) CGFloat W

Modified CIVector.X
Declaration
From
- (CGFloat)X
To
@property(readonly) CGFloat X

Modified CIVector.Y
Declaration
From
- (CGFloat)Y
To
@property(readonly) CGFloat Y

Modified CIVector.Z
Declaration
From
- (CGFloat)Z
To
@property(readonly) CGFloat Z

CoreImage.h

Added #def UNIFIED_CORE_IMAGE