Skip to content

Commit

Permalink
macOS 10.13.2 SDK @ Xcode 9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Dec 16, 2017
1 parent 266c9d0 commit a3892fa
Show file tree
Hide file tree
Showing 1,045 changed files with 11,730 additions and 7,229 deletions.
4 changes: 2 additions & 2 deletions MacOSX10.13.sdk/SDKSettings.plist
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<key>DisplayName</key>
<string>macOS 10.13</string>
<key>MaximumDeploymentTarget</key>
<string>10.13</string>
<string>10.13.99</string>
<key>MinimalDisplayName</key>
<string>10.13</string>
<key>MinimumSupportedToolsVersion</key>
Expand All @@ -34,7 +34,7 @@
</array>
<key>Version</key>
<string>10.13</string>
<key>isBaseSDK</key>
<key>IsBaseSDK</key>
<string>YES</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<plist version="1.0">
<dict>
<key>ProductBuildVersion</key>
<string>17B41</string>
<string>17C76</string>
<key>ProductCopyright</key>
<string>1983-2017 Apple Inc.</string>
<key>ProductName</key>
<string>Mac OS X</string>
<key>ProductUserVisibleVersion</key>
<string>10.13.1</string>
<string>10.13.2</string>
<key>ProductVersion</key>
<string>10.13.1</string>
<string>10.13.2</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- !tapi-tbd-v2
archs: [ i386, x86_64 ]
uuids: [ 'i386: 8E182980-F9AD-3B17-A311-D45AAF524438', 'x86_64: E5579A48-761F-3763-B924-2D1511935787' ]
uuids: [ 'i386: DE1399CF-739C-3AAC-AAFC-766D4AAFD282', 'x86_64: 5A110DE6-3EE7-343B-95FE-9642517D1B64' ]
platform: macosx
install-name: /System/Library/Frameworks/AGL.framework/Versions/A/AGL
objc-constraint: none
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- !tapi-tbd-v2
archs: [ i386, x86_64 ]
uuids: [ 'i386: DE391193-A166-3916-8A14-7DBE68BC7ACA', 'x86_64: 0AF373D0-B01B-31BC-85E0-FA09AEB79803' ]
uuids: [ 'i386: 5658CF45-3305-3112-9394-510CF049EF6C', 'x86_64: E7DFCDAF-97A8-314F-BBED-76B9C5041E38' ]
platform: macosx
install-name: /System/Library/Frameworks/AVFoundation.framework/Versions/A/Frameworks/AVFAudio.framework/Versions/A/AVFAudio
objc-constraint: none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ NS_ASSUME_NONNULL_BEGIN
@class AVMediaSelection;
@class AVCompositionTrack;

#if TARGET_OS_TV
@class AVDisplayCriteria;
#endif // TARGET_OS_TV

@class AVAssetInternal;

NS_CLASS_AVAILABLE(10_7, 4_0)
Expand Down Expand Up @@ -93,6 +97,14 @@ NS_CLASS_AVAILABLE(10_7, 4_0)
*/
@property (nonatomic, readonly) CGSize naturalSize NS_DEPRECATED(10_7, 10_8, 4_0, 5_0);

#if TARGET_OS_TV
/*!
@property preferredDisplayCriteria
@abstract Guides to a display mode that is optimal for playing this particular asset.
*/
@property (nonatomic, readonly) AVDisplayCriteria *preferredDisplayCriteria API_AVAILABLE(tvos(11.2)) API_UNAVAILABLE(ios, macos, watchos);
#endif // TARGET_OS_TV

@end


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,13 @@ AV_INIT_UNAVAILABLE
*/
@property (nonatomic, copy, nullable) NSString *contentType;

/*!
@property allowedContentTypes
@abstract An array showing the types of data which will be accepted as a valid response for the requested resource.
@discussion If allowedContentTypes is nonnil and the contentType property is not in allowedContentTypes, an exception will be raised.
*/
@property (nonatomic, readonly, nullable) NSArray <NSString *> *allowedContentTypes API_AVAILABLE(ios(11.2), tvos(11.2), macos(10.13.2), watchos(4.2));

