-
Notifications
You must be signed in to change notification settings - Fork 516
Cinematic iOS xcode15.0 b3
Manuel de la Pena edited this page Aug 17, 2023
·
3 revisions
#Cinematic.framework https://github.com/xamarin/xamarin-macios/pull/18686
diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNAssetInfo.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNAssetInfo.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNAssetInfo.h 2023-06-10 04:19:19
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNAssetInfo.h 2023-06-24 02:57:12
@@ -76,6 +76,12 @@
@interface CNCompositionInfo : CNAssetInfo
/// Inserts a timeRange of a cinematic source asset into the corresponding tracks of a composition
+/// - Parameters:
+/// - timeRange: time range of the cinematic asset to be inserted
+/// - assetInfo: identifies the tracks of the cinematic asset to be inserted
+/// - atTime: the time at which the inserted tracks are to be presented by the composition; `kCMTimeInvalid` may be used to append at the end.
+/// - error: AVError if it fails, as with `-[AVMutableCompositionTrack insertTimeRange:ofTrack:atTime:error:]`
+/// - Returns: whether the insertion was successful
- (BOOL)insertTimeRange:(CMTimeRange)timeRange ofCinematicAssetInfo:(CNAssetInfo *)assetInfo atTime:(CMTime)startTime error:(NSError * _Nullable * _Nullable)outError;
@end
diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNCinematicBase.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNCinematicBase.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNCinematicBase.h 1969-12-31 19:00:00
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNCinematicBase.h 2023-06-24 02:50:08
@@ -0,0 +1,16 @@
+//
+// CNCinematicBase.h
+// Cinematic
+//
+// Copyright © 2022-2023 Apple Inc. All rights reserved.
+//
+
+#import <TargetConditionals.h>
+#import <Availability.h>
+#import <Foundation/NSObjCRuntime.h>
+
+#ifdef __cplusplus
+#define CN_CINEMATIC_EXTERN extern "C" __attribute__((visibility ("default")))
+#else
+#define CN_CINEMATIC_EXTERN extern __attribute__((visibility ("default")))
+#endif
diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNCinematicError.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNCinematicError.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNCinematicError.h 1969-12-31 19:00:00
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNCinematicError.h 2023-06-24 02:50:08
@@ -0,0 +1,39 @@
+//
+// CNCinematicError.h
+// Cinematic
+//
+// Copyright © 2022-2023 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <Cinematic/Cinematic.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+CN_CINEMATIC_EXTERN NSErrorDomain const CNCinematicErrorDomain API_AVAILABLE(macos(14.0), ios(17.0), tvos(17.0)) API_UNAVAILABLE(watchos);
+
+typedef NS_ERROR_ENUM(CNCinematicErrorDomain, CNCinematicErrorCode)
+{
+ // failed for unknown reasons (check for underlying error)
+ CNCinematicErrorCodeUnknown = 1,
+
+ // not readable
+ CNCinematicErrorCodeUnreadable = 2,
+
+ // missing needed information (e.g. not cinematic)
+ CNCinematicErrorCodeIncomplete = 3,
+
+ // data or content is corrupted
+ CNCinematicErrorCodeMalformed = 4,
+
+ // version or feature not supported
+ CNCinematicErrorCodeUnsupported = 5,
+
+ // not compatible in current context
+ CNCinematicErrorCodeIncompatible = 6,
+
+ // operation was cancelled
+ CNCinematicErrorCodeCancelled = 7,
+} API_AVAILABLE(macos(14.0), ios(17.0), tvos(17.0)) API_UNAVAILABLE(watchos);
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNRenderingSession.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNRenderingSession.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNRenderingSession.h 2023-06-10 04:19:19
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/CNRenderingSession.h 2023-06-24 02:50:08
@@ -100,7 +100,8 @@
/// - sourceImage: a pixel buffer read from the cinematicVideoTrack
/// - sourceDisparity: a pixel buffer read from the cinematicDisparityTrack
/// - destinationImage: the pixel buffer to which the SDoF image is rendered
-- (void)encodeRenderToCommandBuffer:(id<MTLCommandBuffer>)commandBuffer
+/// - Returns: whether encoding the render command was successful
+- (BOOL)encodeRenderToCommandBuffer:(id<MTLCommandBuffer>)commandBuffer
frameAttributes:(CNRenderingSessionFrameAttributes *)frameAttributes
sourceImage:(CVPixelBufferRef)sourceImage
sourceDisparity:(CVPixelBufferRef)sourceDisparity
@@ -113,7 +114,8 @@
/// - sourceImage: a pixel buffer read from the cinematicVideoTrack
/// - sourceDisparity: a pixel buffer read from the cinematicDisparityTrack
/// - destinationRGBA: a metal texture to which the SDoF image is rendered in RGBA format
-- (void)encodeRenderToCommandBuffer:(id<MTLCommandBuffer>)commandBuffer
+/// - Returns: whether encoding the render command was successful
+- (BOOL)encodeRenderToCommandBuffer:(id<MTLCommandBuffer>)commandBuffer
frameAttributes:(CNRenderingSessionFrameAttributes *)frameAttributes
sourceImage:(CVPixelBufferRef)sourceImage
sourceDisparity:(CVPixelBufferRef)sourceDisparity
@@ -127,7 +129,8 @@
/// - sourceDisparity: a pixel buffer read from the cinematicDisparityTrack
/// - destinationLuma: a metal texture to which the luma of the SDoF image is rendered
/// - destinationChroma: a metal texture to which the chroma of the SDoF image is rendered
-- (void)encodeRenderToCommandBuffer:(id<MTLCommandBuffer>)commandBuffer
+/// - Returns: whether encoding the render command was successful
+- (BOOL)encodeRenderToCommandBuffer:(id<MTLCommandBuffer>)commandBuffer
frameAttributes:(CNRenderingSessionFrameAttributes *)frameAttributes
sourceImage:(CVPixelBufferRef)sourceImage
sourceDisparity:(CVPixelBufferRef)sourceDisparity
diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/Cinematic.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/Cinematic.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/Cinematic.h 2023-06-10 04:19:19
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Cinematic.framework/Headers/Cinematic.h 2023-06-24 02:50:08
@@ -9,6 +9,9 @@
#import <Foundation/Foundation.h>
+#import <Cinematic/CNCinematicBase.h>
+#import <Cinematic/CNCinematicError.h>
+
#import <Cinematic/CNAssetInfo.h>
#import <Cinematic/CNRenderingSession.h>
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status
- xcode16.2 Binding Status