Skip to content

CoreVideo macOS xcode13.0 rc

Alex Soto edited this page Sep 14, 2021 · 1 revision

#CoreVideo.framework

diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVBase.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVBase.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVBase.h	2021-08-09 03:21:15.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVBase.h	2021-08-03 21:48:46.000000000 -0400
@@ -19,11 +19,8 @@
 #include <TargetConditionals.h>
 #include <Availability.h>
 #include <AvailabilityMacros.h>
-#include <stdint.h>
 
-#if TARGET_OS_WIN32
-#pragma warning (disable: 4068)		// ignore unknown pragmas
-#endif
+
 
 
 
@@ -35,11 +32,9 @@
 #define COREVIDEO_TRUE (1 && 1)
 #define COREVIDEO_FALSE (0 && 1)
 
-#if TARGET_OS_WIN32
-	#define COREVIDEO_SUPPORTS_DIRECT3D 	COREVIDEO_TRUE
-#else
+
 	#define COREVIDEO_SUPPORTS_DIRECT3D 	COREVIDEO_FALSE
-#endif
+
 
 #if TARGET_OS_MACCATALYST
 #define COREVIDEO_SUPPORTS_OPENGL 		COREVIDEO_TRUE
@@ -58,7 +53,7 @@
 #endif
 #endif
 
-#if ((TARGET_OS_MAC && ! TARGET_OS_IPHONE) || (TARGET_OS_WIN32))
+#if ((TARGET_OS_MAC && ! TARGET_OS_IPHONE) || (0))
 	#define COREVIDEO_SUPPORTS_COLORSPACE 	COREVIDEO_TRUE
 #else
 	#define COREVIDEO_SUPPORTS_COLORSPACE 	COREVIDEO_FALSE
@@ -130,12 +125,6 @@
 	#define COREVIDEO_DECLARE_NULLABILITY COREVIDEO_FALSE
 #endif
 
-#if (TARGET_OS_IPHONE || TARGET_OS_MAC) && defined(__has_feature) && __has_feature(attribute_cf_returns_retained)
-    #define CV_RETURNS_RETAINED CF_RETURNS_RETAINED
-#else
-    #define CV_RETURNS_RETAINED 
-#endif
-
 #if (TARGET_OS_IPHONE || TARGET_OS_MAC) && defined(__has_feature) && __has_feature(attribute_cf_returns_on_parameters)
 #define CV_RETURNS_RETAINED_PARAMETER		CF_RETURNS_RETAINED
 #else
@@ -165,17 +154,9 @@
 	
 #define CV_INTERNAL __attribute__((visibility("hidden")))
 
-#if TARGET_OS_WIN32 && defined(CV_BUILDING_CV) && defined(__cplusplus)
-#define CV_EXPORT extern "C" __declspec(dllexport) 
-#elif TARGET_OS_WIN32 && defined(CV_BUILDING_CV) && !defined(__cplusplus)
-#define CV_EXPORT extern __declspec(dllexport) 
-#elif TARGET_OS_WIN32 && defined(__cplusplus)
-#define CV_EXPORT extern "C" __declspec(dllimport) 
-#elif TARGET_OS_WIN32
-#define CV_EXPORT extern __declspec(dllimport) 
-#else
+
 #define CV_EXPORT __attribute__((visibility("default"))) CF_EXPORT 
-#endif
+
 
 #define CV_INLINE CF_INLINE
 
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVBuffer.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVBuffer.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVBuffer.h	2021-08-06 23:44:12.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVBuffer.h	2021-08-03 21:48:46.000000000 -0400
@@ -2,7 +2,7 @@
  *  CVBuffer.h
  *  CoreVideo
  *
- *  Copyright (c) 2004-2017,2021 Apple Inc. All rights reserved.
+ *  Copyright (c) 2004-2015 Apple Inc. All rights reserved.
  *
  */
  
@@ -12,7 +12,7 @@
     @discussion CVBufferRef types are abstract and only define ways to attach meta data to buffers (such as timestamps,
 	        colorspace information, etc.).    CVBufferRefs do not imply any particular kind of data storage.  It could
 		be compressed data, image data, etc.
-		
+		   
 */
 
 #if !defined(__COREVIDEO_CVBUFFER_H__)