/*!
@property contentLength
@abstract Indicates the length of the requested resource, in bytes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ AVF_EXPORT NSString *const AVCaptureDeviceSubjectAreaDidChangeNotification NS_AV

@class AVCaptureDeviceFormat;
@class AVCaptureDeviceInputSource;
@class AVCaptureSystemPressureState;
@class AVCaptureDeviceInternal;

/*!
Expand Down Expand Up @@ -459,11 +460,12 @@ AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTelephotoCamera N

/*!
@constant AVCaptureDeviceTypeBuiltInDualCamera
A device that consists of two fixed focal length cameras, one wide and one telephoto. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession.
A device that consists of two fixed focal length cameras, one wide and one telephoto. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
A device of this device type supports the following new features:
A device of this device type supports the following features:
- Auto switching from one camera to the other when zoom factor, light level, and focus position allow this.
- Higher quality zoom for still captures by fusing images from both cameras.
- Depth data delivery by measuring the disparity of matched features between the wide and telephoto cameras.
A device of this device type does not support the following features:
- AVCaptureExposureModeCustom and manual exposure bracketing.
Expand All @@ -474,6 +476,12 @@ AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTelephotoCamera N
*/
AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDualCamera NS_AVAILABLE_IOS(10_2) __TVOS_PROHIBITED;

/*!
@constant AVCaptureDeviceTypeBuiltInTrueDepthCamera
A device that consists of two cameras, one YUV and one Infrared. The infrared camera provides high quality depth information that is synchronized and perspective corrected to frames produced by the YUV camera. While the resolution of the depth data and YUV frames may differ, their field of view and aspect ratio always match. Note that devices of this type may only be discovered using an AVCaptureDeviceDiscoverySession or -[AVCaptureDevice defaultDeviceWithDeviceType:mediaType:position:].
*/
AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInTrueDepthCamera NS_AVAILABLE_IOS(11_1) __TVOS_PROHIBITED;

/*!
@constant AVCaptureDeviceTypeBuiltInDuoCamera
A deprecated synonym for AVCaptureDeviceTypeBuiltInDualCamera. Please use AVCaptureDeviceTypeBuiltInDualCamera instead.
Expand Down Expand Up @@ -515,6 +523,21 @@ AVF_EXPORT AVCaptureDeviceType const AVCaptureDeviceTypeBuiltInDuoCamera NS_DEPR
@end


@interface AVCaptureDevice (AVCaptureDeviceSystemPressure)

/*!
@property systemPressureState
@abstract
A key-value observable property indicating the capture device's current system pressure state.
@discussion
This property indicates whether the capture device is currently subject to an elevated system pressure condition. When system pressure reaches AVCaptureSystemPressureLevelShutdown, the capture device cannot continue to provide input, so the AVCaptureSession becomes interrupted until the pressured state abates. System pressure can be effectively mitigated by lowering the device's activeVideoMinFrameDuration in response to changes in the systemPressureState. Clients are encouraged to implement frame rate throttling to bring system pressure down if their capture use case can tolerate a reduced frame rate.
*/
@property(nonatomic, readonly) AVCaptureSystemPressureState *systemPressureState API_AVAILABLE(ios(11.1)) API_UNAVAILABLE(macos, watchos, tvos);

@end


/*!
@enum AVCaptureFlashMode
@abstract
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,15 @@ AVF_EXPORT NSString *const AVCaptureSessionWasInterruptedNotification NS_AVAILAB
An interruption caused by the video device temporarily being made unavailable, for instance, when stolen away by another AVCaptureSession.
@constant AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableWithMultipleForegroundApps
An interruption caused when the app is running in a multi-app layout, causing resource contention and degraded recording quality of service. Given your present AVCaptureSession configuration, the session may only be run if your app occupies the full screen.
@constant AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableDueToSystemPressure
An interruption caused by the video device temporarily being made unavailable due to system pressure, such as thermal duress. See AVCaptureDevice's AVCaptureSystemPressure category for more information.
*/
typedef NS_ENUM(NSInteger, AVCaptureSessionInterruptionReason) {
AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableInBackground = 1,
AVCaptureSessionInterruptionReasonAudioDeviceInUseByAnotherClient = 2,
AVCaptureSessionInterruptionReasonVideoDeviceInUseByAnotherClient = 3,
AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableWithMultipleForegroundApps = 4,
AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableDueToSystemPressure NS_AVAILABLE_IOS(11_1) = 5,
} NS_AVAILABLE_IOS(9_0) __TVOS_PROHIBITED;


