Skip to content

MediaExtension macOS xcode16.0 b5

Rolf Bjarne Kvinge edited this page Sep 3, 2024 · 3 revisions

#MediaExtension.framework https://github.com/xamarin/xamarin-macios/pull/21176

diff -ruN /Applications/Xcode_16.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaExtension.framework/Headers/MERAWProcessor.h /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaExtension.framework/Headers/MERAWProcessor.h
--- /Applications/Xcode_16.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaExtension.framework/Headers/MERAWProcessor.h	2024-07-13 05:30:46
+++ /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaExtension.framework/Headers/MERAWProcessor.h	2024-07-27 19:57:07
@@ -421,6 +421,12 @@
 */
 @property (nonatomic) uint64_t metalDeviceRegistryID;
 
+/*!
+	@property		outputColorAttachments
+	@abstract		Returns the color-related CVImageBuffer keys and values that will be attachments to the output pixel buffers.
+	@discussion		This is an optional property. Only color-related keys from CVImageBuffer.h are permitted in the returned dictionary.
+*/
+@property (readonly) NSDictionary<NSString *, id> *outputColorAttachments;
 
 @required
 
diff -ruN /Applications/Xcode_16.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaExtension.framework/Headers/MEVideoDecoder.h /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaExtension.framework/Headers/MEVideoDecoder.h
--- /Applications/Xcode_16.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaExtension.framework/Headers/MEVideoDecoder.h	2024-07-13 05:30:45
+++ /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MediaExtension.framework/Headers/MEVideoDecoder.h	2024-07-27 19:57:07
@@ -194,6 +194,18 @@
 */
 - (CVPixelBufferRef _Nullable) createPixelBufferAndReturnError: (NSError **)error CF_RETURNS_RETAINED NS_SWIFT_NAME(makePixelBuffer());
 
+
+/*!
+	@method			registerCustomPixelFormat
+	@abstract		VideoToolbox will register the described pixelFormat in both the Extension process and the client process.
+	@discussion		This property is appropriate for decoders which produce output in a custom pixel format.  This will generally only be used by decoders which produce RAW output, where the decoder's output buffers will only be consumed by an MERAWProcessor extension which registers the same pixel format. MERAWProcessor needs to manually register the custom pixel format using CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType().
+	@param			customPixelFormat
+		This dictionary contains a set of keys and values as described in CoreVideo/CVPixelFormatDescription.h suitable for providing
+		as the 'description' parameter to CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType.  This must contain the
+		custom pixel format fourCC as the value for the kCVPixelFormatCodecType key.
+*/
+- (void) registerCustomPixelFormat: (NSDictionary<NSString*, id> *) customPixelFormat;
+
 @end
 
 
Clone this wiki locally