Skip to content

AVFoundation tvOS xcode9 beta3

Vincent Dondain edited this page Jul 10, 2017 · 1 revision

#AVFoundation.framework

diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetDownloadTask.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetDownloadTask.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetDownloadTask.h	2017-06-12 01:08:13.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetDownloadTask.h	2017-06-30 23:38:54.000000000 -0400
@@ -78,7 +78,7 @@
 
 /*!
  @class			AVAggregateAssetDownloadTask
- @abstract		An AVAssetDownloadTask used for downloading mutliple AVMediaSelections for a single AVAsset, under the umbrella of a single download task.
+ @abstract		An AVAssetDownloadTask used for downloading multiple AVMediaSelections for a single AVAsset, under the umbrella of a single download task.
  @discussion	Should be created with -[AVAssetDownloadURLSession aggregateAssetDownloadTaskWithURLAsset:mediaSelections:assetTitle:assetArtworkData:options:. For progress tracking, monitor the delegate callbacks for each childAssetDownloadTask.
 */
 NS_CLASS_AVAILABLE_IOS(11_0) __TVOS_PROHIBITED __WATCHOS_PROHIBITED
@@ -188,7 +188,7 @@
  @param			mediaSelection
 				The media selection which has additional media data loaded for offline use.
 */
-- (void)URLSession:(NSURLSession *)session aggregateDownloadTask:(AVAggregateAssetDownloadTask *)aggregateAssetDownloadTask didLoadTimeRange:(CMTimeRange)timeRange totalTimeRangesLoaded:(NSArray<NSValue *> *)loadedTimeRanges timeRangeExpectedToLoad:(CMTimeRange)timeRangeExpectedToLoad forMediaSelection:(AVMediaSelection *)mediaSelection NS_AVAILABLE_IOS(11_0);
+- (void)URLSession:(NSURLSession *)session aggregateAssetDownloadTask:(AVAggregateAssetDownloadTask *)aggregateAssetDownloadTask didLoadTimeRange:(CMTimeRange)timeRange totalTimeRangesLoaded:(NSArray<NSValue *> *)loadedTimeRanges timeRangeExpectedToLoad:(CMTimeRange)timeRangeExpectedToLoad forMediaSelection:(AVMediaSelection *)mediaSelection NS_AVAILABLE_IOS(11_0);
 
 @end
 
@@ -234,7 +234,7 @@
  @param			assetTitle
 				A human readable title for this asset, expected to be as suitable as possible for the user's preferred languages. Will show up in the usage pane of the settings app.
  @param			assetArtworkData
-				Artwork data for this asset. Optional. Will show up in the usage pane of the settings app.
+				NSData representing artwork data for this asset. Optional. Will show up in the usage pane of the settings app. Must work with +[UIImage imageWithData:].
  @param			options
 				See AVAssetDownloadTask*Key above. Configures non-default behavior for the download task. Using this parameter is required for downloading non-default media selections for HLS assets.
 */
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h	2017-06-11 18:48:50.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h	2017-07-01 00:02:25.000000000 -0400
@@ -494,7 +494,7 @@
 @property(nonatomic, readonly) AVCaptureDeviceType deviceType NS_AVAILABLE_IOS(10_0) __TVOS_PROHIBITED;
 
 /*!
- @method defaultDeviceWithDeviceType:
+ @method defaultDeviceWithDeviceType:mediaType:position:
  @abstract
     Returns an AVCaptureDevice instance for the default device of the given device type, media type, and position.
  
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h	2017-06-12 01:08:15.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h	2017-06-30 23:38:55.000000000 -0400
@@ -17,7 +17,7 @@
  @discussion
     Clients may use an AVCaptureSessionPreset to set the format for output on an AVCaptureSession.
  */
