-
Notifications
You must be signed in to change notification settings - Fork 515
MediaAccessibility tvOS xcode15.0 b1
Manuel de la Pena edited this page Sep 13, 2023
·
3 revisions
#MediaAccessibility.framework https://github.com/xamarin/xamarin-macios/pull/19016
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAFlashingLightsProcessing.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAFlashingLightsProcessing.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAFlashingLightsProcessing.h 1969-12-31 19:00:00
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAFlashingLightsProcessing.h 2023-05-31 03:38:25
@@ -0,0 +1,55 @@
+//
+// MAFlashingLightsProcessing.h
+// MediaAccessibility
+//
+
+#ifdef __OBJC__
+
+#import <Foundation/Foundation.h>
+#import <MediaAccessibility/MADefinitions.h>
+#import <IOSurface/IOSurfaceRef.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+MA_EXPORT API_AVAILABLE(ios(17.0), tvos(17.0), watchos(10.0), macos(14.0)) NS_REFINED_FOR_SWIFT
+@interface MAFlashingLightsProcessorResult : NSObject
+
+// Indicates whether the outSurface was modified. If the surface cannot be processed, this will be false.
+@property (nonatomic, readonly) BOOL surfaceProcessed;
+
+// Indicates the amount of dimming that will occur in the outSurface based on analysis of the intensity of the flashing lights. Range is [0-100].
+@property (nonatomic, readonly) float mitigationLevel;
+
+// Indicates the measured intensity of sequences of flashing lights for the specific inSurface. Range is [0-100].
+@property (nonatomic, readonly) float intensityLevel;
+
+@end
+
+typedef NSString *MAFlashingLightsProcessorOptionKey NS_EXTENSIBLE_STRING_ENUM NS_SWIFT_NAME(MAFlashingLightsProcessor.OptionKey);
+
+MA_EXPORT API_AVAILABLE(ios(17.0), tvos(17.0), watchos(10.0), macos(14.0))
+@interface MAFlashingLightsProcessor : NSObject
+
+/*!
+ @function canProcessSurface:
+ @abstract Determines whether the flashing lights processor is able to process the content in the surface for flashing lights. This might be false on
+ unsupported hardware or unsupported color spaces.
+ @result A boolean result.
+ */
+- (BOOL)canProcessSurface:(IOSurfaceRef)surface;
+
+/*!
+ @function processSurface:outSurface:timestamp:options:
+ @abstract Processes an inSurface by analyzing pixels for sequences of flashing lights and then darkens content to reduce the risk of discomfort from some users.
+ The outSurface will contain the mitigated content.
+ The timestamp indicates the time at which the surface will be shown in the video playback. FPS will be determined based on the values of the timestamps.
+ Options dictionary for additional parameters.
+ @result An object which indicates whether the surface was able to be processed, the amount of mitigation that was applied, and the intensitry level that was detected.
+ */
+- (MAFlashingLightsProcessorResult *)processSurface:(IOSurfaceRef)inSurface outSurface:(IOSurfaceRef)outSurface timestamp:(CFAbsoluteTime)timestamp options:(NSDictionary<MAFlashingLightsProcessorOptionKey, id> *_Nullable)options NS_REFINED_FOR_SWIFT;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h 2023-03-08 01:27:19
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h 2023-05-31 03:38:24
@@ -8,5 +8,6 @@
#include <MediaAccessibility/MAAudibleMedia.h>
#include <MediaAccessibility/MAImageCaptioning.h>
#include <MediaAccessibility/MAVideoAccommodations.h>
+#include <MediaAccessibility/MAFlashingLightsProcessing.h>
#endif
- 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