Skip to content

IOSurface tvOS xcode13.0 beta1

tj_devel709 edited this page Jul 9, 2021 · 3 revisions

#IOSurface.framework https://github.com/xamarin/xamarin-macios/pull/12096

diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h	2021-03-16 08:43:18.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h	2021-06-02 05:36:44.000000000 -0400
@@ -132,6 +132,7 @@
     kIOSurfaceComponentTypeUnsignedInteger  = 1,
     kIOSurfaceComponentTypeSignedInteger    = 2,
     kIOSurfaceComponentTypeFloat            = 3,
+    kIOSurfaceComponentTypeSignedNormalized = 4,
 };
 
 /* kIOSurfacePlaneComponentTypes   - CFArray[CFNumber] for IOSurfaceComponentType of each component in this plane. */
@@ -291,6 +292,16 @@
 IOSurfaceSubsampling IOSurfaceGetSubsampling(IOSurfaceRef buffer)
     API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
 
+/* Common IOSurface keys for well-known IOSurface Values */
+
+/* kIOSurfaceColorSpace defines the RGB (or other) color space for the data stored in the IOSurface. It
+ is expected that this is a serialized CGColorSpaceRef, provided by the CoreGraphics CGColorSpaceRef
+ serialization APIs (CGColorSpaceCopyPropertyList). */
+extern const CFStringRef kIOSurfaceColorSpace API_AVAILABLE(macos(10.6), ios(11.0), watchos(4.0), tvos(11.0));
+
+/* CFData representation of the ICC Profile, generally via CGColorSpaceCopyICCData */
+extern const CFStringRef kIOSurfaceICCProfile  API_AVAILABLE(macos(10.6), ios(11.0), watchos(4.0), tvos(11.0));
+
 /* These  calls let you attach CF property list types to a IOSurface buffer.  These calls are
    expensive (they essentially must serialize the data into the kernel) and thus should be avoided whenever
    possible.   Note:  These functions can not be used to change the underlying surface properties. */
Clone this wiki locally