@@ -103,7 +103,7 @@
     @param      attachmentMode.  Returns the mode of the attachment, if desired.  May be NULL.
     @result     If found the attachment object
 */
-CV_EXPORT CFTypeRef CV_NULLABLE CVBufferGetAttachment( CVBufferRef CV_NONNULL buffer, CFStringRef CV_NONNULL key, CVAttachmentMode * CV_NULLABLE attachmentMode )  API_DEPRECATED_WITH_REPLACEMENT("CVBufferCopyAttachment", macos(10.4, 12.0), ios(4.0,15.0), tvos(9.0, 15.0), watchos(4.0, 8.0));
+CV_EXPORT CFTypeRef CV_NULLABLE CVBufferGetAttachment( CVBufferRef CV_NONNULL buffer, CFStringRef CV_NONNULL key, CVAttachmentMode * CV_NULLABLE attachmentMode ) __OSX_AVAILABLE_STARTING(__MAC_10_4,__IPHONE_4_0);
 
 /*!
     @function   CVBufferRemoveAttachment
@@ -130,7 +130,7 @@
     @result     A CFDictionary with all buffer attachments identified by there keys. If no attachment is present, the dictionary is empty.  Returns NULL
 		for invalid attachment mode.
 */
-CV_EXPORT CFDictionaryRef CF_RETURNS_NOT_RETAINED CV_NULLABLE CVBufferGetAttachments( CVBufferRef CV_NONNULL buffer, CVAttachmentMode attachmentMode ) API_DEPRECATED_WITH_REPLACEMENT("CVBufferCopyAttachments", macos(10.4, 12.0), ios(4.0,15.0), tvos(9.0, 15.0), watchos(4.0, 8.0));
+CV_EXPORT CFDictionaryRef CF_RETURNS_NOT_RETAINED CV_NULLABLE CVBufferGetAttachments( CVBufferRef CV_NONNULL buffer, CVAttachmentMode attachmentMode ) __OSX_AVAILABLE_STARTING(__MAC_10_4,__IPHONE_4_0);
 
 /*!
     @function   CVBufferSetAttachments
@@ -150,35 +150,6 @@
 */
 CV_EXPORT void  CVBufferPropagateAttachments( CVBufferRef CV_NONNULL sourceBuffer, CVBufferRef CV_NONNULL destinationBuffer ) __OSX_AVAILABLE_STARTING(__MAC_10_4,__IPHONE_4_0);
 
-/*!
-    @function   CVBufferCopyAttachments
-    @abstract   Returns a copy of all attachments of a CVBuffer object. It is the caller’s responsibility to release the returned dictionary.
-    @discussion CVBufferCopyAttachments is a convenience call that returns a copy of all attachments with their corresponding keys in a CFDictionary.
-    @param      buffer  Target CVBuffer object.
-    @result     A CFDictionary with all buffer attachments identified by their keys. If no attachment is present or invalid attachment mode,   returns NULL
-*/
-CV_EXPORT CFDictionaryRef CF_RETURNS_RETAINED CV_NULLABLE CVBufferCopyAttachments( CVBufferRef CV_NONNULL buffer, CVAttachmentMode attachmentMode ) API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0));
-
-/*!
-    @function   CVBufferCopyAttachment
-    @abstract   Returns a retained specific attachment of a CVBuffer object. It is the caller’s responsibility to release the returned value.
-    @discussion You can attach any CF object to a CVBuffer object to store additional information. CVBufferCopyAttachment retrieves a retained attachment identified by a key.
-    @param      buffer  Target CVBuffer object.
-    @param      key    Key in form of a CFString identifying the desired attachment.
-    @param      attachmentMode.  Returns the mode of the attachment, if desired.  May be NULL.
-    @result     If found the attachment object, return the value; otherwize, return NULL.
-*/
-CV_EXPORT CFTypeRef CV_NULLABLE CF_RETURNS_RETAINED CVBufferCopyAttachment( CVBufferRef CV_NONNULL buffer, CFStringRef CV_NONNULL key, CVAttachmentMode * CV_NULLABLE attachmentMode ) API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0));
-
-/*!
-    @function   CVBufferHasAttachment
-    @abstract   Returns true if an attachment with the passed key is present on a CVBuffer object.
-    @param      buffer  Target CVBuffer object.
-    @param      key    Key in form of a CFString identifying the desired attachment.
-    @result     True if an attachment with this key is present, otherwise false.
-*/
-CV_EXPORT Boolean CVBufferHasAttachment( CVBufferRef CV_NONNULL buffer, CFStringRef CV_NONNULL key ) API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0));
-
 #if defined(__cplusplus)
 }
 #endif
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVImageBuffer.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVImageBuffer.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVImageBuffer.h	2021-08-09 03:21:14.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVImageBuffer.h	2021-08-03 21:48:46.000000000 -0400
@@ -2,7 +2,7 @@
  *  CVImageBuffer.h
  *  CoreVideo
  *