-typedef NSString * AVCaptureSessionPreset NS_AVAILABLE(10_7, 4_0) __TVOS_PROHIBITED __WATCHOS_PROHIBITED NS_STRING_ENUM;
+typedef NSString * AVCaptureSessionPreset NS_STRING_ENUM NS_AVAILABLE(10_7, 4_0) __TVOS_PROHIBITED __WATCHOS_PROHIBITED;
 
 /*!
  @constant AVCaptureSessionPresetPhoto
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVDepthData.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVDepthData.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVDepthData.h	2017-06-11 18:48:50.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVDepthData.h	2017-07-01 00:02:25.000000000 -0400
@@ -15,6 +15,24 @@
 NS_ASSUME_NONNULL_BEGIN
 
 /*
+ @enum AVDepthDataQuality
+ @abstract
+    Constants indicating the overall quality of depth data map values.
+ 
+ @constant AVDepthDataQualityLow
+    The overall quality of values within the map is low (too many invalid depth values).
+ @constant AVDepthDataQualityHigh
+    The overall quality of values within the map is high.
+ 
+ @discussion
+    Depth data maps are typically generated by comparing images and calculating disparity. If features are lacking in either input image, it may be difficult to find matching keypoints, resulting in a depth data map with substantial holes. These holes can be filled with depth data filtering, but still may produce a map of overall poor quality. If a depth data map suffers from insufficient features, it is marked as low quality, and should be considered a substandard candidate for rendering high-quality depth effects or reconstructing a 3D scene. High quality depth is feature-rich, contains a high level of detail, and should be considered a good candidate for rendering high-quality depth effects or reconstructing a 3D scene.
+*/
+typedef NS_ENUM(NSInteger, AVDepthDataQuality) {
+    AVDepthDataQualityLow    = 0,
+    AVDepthDataQualityHigh   = 1,
+} NS_AVAILABLE(10_13, 11_0) __TVOS_AVAILABLE(11_0) __WATCHOS_PROHIBITED;
+
+/*
  @enum AVDepthDataAccuracy
  @abstract
     Constants indicating the accuracy of the units expressed by depth data map values.
@@ -172,6 +190,16 @@
 @property(readonly) __attribute__((NSObject)) CVPixelBufferRef depthDataMap NS_RETURNS_INNER_POINTER;
 
 /*!
+ @property depthDataQuality
+ @abstract
+    Specifies the overall quality of the depth data map's values.
+ 
+ @discussion
+    See AVDepthDataQuality documentation for more information.
+ */
+@property(readonly) AVDepthDataQuality depthDataQuality;
+
+/*!
  @property depthDataFiltered
  @abstract
     Specifies whether the depth data pixel buffer map contains filtered (hole-filled) data.
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes	2017-06-12 01:08:13.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes	2017-07-01 00:02:21.000000000 -0400
@@ -532,6 +532,8 @@
   SwiftName: AVCaptureDevice.WhiteBalanceMode
 - Name: AVDepthDataAccuracy
   SwiftName: AVDepthData.Accuracy
+- Name: AVDepthDataQuality
+  SwiftName: AVDepthData.Quality
 - Name: AVError
   NSErrorDomain: AVFoundationErrorDomain
 Typedefs:
@@ -1173,6 +1175,7 @@
       PropertyKind: Instance
       Nullability: U
   - Name: AVCaptureDeviceFormat
+    SwiftName: AVCaptureDeviceFormat
     Properties:
     - Name: formatDescription
       Nullability: U
@@ -1200,6 +1203,7 @@
       PropertyKind: Instance
       Nullability: U
   - Name: AVCaptureDeviceDiscoverySession
+    SwiftName: AVCaptureDeviceDiscoverySession
     Methods:
     - Selector: 'discoverySessionWithDeviceTypes:mediaType:position:'
       MethodKind: Class
@@ -1227,6 +1231,7 @@
       Nullability: U
       Type: 'NSArray *'
   - Name: AVCaptureInputPort
+    SwiftName: AVCaptureInputPort
     Properties:
     - Name: clock
       PropertyKind: Instance
@@ -1413,7 +1418,7 @@
     - Selector: 'jpegStillImageNSDataRepresentation:'
       MethodKind: Class
       NullabilityOfRet: U
-      Nullability: [ U ] # TODO: Use Parameters: instead
+      Nullability: [ U ]
     - Selector: 'prepareToCaptureStillImageBracketFromConnection:withSettingsArray:completionHandler:'
       MethodKind: Instance
       Parameters:
@@ -1522,6 +1527,15 @@
     - Selector: 'contentKeySessionWithKeySystem:storageDirectoryAtURL:'
       MethodKind: Class
       Nullability: [ N, O ]
+    - Selector: 'pendingExpiredSessionReportsWithAppIdentifier:storageDirectoryAtURL:'
+      MethodKind: Class
+      ResultType: 'NSArray<NSDictionary *> * _Nonnull'
+    - Selector: 'removePendingExpiredSessionReports:withAppIdentifier:storageDirectoryAtURL:'
+      MethodKind: Class
+      Parameters:
+      - Position: 0
+        Nullability: N
+        Type: 'NSArray<NSDictionary *> *'
   - Name: AVFrameRateRange
     SwiftName: AVFrameRateRange
   - Name: AVMetadataMachineReadableCodeObject
@@ -1768,10 +1782,10 @@
     SwiftName: AVCaptureFlashMode
   - Name: AVCaptureFocusMode
     SwiftName: AVCaptureFocusMode
-  - Name: AVCaptureTorchMode
-    SwiftName: AVCaptureTorchMode
   - Name: AVCaptureSessionInterruptionReason
     SwiftName: AVCaptureSessionInterruptionReason
+  - Name: AVCaptureTorchMode
+    SwiftName: AVCaptureTorchMode
   - Name: AVCaptureWhiteBalanceMode
     SwiftName: AVCaptureWhiteBalanceMode
   Typedefs:
@@ -1782,10 +1796,12 @@
   - Name: AVAudioTimePitchAlgorithm
     SwiftWrapper: none
   - Name: AVCaptureDeviceTransportControlsSpeed
+    SwiftName: AVCaptureDeviceTransportControlsSpeed
     SwiftWrapper: none
   - Name: AVCaptureDeviceType
     SwiftName: AVCaptureDeviceType
   - Name: AVCaptureSessionPreset
+    SwiftName: AVCaptureSessionPreset
     SwiftWrapper: none
   - Name: AVCaptureWhiteBalanceChromaticityValues
     SwiftName: AVCaptureWhiteBalanceChromaticityValues
@@ -1812,6 +1828,7 @@
   - Name: AVMetadataIdentifier
     SwiftWrapper: none
   - Name: AVMetadataObjectType
+    SwiftName: AVMetadataObjectType
     SwiftWrapper: none
   - Name: AVMetadataKey
     SwiftWrapper: none
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h	2017-06-12 01:22:11.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h	2017-07-01 00:02:26.000000000 -0400
@@ -19,7 +19,7 @@
  @discussion
     Constants indicating the type of an AVMetadataObject.
  */
