Skip to content

Commit

Permalink
M71
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Dec 8, 2018
1 parent ca71024 commit aa8bee9
Show file tree
Hide file tree
Showing 87 changed files with 992 additions and 577 deletions.
8 changes: 4 additions & 4 deletions Build/WebRTC.framework/Headers/RTCAudioSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#import <AVFoundation/AVFoundation.h>
#import <Foundation/Foundation.h>

#import <WebRTC/RTCMacros.h>
#import "RTCMacros.h"

NS_ASSUME_NONNULL_BEGIN

Expand All @@ -27,7 +27,7 @@ extern NSInteger const kRTCAudioSessionErrorConfiguration;
// Surfaces AVAudioSession events. WebRTC will listen directly for notifications
// from AVAudioSession and handle them before calling these delegate methods,
// at which point applications can perform additional processing if required.
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCAudioSessionDelegate <NSObject>

@optional
Expand Down Expand Up @@ -102,7 +102,7 @@ RTC_EXPORT
* activation state has changed outside of RTCAudioSession. The current known use
* case of this is when CallKit activates the audio session for the application
*/
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCAudioSessionActivationDelegate <NSObject>

/** Called when the audio session is activated outside of the app by iOS. */
Expand All @@ -120,7 +120,7 @@ RTC_EXPORT
* RTCAudioSession also coordinates activation so that the audio session is
* activated only once. See |setActive:error:|.
*/
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCAudioSession : NSObject <RTCAudioSessionActivationDelegate>

/** Convenience property to access the AVAudioSession singleton. Callers should
Expand Down
14 changes: 7 additions & 7 deletions Build/WebRTC.framework/Headers/RTCAudioSessionConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
#import <AVFoundation/AVFoundation.h>
#import <Foundation/Foundation.h>

#import "WebRTC/RTCMacros.h"
#import "RTCMacros.h"

NS_ASSUME_NONNULL_BEGIN

extern const int kRTCAudioSessionPreferredNumberOfChannels;
extern const double kRTCAudioSessionHighPerformanceSampleRate;
extern const double kRTCAudioSessionLowComplexitySampleRate;
extern const double kRTCAudioSessionHighPerformanceIOBufferDuration;
extern const double kRTCAudioSessionLowComplexityIOBufferDuration;
RTC_EXTERN const int kRTCAudioSessionPreferredNumberOfChannels;
RTC_EXTERN const double kRTCAudioSessionHighPerformanceSampleRate;
RTC_EXTERN const double kRTCAudioSessionLowComplexitySampleRate;
RTC_EXTERN const double kRTCAudioSessionHighPerformanceIOBufferDuration;
RTC_EXTERN const double kRTCAudioSessionLowComplexityIOBufferDuration;

// Struct to hold configuration values.
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCAudioSessionConfiguration : NSObject

@property(nonatomic, strong) NSString *category;
Expand Down
6 changes: 3 additions & 3 deletions Build/WebRTC.framework/Headers/RTCAudioSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

#import <Foundation/Foundation.h>

#import <WebRTC/RTCMacros.h>
#import <WebRTC/RTCMediaSource.h>
#import "RTCMacros.h"
#import "RTCMediaSource.h"

NS_ASSUME_NONNULL_BEGIN

RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCAudioSource : RTCMediaSource

- (instancetype)init NS_UNAVAILABLE;
Expand Down
6 changes: 3 additions & 3 deletions Build/WebRTC.framework/Headers/RTCAudioTrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
* be found in the AUTHORS file in the root of the source tree.
*/

#import <WebRTC/RTCMacros.h>
#import <WebRTC/RTCMediaStreamTrack.h>
#import "RTCMacros.h"
#import "RTCMediaStreamTrack.h"

NS_ASSUME_NONNULL_BEGIN

@class RTCAudioSource;

RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCAudioTrack : RTCMediaStreamTrack

- (instancetype)init NS_UNAVAILABLE;
Expand Down
52 changes: 52 additions & 0 deletions Build/WebRTC.framework/Headers/RTCCVPixelBuffer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* Copyright 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/

#import <AVFoundation/AVFoundation.h>