- *  Copyright (c) 2004-2021 Apple Inc. All rights reserved.
+ *  Copyright (c) 2004-2015 Apple Inc. All rights reserved.
  *
  */
  
@@ -11,7 +11,7 @@
 	@availability Mac OS X 10.4 or later, and iOS 4.0 or later
     @discussion CVImageBufferRef types are abstract and define various attachments and convenience
 		calls for retreiving image related bits of data.
-		
+		   
 */
 
 #if !defined(__COREVIDEO_CVIMAGEBUFFER_H__)
@@ -22,7 +22,7 @@
 #include <AvailabilityMacros.h>
 
 // For legacy reasons CVImageBuffer.h includes CoreGraphics.h and ApplicationServices.h
-#if TARGET_OS_IPHONE || TARGET_OS_WIN32
+#if TARGET_OS_IPHONE || 0
 #include <CoreGraphics/CoreGraphics.h>
 #else
 #include <ApplicationServices/ApplicationServices.h>
@@ -201,7 +201,7 @@
 /*!
    @function   CVImageBufferCreateColorSpaceFromAttachments
    @abstract   Attempts to synthesize a CGColorSpace from an image buffer's attachments.
-   @param      attachments A CFDictionary of attachments for an image buffer, obtained using CVBufferCopyAttachments().
+   @param      attachments A CFDictionary of attachments for an image buffer, obtained using CVBufferGetAttachments().
    @result     A CGColorSpaceRef representing the color space of the buffer.
 		Returns NULL if the attachments dictionary does not contain the information required to synthesize a CGColorSpace.
    @discussion
@@ -219,19 +219,6 @@
 	// CFData (4 bytes) containing big-endian data matching payload of Content Light Level Information SEI message
 CV_EXPORT const CFStringRef CV_NONNULL kCVImageBufferContentLightLevelInfoKey __OSX_AVAILABLE_STARTING(__MAC_10_13,__IPHONE_11_0);
 
-// CFData (8 bytes) containing big-endian data matching payload of Ambient Viewing Environment SEI message
-CV_EXPORT const CFStringRef CV_NONNULL kCVImageBufferAmbientViewingEnvironmentKey API_AVAILABLE(macosx(12.0), ios(15.0), tvos(15.0), watchos(8.0));
-
-/*!
-	@constant    kCVImageBufferRegionOfInterestKey
-	@abstract
-		Specifies region of interest that image statistics cover. This value should be a CGRect dictionary created by CGRectCreateDictionaryRepresentation(). The origin in the CGRect represents the x,y coordinate within the CVPixelBuffer where region of interest is located.
-	@discussion
-		
-*/
-CV_EXPORT const CFStringRef CV_NONNULL kCVImageBufferRegionOfInterestKey           API_AVAILABLE(macosx(12.0), ios(15.0), tvos(15.0), watchos(8.0));
-
-
 #if defined(__cplusplus)
 }
 #endif
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h	2021-08-07 05:20:11.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h	2021-08-03 21:48:46.000000000 -0400
@@ -2,12 +2,12 @@
  *  CVPixelBuffer.h
  *  CoreVideo
  *
- *  Copyright (c) 2004-2021 Apple Inc. All rights reserved.
+ *  Copyright (c) 2004-2015 Apple Inc. All rights reserved.
  *
  */
  
   /*! @header CVPixelBuffer.h
-	@copyright 2004-2021 Apple Inc. All rights reserved.
+	@copyright 2004-2015 Apple Inc. All rights reserved.
 	@availability Mac OS X 10.4 or later, and iOS 4.0 or later
     @discussion CVPixelBuffers are CVImageBuffers that hold the pixels in main memory
 		   
@@ -86,8 +86,6 @@
   kCVPixelFormatType_TwoComponent8  = '2C08',     /* 8 bit two component, black is zero */
   kCVPixelFormatType_30RGBLEPackedWideGamut = 'w30r', /* little-endian RGB101010, 2 MSB are zero, wide-gamut (384-895) */
   kCVPixelFormatType_ARGB2101010LEPacked = 'l10r',     /* little-endian ARGB2101010 full-range ARGB */