Expand All @@ -100,6 +103,16 @@ typedef NS_ENUM(NSInteger, AVCaptureSessionInterruptionReason) {
*/
AVF_EXPORT NSString *const AVCaptureSessionInterruptionReasonKey NS_AVAILABLE_IOS(9_0) __TVOS_PROHIBITED;

/*!
@constant AVCaptureSessionInterruptionSystemPressureStateKey
@abstract
The key used to provide an AVCaptureSystemPressureState indicating the system pressure level and contributing factors that caused the interruption.
@discussion
This key is only present when the AVCaptureSessionInterruptionReasonKey equals AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableDueToSystemPressure.
*/
AVF_EXPORT NSString *const AVCaptureSessionInterruptionSystemPressureStateKey NS_AVAILABLE_IOS(11_1) __TVOS_PROHIBITED;

/*!
@constant AVCaptureSessionInterruptionEndedNotification
@abstract
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
/*
File: AVCaptureSystemPressure.h
Framework: AVFoundation
Copyright 2017 Apple Inc. All rights reserved.
*/

#import <AVFoundation/AVBase.h>
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/*!
@group AVCaptureSystemPressureLevel string constants
@discussion
The AVCaptureSystemPressureLevel string constants describe varying levels of system pressure that affect capture hardware availability and/or quality.
*/
typedef NSString *AVCaptureSystemPressureLevel NS_STRING_ENUM API_AVAILABLE(ios(11.1)) API_UNAVAILABLE(macos, watchos, tvos);

/*!
@constant AVCaptureSystemPressureLevelNominal
System pressure level is normal (not pressured).
*/
AVF_EXPORT AVCaptureSystemPressureLevel const AVCaptureSystemPressureLevelNominal API_AVAILABLE(ios(11.1)) API_UNAVAILABLE(macos, watchos, tvos);

/*!
@constant AVCaptureSystemPressureLevelFair
System pressure is slightly elevated.
*/
AVF_EXPORT AVCaptureSystemPressureLevel const AVCaptureSystemPressureLevelFair API_AVAILABLE(ios(11.1)) API_UNAVAILABLE(macos, watchos, tvos);

/*!
@constant AVCaptureSystemPressureLevelSerious
System pressure is highly elevated. Capture performance may be impacted. Frame rate throttling is advised.
*/
AVF_EXPORT AVCaptureSystemPressureLevel const AVCaptureSystemPressureLevelSerious API_AVAILABLE(ios(11.1)) API_UNAVAILABLE(macos, watchos, tvos);

/*!
@constant AVCaptureSystemPressureLevelCritical
System pressure is critically elevated. Capture quality and performance are significantly impacted. Frame rate throttling is highly advised.
*/
AVF_EXPORT AVCaptureSystemPressureLevel const AVCaptureSystemPressureLevelCritical API_AVAILABLE(ios(11.1)) API_UNAVAILABLE(macos, watchos, tvos);

/*!
@constant AVCaptureSystemPressureLevelShutdown
System pressure is beyond critical. Capture must immediately stop.
*/
AVF_EXPORT AVCaptureSystemPressureLevel const AVCaptureSystemPressureLevelShutdown API_AVAILABLE(ios(11.1)) API_UNAVAILABLE(macos, watchos, tvos);

/*!
@enum AVCaptureSystemPressureFactors
@abstract
Constants indicating factors contributing to the current system pressured state.
@constant AVCaptureSystemPressureFactorNone
Indicates that the system is not currently pressured.
@constant AVCaptureSystemPressureFactorSystemTemperature
Indicates that the entire system is currently experiencing an elevated thermal level.
@constant AVCaptureSystemPressureFactorPeakPower
Indicates that the system's peak power requirements exceed the battery's current capacity and may result in a system power off.
@constant AVCaptureSystemPressureFactorDepthModuleTemperature
Indicates that the module capturing depth information is operating at an elevated temperature. As system pressure increases, depth quality may become degraded.
*/
typedef NS_OPTIONS(NSUInteger, AVCaptureSystemPressureFactors) {
AVCaptureSystemPressureFactorNone = 0UL,
AVCaptureSystemPressureFactorSystemTemperature = (1UL << 0),
AVCaptureSystemPressureFactorPeakPower = (1UL << 1),
AVCaptureSystemPressureFactorDepthModuleTemperature = (1UL << 2),
} API_AVAILABLE(ios(11.1)) API_UNAVAILABLE(macos, watchos, tvos);

@class AVCaptureSystemPressureStateInternal;

/*!
@class AVCaptureSystemPressureState
@abstract
A model object describing a system pressure level and contributing factors to the pressured state.
@discussion
Beginning in iOS 11.1, AVCaptureDevice can report its current system pressure state. System pressure refers to a state in which capture quality is degraded or capture hardware availability is limited due to factors such as overall system temperature, insufficient battery charge for current peak power requirements, or camera module temperature.
*/
API_AVAILABLE(ios(11.1)) API_UNAVAILABLE(macos, watchos, tvos)
@interface AVCaptureSystemPressureState : NSObject
{
@private
AVCaptureSystemPressureStateInternal *_internal;
}

AV_INIT_UNAVAILABLE

/*!
@property level
@discussion
An enumerated string value characterizing the pressure level to which the system is currently elevated.
*/
@property(atomic, readonly) AVCaptureSystemPressureLevel level;

/*!
@property factors
@discussion
A bitmask of values indicating the factors contributing to the current system pressure level.
*/
@property(atomic, readonly) AVCaptureSystemPressureFactors factors;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,16 @@ API_AVAILABLE(macos(10.12.4), ios(10.3), tvos(10.2)) API_UNAVAILABLE(watchos)
@abstract Informs the receiver to process a persistable content key request.
@discussion When you receive an AVContentKeyRequest via -contentKeySession:didProvideContentKeyRequest: and you want the resulting key response to produce a key that can persist across multiple playback sessions, you must invoke -respondByRequestingPersistableContentKeyRequest on that AVContentKeyRequest in order to signal that you want to process an AVPersistableContentKeyRequest instead. If the underlying protocol supports persistable content keys, in response your delegate will receive an AVPersistableContentKeyRequest via -contentKeySession:didProvidePersistableContentKeyRequest:. NSInternalInconsistencyException will be raised, if you are attempting to create and use a persistable key but your AVContentKeySession delegate does not respond to contentKeySession:didProvidePersistableContentKeyRequest:.
*/
- (void)respondByRequestingPersistableContentKeyRequest API_AVAILABLE(ios(10.3)) API_UNAVAILABLE(macos, tvos, watchos);
- (void)respondByRequestingPersistableContentKeyRequest API_DEPRECATED("Use respondByRequestingPersistableContentKeyRequestAndReturnError: instead.", ios(10.3, 11.2)) API_UNAVAILABLE(macos, tvos, watchos);
/*
@method respondByRequestingPersistableContentKeyRequestAndReturnError:
@abstract Informs the receiver to process a persistable content key request.
@param outError
The error returned if a persistable content key request cannot be requested.
@result YES if sucessful. If NO, this request should be responded to via processContentKeyResponse: or processContentKeyResponseError:.
@discussion When you receive an AVContentKeyRequest via -contentKeySession:didProvideContentKeyRequest: and you want the resulting key response to produce a key that can persist across multiple playback sessions, you must invoke -respondByRequestingPersistableContentKeyRequest on that AVContentKeyRequest in order to signal that you want to process an AVPersistableContentKeyRequest instead. If the underlying protocol supports persistable content keys, in response your delegate will receive an AVPersistableContentKeyRequest via -contentKeySession:didProvidePersistableContentKeyRequest:. NSInternalInconsistencyException will be raised, if you are attempting to create and use a persistable key but your AVContentKeySession delegate does not respond to contentKeySession:didProvidePersistableContentKeyRequest:.
*/
- (BOOL)respondByRequestingPersistableContentKeyRequestAndReturnError:(NSError **)outError API_AVAILABLE(ios(11.2)) API_UNAVAILABLE(macos, tvos, watchos);

@end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,5 @@ typedef NS_ENUM(NSInteger, AVError) {
AVErrorContentNotUpdated NS_AVAILABLE(10_13, 11_0) = -11866,
AVErrorNoLongerPlayable NS_AVAILABLE(10_13, 11_0) = -11867,
AVErrorNoCompatibleAlternatesForExternalDisplay API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0)) __WATCHOS_PROHIBITED = -11868,
AVErrorNoSourceTrack API_AVAILABLE(macos(10.13.2), ios(11.2), tvos(11.2)) __WATCHOS_PROHIBITED = -11869,
};
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ Classes:
MethodKind: Class
Availability: nonswift
AvailabilityMsg: 'use object initializers instead'
- Name: AVCaptureSystemPressureState
SwiftName: AVCaptureDevice.SystemPressureState
- Name: AVCaptureVideoDataOutput
Methods:
- Selector: 'availableVideoCodecTypesForAssetWriterWithOutputFileType:'
Expand Down Expand Up @@ -528,6 +530,10 @@ Enumerators:
SwiftName: addMovieHeaderToDestination
- Name: AVMusicSequenceLoadSMF_ChannelsToTracks
SwiftName: smfChannelsToTracks
- Name: AVPlayerHDRModeHDR10
SwiftName: hdr10
- Name: AVPlayerHDRModeHLG
SwiftName: hlg
Tags:
- Name: AVCaptureAutoFocusRangeRestriction
SwiftName: AVCaptureDevice.AutoFocusRangeRestriction
Expand All @@ -549,6 +555,8 @@ Tags:
SwiftName: AVCaptureOutput.DataDroppedReason
- Name: AVCaptureSessionInterruptionReason
SwiftName: AVCaptureSession.InterruptionReason
- Name: AVCaptureSystemPressureFactors
SwiftName: AVCaptureSystemPressureState.Factors
- Name: AVCaptureTorchMode
SwiftName: AVCaptureDevice.TorchMode
- Name: AVCaptureWhiteBalanceMode
Expand All @@ -559,13 +567,17 @@ Tags:
SwiftName: AVDepthData.Quality
- Name: AVError
NSErrorDomain: AVFoundationErrorDomain
- Name: AVPlayerHDRMode
SwiftName: AVPlayer.HDRMode
Typedefs:
- Name: AVCaptureDeviceTransportControlsSpeed
SwiftName: AVCaptureDevice.TransportControlsSpeed
- Name: AVCaptureDeviceType
SwiftName: AVCaptureDevice.DeviceType
- Name: AVCaptureSessionPreset
SwiftName: AVCaptureSession.Preset
- Name: AVCaptureSystemPressureLevel
SwiftName: AVCaptureSystemPressureState.Level
- Name: AVCaptureWhiteBalanceChromaticityValues
SwiftName: AVCaptureDevice.WhiteBalanceChromaticityValues
- Name: AVCaptureWhiteBalanceGains
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#import <AVFoundation/AVCaptureInput.h>
#import <AVFoundation/AVCaptureOutput.h>
#import <AVFoundation/AVCaptureSession.h>
#import <AVFoundation/AVCaptureSystemPressure.h>
#import <AVFoundation/AVCaptureVideoPreviewLayer.h>
#endif

Expand Down Expand Up @@ -85,9 +86,7 @@
#import <AVFoundation/AVPlayerLooper.h>
#import <AVFoundation/AVPlayerMediaSelectionCriteria.h>
#import <AVFoundation/AVQueuedSampleBufferRendering.h>
#if (TARGET_OS_EMBEDDED || TARGET_OS_IPHONE)
#import <AVFoundation/AVRouteDetector.h>
#endif
#import <AVFoundation/AVSampleBufferAudioRenderer.h>
#import <AVFoundation/AVSampleBufferDisplayLayer.h>
#import <AVFoundation/AVSampleBufferRenderSynchronizer.h>
Expand All @@ -104,3 +103,6 @@
#import <AVFoundation/AVVideoComposition.h>
#import <AVFoundation/AVVideoSettings.h>
#endif
#if TARGET_OS_TV
#import <AVFoundation/AVDisplayCriteria.h>
#endif
Loading

0 comments on commit a3892fa

Please sign in to comment.