-typedef NSString * AVMetadataObjectType NS_AVAILABLE(10_10, 6_0) __TVOS_PROHIBITED NS_STRING_ENUM;
+typedef NSString * AVMetadataObjectType NS_STRING_ENUM NS_AVAILABLE(10_10, 6_0) __TVOS_PROHIBITED;
 
 
 #pragma mark - AVMetadataObject
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferAudioRenderer.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferAudioRenderer.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferAudioRenderer.h	2017-06-12 01:11:55.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferAudioRenderer.h	2017-06-30 23:52:19.000000000 -0400
@@ -8,6 +8,7 @@
 */
 
 #import <AVFoundation/AVQueuedSampleBufferRendering.h>
+#import <AVFoundation/AVAudioProcessingSettings.h>
 
 NS_ASSUME_NONNULL_BEGIN
 
@@ -76,7 +77,7 @@
 
 		Modifying this property while the timebase's rate is not 0.0 may cause the rate to briefly change to 0.0.
 */
-@property (nonatomic, copy) NSString *audioTimePitchAlgorithm;
+@property (nonatomic, copy) AVAudioTimePitchAlgorithm audioTimePitchAlgorithm;
 
 @end
 
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoSettings.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoSettings.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoSettings.h	2017-06-11 18:48:52.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoSettings.h	2017-06-30 23:43:47.000000000 -0400
@@ -162,7 +162,7 @@
  */
 AVF_EXPORT NSString *const AVVideoCompressionPropertiesKey /* NSDictionary */                                NS_AVAILABLE(10_7, 4_0);
 	AVF_EXPORT NSString *const AVVideoAverageBitRateKey /* NSNumber (bits per second, H.264 only) */         NS_AVAILABLE(10_7, 4_0);
-	AVF_EXPORT NSString *const AVVideoQualityKey /* NSNumber (0.0-1.0, JPEG only) */                         NS_AVAILABLE(10_7, 5_0);
+	AVF_EXPORT NSString *const AVVideoQualityKey /* NSNumber (0.0-1.0, JPEG and HEIC only. With HEIC, 1.0 indicates lossless compression) */ NS_AVAILABLE(10_7, 5_0);
 	AVF_EXPORT NSString *const AVVideoMaxKeyFrameIntervalKey /* NSNumber (frames, 1 means key frames only, H.264 only) */ NS_AVAILABLE(10_7, 4_0);
 	AVF_EXPORT NSString *const AVVideoMaxKeyFrameIntervalDurationKey /* NSNumber (seconds, 0.0 means no limit, H.264 only) */ NS_AVAILABLE(10_9, 7_0);
 
Clone this wiki locally