Skip to content

ImageIO macOS xcode13.0 beta2

tj_devel709 edited this page Jul 9, 2021 · 3 revisions

#ImageIO.framework https://github.com/xamarin/xamarin-macios/pull/12094

diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h	2021-06-02 12:47:20.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h	2021-06-17 14:33:51.000000000 -0400
@@ -134,13 +134,19 @@
  * destination. */
 IMAGEIO_EXTERN void CGImageDestinationAddImageAndMetadata(CGImageDestinationRef _iio_Nonnull idst, CGImageRef _iio_Nonnull image, CGImageMetadataRef _iio_Nullable metadata, CFDictionaryRef _iio_Nullable options)  IMAGEIO_AVAILABLE_STARTING(10.8, 7.0);
 
+CF_ASSUME_NONNULL_BEGIN
+/* For CGImageDestinationAddImageFromSource: when set to kCFBooleanTrue, a HEIF-embedded GainMap will be preserved.
+ * If the destination image is scaled (using kCGImageDestinationImageMaxPixelSize), the GainMap will be scaled accordingly.
+ * The value should be kCFBooleanTrue or kCFBooleanFalse
+ * Defaults to kCFBooleanFalse
+ */
+IMAGEIO_EXTERN const CFStringRef kCGImageDestinationPreserveGainMap IMAGEIO_AVAILABLE_STARTING(11.0, 14.1);
+
 /**
  ** Keys which may be used in the 'options' dictionary of
  ** "CGImageDestinationCopyImageSource" to effect the output.
  **/
 
-CF_ASSUME_NONNULL_BEGIN
-
 /* Set the metadata tags for the image destination. If present, the value of
  * this key is a CGImageMetadataRef. By default, all EXIF, IPTC, and XMP tags
  * will be replaced. Use kCGImageDestinationMergeMetadata to merge the tags
@@ -158,9 +164,9 @@
 IMAGEIO_EXTERN const CFStringRef kCGImageDestinationMergeMetadata IMAGEIO_AVAILABLE_STARTING(10.8, 7.0);
 
 /* XMP data will not be written to the destination. If used in conjunction with 
- * kCGImageDestinationMetadata, EXIF and/or IPTC tags will be preserved, but 
- * an XMP packet will not be written to the file. If present, the value for 
- * this key is a CFBooleanRef. The default is kCFBooleanFalse.
+ * kCGImageDestinationMetadata, EXIF tags will be preserved, but
+ * an XMP packet will not be written to the file. IPTC tags, that are stored in XMP, will not be preserved.
+ * If present, the value for this key is a CFBooleanRef. The default is kCFBooleanFalse.
  */
 IMAGEIO_EXTERN const CFStringRef kCGImageMetadataShouldExcludeXMP IMAGEIO_AVAILABLE_STARTING(10.8, 7.0);
 
@@ -186,13 +192,6 @@
  */
 IMAGEIO_EXTERN const CFStringRef kCGImageDestinationOrientation IMAGEIO_AVAILABLE_STARTING(10.8, 7.0);
 
-/* For CGImageDestinationAddImageFromSource: when set to kCFBooleanTrue, a HEIF-embedded GainMap will be preserved.
- * If the destination image is scaled (using kCGImageDestinationImageMaxPixelSize), the GainMap will be scaled accordingly.
- * The value should be kCFBooleanTrue or kCFBooleanFalse
- * Defaults to kCFBooleanFalse
- */
-IMAGEIO_EXTERN const CFStringRef kCGImageDestinationPreserveGainMap IMAGEIO_AVAILABLE_STARTING(11.0, 14.1);
-
 CF_ASSUME_NONNULL_END
 
 /* Losslessly copies the contents of the image source, 'isrc', to the 
Clone this wiki locally