-  kCVPixelFormatType_40ARGBLEWideGamut      = 'w40a', /* little-endian ARGB10101010, each 10 bits in the MSBs of 16bits, wide-gamut (384-895, including alpha) */
-  kCVPixelFormatType_40ARGBLEWideGamutPremultiplied = 'w40m', /* little-endian ARGB10101010, each 10 bits in the MSBs of 16bits, wide-gamut (384-895, including alpha). Alpha premultiplied */
   kCVPixelFormatType_OneComponent10      = 'L010',     /* 10 bit little-endian one component, stored as 10 MSBs of 16 bits, black is zero */
   kCVPixelFormatType_OneComponent12      = 'L012',     /* 12 bit little-endian one component, stored as 12 MSBs of 16 bits, black is zero */
   kCVPixelFormatType_OneComponent16      = 'L016',     /* 16 bit little-endian one component, black is zero */
@@ -115,43 +113,9 @@
   kCVPixelFormatType_420YpCbCr8VideoRange_8A_TriPlanar   = 'v0a8', /* first and second planes as per 420YpCbCr8BiPlanarVideoRange (420v), alpha 8 bits in third plane full-range.  No CVPlanarPixelBufferInfo struct. */
   kCVPixelFormatType_16VersatileBayer    = 'bp16',   /* Single plane Bayer 16-bit little-endian sensor element ("sensel") samples from full-size decoding of ProRes RAW images; Bayer pattern (sensel ordering) and other raw conversion information is described via buffer attachments */
   kCVPixelFormatType_64RGBA_DownscaledProResRAW    = 'bp64',   /* Single plane 64-bit RGBA (16-bit little-endian samples) from downscaled decoding of ProRes RAW images; components--which may not be co-sited with one another--are sensel values and require raw conversion, information for which is described via buffer attachments */
-  kCVPixelFormatType_422YpCbCr16BiPlanarVideoRange       = 'sv22', /* 2 plane YCbCr16 4:2:2, video-range (luma=[4096,60160] chroma=[4096,61440]) */
-  kCVPixelFormatType_444YpCbCr16BiPlanarVideoRange       = 'sv44', /* 2 plane YCbCr16 4:4:4, video-range (luma=[4096,60160] chroma=[4096,61440]) */
-  kCVPixelFormatType_444YpCbCr16VideoRange_16A_TriPlanar = 's4as', /* 3 plane video-range YCbCr16 4:4:4 with 16-bit full-range alpha (luma=[4096,60160] chroma=[4096,61440] alpha=[0,65535]).  No CVPlanarPixelBufferInfo struct. */
 };
 
 	
