Skip to content

CoreImage tvOS xcode9 beta3

Sebastien Pouliot edited this page Aug 14, 2017 · 3 revisions

#CoreImage.framework

Sebastien

diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h	2017-06-11 01:53:26.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h	2017-06-30 00:15:15.000000000 -0400
@@ -277,19 +278,22 @@
  * 'matrix' appended to it. */
 - (CIImage *)imageByApplyingTransform:(CGAffineTransform)matrix;
 

+/* Returns a new image representing the original image transformeded for the given CGImagePropertyOrientation */
+- (CIImage *)imageByApplyingCGOrientation:(CGImagePropertyOrientation)orientation NS_AVAILABLE(10_13, 11_0);
+
+/* Returns a CGAffineTransform for the CGImagePropertyOrientation value that can be applied to an image.*/
+- (CGAffineTransform)imageTransformForCGOrientation:(CGImagePropertyOrientation)orientation NS_AVAILABLE(10_13, 11_0);
+
 /* Return a new image formed by compositing the receiver image over 'dest'.
  * This is equivalent to the CISourceOverCompositing filter. */
 - (CIImage *)imageByCompositingOverImage:(CIImage *)dest NS_AVAILABLE(10_4, 8_0);
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIKernel.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIKernel.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIKernel.h	2017-06-11 01:43:55.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIKernel.h	2017-06-30 00:15:15.000000000 -0400
@@ -225,6 +225,22 @@
 /* The string argument should contain a program with one custom blend kernel. */
 + (nullable instancetype)kernelWithString:(NSString *)string;
 
+/* 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.
+ */
+- (nullable CIImage *)applyWithForeground:(CIImage*)foreground
+                               background:(CIImage*)background;
+
+@end
+
+@interface CIBlendKernel (BuiltIn)
+
 /* Core Image builtin blend kernels */
 
 /* Component-wise operators */
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIRenderDestination.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIRenderDestination.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIRenderDestination.h	2017-06-11 01:43:55.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIRenderDestination.h	2017-06-30 00:15:15.000000000 -0400
@@ -186,16 +185,16 @@
     void *_priv;
 }
 
+// This property will return how much time a render spent executing kernels.
+@property (readonly) NSTimeInterval kernelExecutionTime;
+
 // This property will return how many passes the render requires.
 // If passCount is 1 than the render can be fully concatinated and no
 // intermediate buffers will be required.
 @property (readonly) NSInteger passCount;
 
-// This property will return how much time a render spent executing kernels.
-@property (readonly) NSTimeInterval kernelExecutionTime;
-
 // This property will return how many pixels a render produced executing kernels.
-@property (readonly) NSInteger kernelPixelsProcessed;
+@property (readonly) NSInteger pixelsProcessed;
 
 @end
 
Clone this wiki locally