Skip to content

CoreGraphics iOS xcode16.0 b2

Rolf Bjarne Kvinge edited this page Aug 14, 2024 · 3 revisions

#CoreGraphics.framework https://github.com/xamarin/xamarin-macios/pull/21033

diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h --- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h	2024-05-30 03:00:17 +++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h	2024-06-15 08:47:49 @@ -212,6 +212,9 @@ CG_EXTERN const CFStringRef kCGColorSpaceExtendedLinearGray API_AVAILABLE(macos(10.12), ios(10.0)); +CG_EXTERN const CFStringRef kCGColorSpaceCoreMedia709 +API_AVAILABLE(macos(15.0), ios(18.0)); + /* Create a DeviceGray color space. */ CG_EXTERN CGColorSpaceRef cg_nullable CGColorSpaceCreateDeviceGray(void) diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h --- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h	2024-05-30 10:36:12 +++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h	2024-06-15 10:28:16 @@ -204,17 +204,23 @@ CGImageRef cg_nullable image, CGColorSpaceRef cg_nullable space) API_AVAILABLE(macos(10.3), ios(2.0)); -/* Create an image with specified EDR headroom. ColorSpace 'space' must be an +/* Create an image with specified content headroom. ColorSpace 'space' must be an extended color space, PQ or HLG. In case of extended color spaces, image components must be either 16-bit or 32-bit float. In case of PQ or HLG color spaces, 16-bit or 32-bit float image components values will be clipped to [0.0, 1.0] range, and other bit depths will be treated as - representing [0.0, 1.0] range, same as in 'CGImageCreate' API. + representing [0.0, 1.0] range, same as in the 'CGImageCreate' API. The headroom parameter must be either equal 0.0f or be greater or equal 1.0f. - When the headroom parameter is 0.0f, the image EDR headroom value will be - estimated based on the default headroom of the color space. */ + When the headroom parameter is 0.0f and the color space is extended, + the image content headroom will be calculated from the image data. + When needed, the exisitng 'CGImageCreate' API will create an image with + content headroom equal 0.0f. + When the headroom parameter is 0.0f in case of PQ or HLG color spaces, + the image content headroom value will be estimated based on the color space. + When justified, kCGDefaultHDRImageContentHeadroom which is a typical content + headroom for PQ and HLG images could be used to specify the content headroom.*/ -CG_EXTERN CGImageRef __nullable CGImageCreateWithEDRHeadroom( +CG_EXTERN CGImageRef __nullable CGImageCreateWithContentHeadroom( float headroom, size_t width, size_t height, size_t bitsPerComponent, size_t bitsPerPixel, size_t bytesPerRow, @@ -223,6 +229,20 @@ const CGFloat * __nullable decode, bool shouldInterpolate, CGColorRenderingIntent intent) API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)); + +/* Create a copy of `image' adding or replacing the image's content headroom. + Returns NULL if `image' is an image mask, or if original is not using + extended color space, PQ or HLG. + The headroom parameter must be either equal 0.0f or be greater or equal 1.0f. + When the headroom parameter is 0.0f and the color space is extended, + the image content headroom will be calculated from the image data. */ + +CG_EXTERN CGImageRef __nullable CGImageCreateCopyWithContentHeadroom( + float headroom, CGImageRef cg_nullable image) +API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)); + +CG_EXTERN float kCGDefaultHDRImageContentHeadroom +API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)); /* Return image content headroom */ diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h --- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h	2024-05-30 05:04:46 +++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h	2024-06-15 08:47:48 @@ -67,6 +67,12 @@ CG_EXTERN void CGPDFContextAddDocumentMetadata(CGContextRef cg_nullable context, CFDataRef __nullable metadata) API_AVAILABLE(macos(10.7), ios(4.0)); +CG_EXTERN void CGPDFContextSetParentTree(CGContextRef cg_nullable context, CGPDFDictionaryRef parentTreeDictionary); + +CG_EXTERN void CGPDFContextSetIDTree(CGContextRef cg_nullable context, CGPDFDictionaryRef IDTreeDictionary); + +CG_EXTERN void CGPDFContextSetPageTagStructureTree(CGContextRef cg_nullable context, CFDictionaryRef pageTagStructureTreeDictionary); + /* Set the URL associated with `rect' to `url' in the PDF context `context'. */ @@ -372,6 +378,10 @@ CGPDFTagTypeFigure = 700, CGPDFTagTypeFormula, CGPDFTagTypeForm, +  + /* Page , TABLE 10.12 Type for object reference*/ + CGPDFTagTypeObject = 800 +  } API_AVAILABLE(macos(10.15), ios(13.0)); /* For a given CGPDFTagType, return a C-string that matches the names defined in section 10.7.3: Standard Structure Types. diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes --- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes	2024-05-30 05:00:17 +++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes	2024-06-15 11:12:09 @@ -467,6 +467,8 @@ SwiftName: CGImage.copy(self:) - Name: CGImageCreateCopyWithColorSpace SwiftName: CGImage.copy(self:colorSpace:) +- Name: CGImageCreateCopyWithContentHeadroom + SwiftName: CGImage.copy(self:headroom:colorSpace:) - Name: CGImageCreateWithImageInRect SwiftName: CGImage.cropping(self:to:) - Name: CGImageCreateWithMask @@ -477,7 +479,7 @@ SwiftName: getter:CGImage.typeID() - Name: CGImageCreate SwiftName: CGImage.init(width:height:bitsPerComponent:bitsPerPixel:bytesPerRow:space:bitmapInfo:provider:decode:shouldInterpolate:intent:) -- Name: CGImageCreateWithEDRHeadroom +- Name: CGImageCreateWithContentHeadroom SwiftName: CGImage.init(headroom:width:height:bitsPerComponent:bitsPerPixel:bytesPerRow:space:bitmapInfo:provider:decode:shouldInterpolate:intent:) - Name: CGImageMaskCreate SwiftName: CGImage.init(maskWidth:height:bitsPerComponent:bitsPerPixel:bytesPerRow:provider:decode:shouldInterpolate:) @@ -1186,6 +1188,8 @@ SwiftName: CGColorSpace.linearGray - Name: kCGColorSpaceExtendedLinearGray SwiftName: CGColorSpace.extendedLinearGray +- Name: kCGColorSpaceCoreMedia709 + SwiftName: CGColorSpace.coreMedia709 - Name: kCGFontVariationAxisName SwiftName: CGFont.variationAxisName - Name: kCGFontVariationAxisMinValue 
Clone this wiki locally