-/*
-	Lossless-Compressed Pixel Formats
-	
-	The following pixel formats can be used to reduce the memory bandwidth involved in large-scale pixel data flow, which can have benefits for battery life and thermal efficiency.
-	They work by dividing pixel buffers into fixed-width, fixed-height, fixed-byte-size blocks.  Hardware units (video codecs, GPU, ISP, etc.) attempt to write a compressed encoding for each block using a lossless algorithm.  If a block of pixels is successfully encoded using fewer bytes than the uncompressed pixel data, the hardware unit does not need to write as many bytes for that pixel block.  If the encoding is unsuccessful, the uncompressed pixel data is written, filling the whole pixel block.  Each compressed pixel buffer has a separate area of metadata recording the encoding choices for each pixel block.
-	
-	Padding bits are eliminated, so for example, 10-bit-per-component lossless-compressed pixel buffers are slightly smaller than their uncompressed equivalents.  For pixel formats with no padding, the lossless-compressed pixel buffers are slightly larger due to the metadata.
-	
-	IMPORTANT CAVEATS:
-	Some devices do not support these pixel formats at all. 
-	Before using one of these pixel formats, call CVIsCompressedPixelFormatAvailable() to check that it is available on the current device.
-	On different devices, the concrete details of these formats may be different.
-	On different devices, the degree and details of support by hardware units (video codecs, GPU, ISP, etc.) may be different.
-	Do not ship code that reads the contents of lossless-compressed pixel buffers directly with the CPU, or which saves or transfers it to other devices, as this code will break with future hardware.
-	The bandwidth benefits of these formats are generally outweighed by the cost of buffer copies to convert to uncompressed pixel formats, so if you find that you need to perform a buffer copy to covert for CPU usage, it's likely that you would have been better served by using the equivalent uncompressed pixel formats in the first place.
-*/
-#if COREVIDEO_USE_DERIVED_ENUMS_FOR_CONSTANTS
-enum : OSType
-#else
-enum
-#endif
-{
-	kCVPixelFormatType_Lossless_32BGRA                               = '&BGA', /* Lossless-compressed form of kCVPixelFormatType_32BGRA. */
-	
-	// Lossless-compressed Bi-planar YCbCr pixel format types
-	kCVPixelFormatType_Lossless_420YpCbCr8BiPlanarVideoRange         = '&8v0', /* Lossless-compressed form of kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange.  No CVPlanarPixelBufferInfo struct. */
-	kCVPixelFormatType_Lossless_420YpCbCr8BiPlanarFullRange          = '&8f0', /* Lossless-compressed form of kCVPixelFormatType_420YpCbCr8BiPlanarFullRange.  No CVPlanarPixelBufferInfo struct. */
-	kCVPixelFormatType_Lossless_420YpCbCr10PackedBiPlanarVideoRange  = '&xv0', /* Lossless-compressed-packed form of kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange.  No CVPlanarPixelBufferInfo struct. Format is compressed-packed with no padding bits between pixels. */
-};
-
-
 /*!
 	@enum Pixel Buffer Locking Flags
 	@discussion Flags to pass to CVPixelBufferLockBaseAddress() / CVPixelBufferUnlockBaseAddress()
@@ -217,7 +181,7 @@
     @abstract   Buffer attachment key for code indicating Bayer pattern (sensel arrangement).
     @discussion Associated attachment is a CFNumber of type kCFNumberSInt32Type.  The value follows the semantics of the ProRes RAW bayer_pattern bitstream syntax element, namely 0, 1, 2, or 3, where 0 means the top-left sensel of the frame is red-filtered ("RGGB"); 1 means the top-left sensel of the frame is green-filtered, with the top row alternating between green- and red-filtered sensels ("GRBG"); 2 means the top-left sensel of the frame is green- filtered, with the top row alternating between green- and blue-filtered sensels ("GBRG"); and 3 means the top-left sensel of the frame is blue-filtered ("BGGR").  This attachment applies only to buffers with VersatileBayer formats.
 */
-CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferVersatileBayerKey_BayerPattern API_AVAILABLE(ios(14.0), macosx(11.0)) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
+CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferVersatileBayerKey_BayerPattern API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macosx) API_UNAVAILABLE(macCatalyst) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
 
 enum {
 	kCVVersatileBayer_BayerPattern_RGGB = 0,
@@ -231,70 +195,63 @@
     @abstract   Buffer attachment key for siting offsets, relative to pixel center, of individual sensels/components constituting each pixel.
     @discussion Associated attachment is CFData containing an array of 8 32-bit floats.  The eight CFData array elements specify, in order, the following sensel/component offsets from pixel center: red horizontal offset, red vertical offset, green horizontal offset, green vertical offset, blue horizontal offset, blue vertical offset, alpha horizontal offset, and alpha vertical offset.  A positive offset value indicates that the sensel/component lies to the right of or below the center of its pixel, while a negative value indicates that the sensel/component lies to the left of or above the center of its pixel.  Horizontal and vertical offset magnitudes are respectively in terms of the spacing between horizontally- and vertically-adjacent pixel centers.  This attachment applies only to buffers with the bp64 format, and is optional for those buffers; if not present, all offsets are considered to be 0.
 */
-CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_SenselSitingOffsets API_AVAILABLE(ios(14.0), macosx(11.0)) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
+CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_SenselSitingOffsets API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macosx) API_UNAVAILABLE(macCatalyst) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
 
 /*!
     @const      kCVPixelBufferProResRAWKey_BlackLevel
     @abstract   Buffer attachment key for sensel black level.
     @discussion Associated attachment is a CFNumber of type kCFNumberSInt32Type.  The value is the sensel level corresponding to no light exposure.  This attachment is required for buffers with either the bp16 or bp64 format.
 */
-CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_BlackLevel API_AVAILABLE(ios(14.0), macosx(11.0)) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
+CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_BlackLevel API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macosx) API_UNAVAILABLE(macCatalyst) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
 
 /*!
     @const      kCVPixelBufferProResRAWKey_WhiteLevel
     @abstract   Buffer attachment key for sensel white level.
     @discussion Associated attachment is a CFNumber of type kCFNumberSInt32Type.  The value is the sensel level corresponding to sensor (or camera A-to-D converter) saturation.  This attachment is required for buffers with either the bp16 or bp64 format.
 */
-CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_WhiteLevel API_AVAILABLE(ios(14.0), macosx(11.0)) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
+CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_WhiteLevel API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macosx) API_UNAVAILABLE(macCatalyst) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
 
 /*!
     @const      kCVPixelBufferProResRAWKey_WhiteBalanceCCT
     @abstract   Buffer attachment key for illuminant correlated color temperature.
     @discussion Associated attachment is a CFNumber of type kCFNumberSInt32Type.  The value is the illuminant correlated color temperature (CCT), in kelvins, selected at the time of capture.  May be 0, indicating that the CCT is unknown or unspecified.  This attachment is optional for buffers with either the bp16 or bp64 format; if not present, the CCT is considered unknown or unspecified.
 */
-CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_WhiteBalanceCCT API_AVAILABLE(ios(14.0), macosx(11.0)) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
+CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_WhiteBalanceCCT API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macosx) API_UNAVAILABLE(macCatalyst) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
 
 /*!
     @const      kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor
     @abstract   Buffer attachment key for white balance red factor.
     @discussion Associated attachment is a CFNumber of type kCFNumberFloat32Type.  The value is the white balance multiplication factor for red-filtered sensels.  This attachment is required for buffers with either the bp16 or bp64 format.
 */
-CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor API_AVAILABLE(ios(14.0), macosx(11.0)) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
+CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macosx) API_UNAVAILABLE(macCatalyst) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
 
 /*!
     @const      kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor
     @abstract   Buffer attachment key for white balance blue factor.
     @discussion Associated attachment is a CFNumber of type kCFNumberFloat32Type.  The value is the white balance multiplication factor for blue-filtered sensels.  This attachment is required for buffers with either the bp16 or bp64 format.
 */
-CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor API_AVAILABLE(ios(14.0), macosx(11.0)) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
+CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macosx) API_UNAVAILABLE(macCatalyst) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
 
 /*!
     @const      kCVPixelBufferProResRAWKey_ColorMatrix
     @abstract   Buffer attachment key for color translation matrix.
     @discussion Associated attachment is CFData containing an array of 9 32-bit floats.  The value is a 3x3 matrix which transforms linear RGB pixel values in the camera native color space to CIE 1931 XYZ values relative to the D65 illuminant, where the matrix entries are stored in the CFData in row-major order.  This attachment is required for buffers with either the bp16 or bp64 format.
 */
-CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_ColorMatrix API_AVAILABLE(ios(14.0), macosx(11.0)) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
+CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_ColorMatrix API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macosx) API_UNAVAILABLE(macCatalyst) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
 
 /*!
     @const      kCVPixelBufferProResRAWKey_GainFactor
     @abstract   Buffer attachment key for gain factor.
     @discussion Associated attachment is a CFNumber of type kCFNumberFloat32Type.  The value is the overall gain factor for raw conversion.  This attachment is required for buffers with either the bp16 or bp64 format.
 */
-CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_GainFactor API_AVAILABLE(ios(14.0), macosx(11.0)) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
+CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_GainFactor API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macosx) API_UNAVAILABLE(macCatalyst) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
 
 /*!
     @const      kCVPixelBufferProResRAWKey_RecommendedCrop
     @abstract   Buffer attachment key for recommended number of pixels/rows to discard from the sides of the image after raw conversion.
     @discussion Associated attachment is CFData containing an array of 4 32-bit floats.  The four CFData array elements specify, in order, the recommended number of: pixels to discard from the start (left) of each row of the image; pixels to discard from the end (right) of each row of the image; rows of pixels to discard from the top of the image; and rows of pixels to discard from the bottom of the image.  (Pixels/rows are discarded after raw conversion.)  This attachment is optional for buffers with either the bp16 or bp64 format; if not present, the recommended crop values are considered to be 0.  For buffers with the bp64 format, the values may be nonintegral due to downscaling, in which case the handling of fractional parts is implementation-dependent.
 */
-CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_RecommendedCrop API_AVAILABLE(ios(14.0), macosx(11.0)) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
-
-/*!
-	@const      kCVPixelBufferProResRAWKey_MetadataExtension
-	@abstract   Buffer attachment key for metadata extension.
-    @discussion Associated attachment is CFData containing ProRes RAW metadata extension. This attachment is optional for buffers with either bp16 or bp64.  The CFData contains a big-endian uint32 representing the size of the item in bytes followed by a 4-character code ('psim') followed by a variable-length pascal string identifying the metadata (like a key string) followed by the metadata payload.
-*/
-CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_MetadataExtension API_AVAILABLE(ios(15.0), macosx(12.0)) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
+CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferProResRAWKey_RecommendedCrop API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macosx) API_UNAVAILABLE(macCatalyst) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
 
 /*!
     @typedef	CVPixelBufferRef
@@ -583,24 +540,15 @@
 */
 CV_EXPORT CVReturn CVPixelBufferFillExtendedPixels( CVPixelBufferRef CV_NONNULL pixelBuffer ) __OSX_AVAILABLE_STARTING(__MAC_10_4,__IPHONE_4_0);
 
-/*!
-    @function   CVPixelBufferCopyCreationAttributes
-    @abstract   Returns a copy of pixelBufferAttributes dictionary used to create the PixelBuffer.
-    @discussion Can be used to create similar pixelbuffers.
-    @param      pixelBuffer Target PixelBuffer.
-*/
-CV_EXPORT CFDictionaryRef CV_NONNULL CVPixelBufferCopyCreationAttributes( CVPixelBufferRef CV_NONNULL pixelBuffer ) CV_RETURNS_RETAINED API_AVAILABLE(macosx(12.0), ios(15.0), tvos(15.0), watchos(8.0));
 
 #if defined(__cplusplus)
 }
 #endif
 
-#if !0
 #if COREVIDEO_SUPPORTS_IOSURFACE
 #if __has_include(<CoreVideo/CVPixelBufferIOSurface.h>)
 #include <CoreVideo/CVPixelBufferIOSurface.h>
 #endif
 #endif
-#endif
 
 #endif
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelFormatDescription.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelFormatDescription.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelFormatDescription.h	2021-08-07 05:20:11.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelFormatDescription.h	2021-08-03 21:48:46.000000000 -0400
@@ -134,14 +134,6 @@
 /* Register a new pixel format with CoreVideo */
 CV_EXPORT void CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType(CFDictionaryRef CV_NONNULL description, OSType pixelFormat) __OSX_AVAILABLE_STARTING(__MAC_10_4,__IPHONE_4_0);
 
-/*!
-	@function   CVIsCompressedPixelFormatAvailable
-	@abstract   Checks if a compressed pixel format is supported on the current platform.
-	@param      pixelFormatType compressed pixel format.
-	@result     True if pixel format is supported on the current platform.
-*/
-CV_EXPORT Boolean CVIsCompressedPixelFormatAvailable( OSType pixelFormatType ) API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0));
-
 #if COREVIDEO_SUPPORTS_DIRECT3D
 CV_EXPORT const CFStringRef CV_NONNULL kCVPixelFormatDirect3DFormat;
 CV_EXPORT const CFStringRef CV_NONNULL kCVPixelFormatDirect3DType;
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h	2021-08-04 00:15:42.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h	2021-03-16 04:44:11.000000000 -0400
@@ -51,9 +51,7 @@
 #include <CoreVideo/CVDirect3DTextureCache.h>
 #endif
 
-#if !0
 #if TARGET_OS_MAC
 #include <CoreVideo/CVMetalTexture.h>
 #include <CoreVideo/CVMetalTextureCache.h>
 #endif
-#endif
Clone this wiki locally