#import "RTCMacros.h"
#import "RTCVideoFrameBuffer.h"

NS_ASSUME_NONNULL_BEGIN

/** RTCVideoFrameBuffer containing a CVPixelBufferRef */
RTC_OBJC_EXPORT
@interface RTCCVPixelBuffer : NSObject <RTCVideoFrameBuffer>

@property(nonatomic, readonly) CVPixelBufferRef pixelBuffer;
@property(nonatomic, readonly) int cropX;
@property(nonatomic, readonly) int cropY;
@property(nonatomic, readonly) int cropWidth;
@property(nonatomic, readonly) int cropHeight;

+ (NSSet<NSNumber *> *)supportedPixelFormats;

- (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer;
- (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
adaptedWidth:(int)adaptedWidth
adaptedHeight:(int)adaptedHeight
cropWidth:(int)cropWidth
cropHeight:(int)cropHeight
cropX:(int)cropX
cropY:(int)cropY;

- (BOOL)requiresCropping;
- (BOOL)requiresScalingToWidth:(int)width height:(int)height;
- (int)bufferSizeForCroppingAndScalingToWidth:(int)width height:(int)height;

/** The minimum size of the |tmpBuffer| must be the number of bytes returned from the
* bufferSizeForCroppingAndScalingToWidth:height: method.
* If that size is 0, the |tmpBuffer| may be nil.
*/
- (BOOL)cropAndScaleTo:(CVPixelBufferRef)outputPixelBuffer
withTempBuffer:(nullable uint8_t *)tmpBuffer;

@end

NS_ASSUME_NONNULL_END
6 changes: 3 additions & 3 deletions Build/WebRTC.framework/Headers/RTCCallbackLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

#import <Foundation/Foundation.h>

#import <WebRTC/RTCLogging.h>
#import <WebRTC/RTCMacros.h>
#import "RTCLogging.h"
#import "RTCMacros.h"

NS_ASSUME_NONNULL_BEGIN

// This class intercepts WebRTC logs and forwards them to a registered block.
// This class is not threadsafe.
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCCallbackLogger : NSObject

// The severity level to capture. The default is kRTCLoggingSeverityInfo.
Expand Down
4 changes: 2 additions & 2 deletions Build/WebRTC.framework/Headers/RTCCameraPreviewView.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#import <WebRTC/RTCMacros.h>
#import "RTCMacros.h"

@class AVCaptureSession;

/** RTCCameraPreviewView is a view that renders local video from an
* AVCaptureSession.
*/
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCCameraPreviewView : UIView

/** The capture session being rendered in the view. Capture session
Expand Down
6 changes: 3 additions & 3 deletions Build/WebRTC.framework/Headers/RTCCameraVideoCapturer.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
#import <AVFoundation/AVFoundation.h>
#import <Foundation/Foundation.h>

#import <WebRTC/RTCMacros.h>
#import <WebRTC/RTCVideoCapturer.h>
#import "RTCMacros.h"
#import "RTCVideoCapturer.h"

NS_ASSUME_NONNULL_BEGIN

RTC_EXPORT
RTC_OBJC_EXPORT
// Camera capture that implements RTCVideoCapturer. Delivers frames to a RTCVideoCapturerDelegate
// (usually RTCVideoSource).
NS_EXTENSION_UNAVAILABLE_IOS("Camera not available in app extensions.")
Expand Down
4 changes: 2 additions & 2 deletions Build/WebRTC.framework/Headers/RTCCertificate.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

#import <Foundation/Foundation.h>

#import <WebRTC/RTCMacros.h>
#import "RTCMacros.h"

NS_ASSUME_NONNULL_BEGIN

RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCCertificate : NSObject <NSCopying>

/** Private key in PEM. */
Expand Down
24 changes: 24 additions & 0 deletions Build/WebRTC.framework/Headers/RTCCodecSpecificInfo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/

#import <Foundation/Foundation.h>

#import "RTCMacros.h"

NS_ASSUME_NONNULL_BEGIN

/** Implement this protocol to pass codec specific info from the encoder.
* Corresponds to webrtc::CodecSpecificInfo.
*/
RTC_OBJC_EXPORT
@protocol RTCCodecSpecificInfo <NSObject>
@end

NS_ASSUME_NONNULL_END
27 changes: 27 additions & 0 deletions Build/WebRTC.framework/Headers/RTCCodecSpecificInfoH264.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/

#import <Foundation/Foundation.h>

#import "RTCCodecSpecificInfo.h"
#import "RTCMacros.h"

/** Class for H264 specific config. */
typedef NS_ENUM(NSUInteger, RTCH264PacketizationMode) {
RTCH264PacketizationModeNonInterleaved = 0, // Mode 1 - STAP-A, FU-A is allowed
RTCH264PacketizationModeSingleNalUnit // Mode 0 - only single NALU allowed
};

RTC_OBJC_EXPORT
@interface RTCCodecSpecificInfoH264 : NSObject <RTCCodecSpecificInfo>

@property(nonatomic, assign) RTCH264PacketizationMode packetizationMode;

@end
13 changes: 10 additions & 3 deletions Build/WebRTC.framework/Headers/RTCConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

#import <Foundation/Foundation.h>

#import <WebRTC/RTCCertificate.h>
#import <WebRTC/RTCMacros.h>
#import "RTCCertificate.h"
#import "RTCMacros.h"

@class RTCIceServer;
@class RTCIntervalRange;
Expand Down Expand Up @@ -68,7 +68,8 @@ typedef NS_ENUM(NSInteger, RTCSdpSemantics) {
};

NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT

RTC_OBJC_EXPORT
@interface RTCConfiguration : NSObject

/** An array of Ice Servers available to be used by ICE. */
Expand Down Expand Up @@ -167,6 +168,12 @@ RTC_EXPORT
*/
@property(nonatomic, assign) BOOL activeResetSrtpParams;

/**
* If MediaTransportFactory is provided in PeerConnectionFactory, this flag informs PeerConnection
* that it should use the MediaTransportInterface.
*/
@property(nonatomic, assign) BOOL useMediaTransport;

- (instancetype)init;

@end
Expand Down
8 changes: 4 additions & 4 deletions Build/WebRTC.framework/Headers/RTCDataChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
#import <AvailabilityMacros.h>
#import <Foundation/Foundation.h>

#import <WebRTC/RTCMacros.h>
#import "RTCMacros.h"

NS_ASSUME_NONNULL_BEGIN

RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCDataBuffer : NSObject

/** NSData representation of the underlying buffer. */
Expand All @@ -35,7 +35,7 @@ RTC_EXPORT
@end

@class RTCDataChannel;
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCDataChannelDelegate <NSObject>

/** The data channel state changed. */
Expand All @@ -59,7 +59,7 @@ typedef NS_ENUM(NSInteger, RTCDataChannelState) {
RTCDataChannelStateClosed,
};

RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCDataChannel : NSObject

/**
Expand Down
4 changes: 2 additions & 2 deletions Build/WebRTC.framework/Headers/RTCDataChannelConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
#import <AvailabilityMacros.h>
#import <Foundation/Foundation.h>

#import <WebRTC/RTCMacros.h>
#import "RTCMacros.h"

NS_ASSUME_NONNULL_BEGIN

RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCDataChannelConfiguration : NSObject

/** Set to YES if ordered delivery is required. */
Expand Down
25 changes: 25 additions & 0 deletions Build/WebRTC.framework/Headers/RTCDefaultVideoDecoderFactory.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/

#import <Foundation/Foundation.h>

#import "RTCMacros.h"
#import "RTCVideoDecoderFactory.h"

NS_ASSUME_NONNULL_BEGIN

/** This decoder factory include support for all codecs bundled with WebRTC. If using custom
* codecs, create custom implementations of RTCVideoEncoderFactory and RTCVideoDecoderFactory.
*/
RTC_OBJC_EXPORT
@interface RTCDefaultVideoDecoderFactory : NSObject <RTCVideoDecoderFactory>
@end

NS_ASSUME_NONNULL_END
Loading

0 comments on commit aa8bee9

Please sign in to comment.