Skip to content

CoreImage iOS xcode9 beta2

Sebastien Pouliot edited this page Aug 31, 2017 · 4 revisions

#CoreImage.framework

Sebastien

diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIContext.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIContext.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIContext.h	2017-05-23 01:18:58.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIContext.h	2017-06-11 01:43:55.000000000 -0400
@@ -279,7 +279,7 @@
 		format:(CIFormat)format
 	colorSpace:(nullable CGColorSpaceRef)colorSpace;
 
-#if !TARGET_OS_IPHONE
+#if !TARGET_OS_SIMULATOR
 /* Render 'image' to the given IOSurface.
  * The 'bounds' parameter has the following behavior:
  *    The 'image' is rendered into 'surface' so that
@@ -289,7 +289,7 @@
 - (void)render:(CIImage *)image
    toIOSurface:(IOSurfaceRef)surface
 		bounds:(CGRect)bounds
-	colorSpace:(nullable CGColorSpaceRef)colorSpace NS_AVAILABLE_MAC(10_6);
+	colorSpace:(nullable CGColorSpaceRef)colorSpace NS_AVAILABLE(10_6,5_0);
 #endif
 
 /* Render 'image' into the given CVPixelBuffer. 
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIFilter.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIFilter.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIFilter.h	2017-05-22 01:16:12.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIFilter.h	2017-06-11 02:47:19.000000000 -0400
@@ -157,6 +157,8 @@
 CORE_IMAGE_EXPORT NSString * const kCIOutputImageKey NS_AVAILABLE(10_5, 5_0);
 CORE_IMAGE_EXPORT NSString * const kCIInputBackgroundImageKey NS_AVAILABLE(10_5, 5_0);
 CORE_IMAGE_EXPORT NSString * const kCIInputImageKey NS_AVAILABLE(10_5, 5_0);
+CORE_IMAGE_EXPORT NSString * const kCIInputDepthImageKey NS_AVAILABLE(10_13, 11_0);
+CORE_IMAGE_EXPORT NSString * const kCIInputDisparityImageKey NS_AVAILABLE(10_13, 11_0);
 CORE_IMAGE_EXPORT NSString * const kCIInputTimeKey NS_AVAILABLE(10_5, 7_0);
 CORE_IMAGE_EXPORT NSString * const kCIInputTransformKey NS_AVAILABLE(10_5, 7_0);
 CORE_IMAGE_EXPORT NSString * const kCIInputScaleKey NS_AVAILABLE(10_5, 7_0);
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h	2017-05-20 00:41:58.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h	2017-06-11 01:53:26.000000000 -0400
@@ -8,8 +8,11 @@
 #import <Foundation/Foundation.h>
 #import <CoreImage/CoreImageDefines.h>
 #import <CoreVideo/CoreVideo.h>
+
 #if !TARGET_OS_IPHONE
 #import <IOSurface/IOSurface.h>
+#elif !TARGET_OS_SIMULATOR
+#import <IOSurface/IOSurfaceRef.h>
 #endif
 
 NS_ASSUME_NONNULL_BEGIN
@@ -91,6 +94,18 @@
  */
 CORE_IMAGE_EXPORT NSString * const kCIImageProperties NS_AVAILABLE(10_8, 5_0);
 
+
+/* A boolean value specifying whether the image should transformed according to orientation metadata properties.
+ * This can be used with imageWithContentsOfURL: or initWithData: when the image contains orientation metadata
+ * or with any of the initWith:options: method if the kCIImageProperties option is also provided.
+ *   If this option value is @YES, the image will transformed according to the orientation metadata
+ *   and the orientation metadata will be be removed.
+ *   If this option not present or the value is @NO, then the image will not be transformed
+ *   and the orientation metadata will left unaltered.
+ */
+CORE_IMAGE_EXPORT NSString * const kCIImageApplyOrientationProperty NS_AVAILABLE(10_13, 11_0);
+
+
 CORE_IMAGE_EXPORT NSString * const kCIImageTextureTarget NS_AVAILABLE_MAC(10_9);
 CORE_IMAGE_EXPORT NSString * const kCIImageTextureFormat NS_AVAILABLE_MAC(10_9);
 
@@ -175,11 +190,11 @@
 + (CIImage *)imageWithCVPixelBuffer:(CVPixelBufferRef)pixelBuffer
                             options:(nullable NSDictionary<NSString *,id> *)options NS_AVAILABLE(10_11, 5_0);
 
+#if !TARGET_OS_SIMULATOR
 /* Creates a new image from the contents of an IOSurface. */
-#if !TARGET_OS_IPHONE
-+ (CIImage *)imageWithIOSurface:(IOSurfaceRef)surface NS_AVAILABLE_MAC(10_6);
++ (CIImage *)imageWithIOSurface:(IOSurfaceRef)surface NS_AVAILABLE(10_6, 5_0);
 + (CIImage *)imageWithIOSurface:(IOSurfaceRef)surface
-                        options:(nullable NSDictionary<NSString *,id> *)options NS_AVAILABLE_MAC(10_6);
+                        options:(nullable NSDictionary<NSString *,id> *)options NS_AVAILABLE(10_6, 5_0);
 #endif
 
 /* Return or initialize a new image with an infinite amount of the color
@@ -234,12 +249,14 @@
 - (nullable instancetype)initWithContentsOfURL:(NSURL *)url
                                        options:(nullable NSDictionary<NSString *,id> *)options;
 
-#if !TARGET_OS_IPHONE
-- (instancetype)initWithIOSurface:(IOSurfaceRef)surface NS_AVAILABLE_MAC(10_6);
+#if !TARGET_OS_SIMULATOR
+- (instancetype)initWithIOSurface:(IOSurfaceRef)surface NS_AVAILABLE(10_6, 5_0);
 
 - (instancetype)initWithIOSurface:(IOSurfaceRef)surface
-                          options:(nullable NSDictionary<NSString *,id> *)options NS_AVAILABLE_MAC(10_6);
+                          options:(nullable NSDictionary<NSString *,id> *)options NS_AVAILABLE(10_6, 5_0);
+#endif
 
+#if !TARGET_OS_IPHONE
 - (instancetype)initWithIOSurface:(IOSurfaceRef)surface
                             plane:(size_t)plane
                            format:(CIFormat)format
Clone this wiki locally