Rename RTC_EXPORT to RTC_OBJC_EXPORT.

A new version of RTC_EXPORT will be introduced by [1] and it will be
used by WebRTC native code.

This CL renames the current RTC_EXPORT to RTC_OBJC_EXPORT in order
to avoid to mix them. It has been decided to avoid to unify them because
RTC_OBJC_EXPORT always marks symbols with default visibility, while
RTC_EXPORT will do it only when COMPONENT_BUILD is defined.

[1] - https://webrtc-review.googlesource.com/c/src/+/97960 is

Bug: webrtc:9419
Change-Id: I56a3fc6601c72d3ad6a58f9961a00e3761dfb5da
Reviewed-on: https://webrtc-review.googlesource.com/100521
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Anders Carlsson <andersc@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24754}
This commit is contained in:
Mirko Bonadei 2018-09-17 10:22:56 +02:00 committed by Commit Bot
parent 451579389c
commit e8d5724cc5
77 changed files with 101 additions and 98 deletions

View File

@ -17,7 +17,7 @@ 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.

View File

@ -15,7 +15,7 @@
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCAudioSource : RTCMediaSource
- (instancetype)init NS_UNAVAILABLE;

View File

@ -15,7 +15,7 @@ NS_ASSUME_NONNULL_BEGIN
@class RTCAudioSource;
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCAudioTrack : RTCMediaStreamTrack
- (instancetype)init NS_UNAVAILABLE;

View File

@ -14,7 +14,7 @@
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCCertificate : NSObject <NSCopying>
/** Private key in PEM. */

View File

@ -69,7 +69,7 @@ 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. */

View File

@ -15,7 +15,7 @@
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCDataBuffer : NSObject
/** NSData representation of the underlying buffer. */
@ -35,7 +35,7 @@ RTC_EXPORT
@end
@class RTCDataChannel;
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCDataChannelDelegate <NSObject>
/** The data channel state changed. */
@ -59,7 +59,7 @@ typedef NS_ENUM(NSInteger, RTCDataChannelState) {
RTCDataChannelStateClosed,
};
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCDataChannel : NSObject
/**

View File

@ -15,7 +15,7 @@
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCDataChannelConfiguration : NSObject
/** Set to YES if ordered delivery is required. */

View File

@ -14,7 +14,7 @@
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCDtmfSender <NSObject>
/**

View File

@ -33,7 +33,7 @@ NS_ASSUME_NONNULL_BEGIN
// are preserved while the middle section is overwritten instead.
// For kRTCFileLoggerTypeApp, the oldest log is overwritten.
// This class is not threadsafe.
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCFileLogger : NSObject
// The severity level to capture. The default is kRTCFileLoggerSeverityInfo.

View File

@ -14,7 +14,7 @@
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCIceCandidate : NSObject
/**

View File

@ -19,7 +19,7 @@ typedef NS_ENUM(NSUInteger, RTCTlsCertPolicy) {
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCIceServer : NSObject
/** URI(s) for this server represented as NSStrings. */

View File

@ -15,7 +15,7 @@
NS_ASSUME_NONNULL_BEGIN
/** This does not currently conform to the spec. */
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCLegacyStatsReport : NSObject
/** Time since 1970-01-01T00:00:00Z in milliseconds. */

View File

@ -38,7 +38,7 @@ RTC_EXTERN NSString *const kRTCMediaConstraintsVoiceActivityDetection;
RTC_EXTERN NSString *const kRTCMediaConstraintsValueTrue;
RTC_EXTERN NSString *const kRTCMediaConstraintsValueFalse;
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCMediaConstraints : NSObject
- (instancetype)init NS_UNAVAILABLE;

View File

@ -21,7 +21,7 @@ typedef NS_ENUM(NSInteger, RTCSourceState) {
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCMediaSource : NSObject
/** The current state of the RTCMediaSource. */

View File

@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
@class RTCPeerConnectionFactory;
@class RTCVideoTrack;
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCMediaStream : NSObject
/** The audio tracks in this stream. */

View File

@ -25,7 +25,7 @@ NS_ASSUME_NONNULL_BEGIN
RTC_EXTERN NSString *const kRTCMediaStreamTrackKindAudio;
RTC_EXTERN NSString *const kRTCMediaStreamTrackKindVideo;
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCMediaStreamTrack : NSObject
/**

View File

@ -14,7 +14,7 @@
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCMetricsSampleInfo : NSObject
/**

View File

@ -72,7 +72,7 @@ typedef NS_ENUM(NSInteger, RTCStatsOutputLevel) {
@class RTCPeerConnection;
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCPeerConnectionDelegate <NSObject>
/** Called when the SignalingState changed. */
@ -130,7 +130,7 @@ RTC_EXPORT
@end
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCPeerConnection : NSObject
/** The object that will be notifed about events such as state changes and

View File

@ -27,7 +27,7 @@ NS_ASSUME_NONNULL_BEGIN
@protocol RTCVideoDecoderFactory;
@protocol RTCVideoEncoderFactory;
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCPeerConnectionFactory : NSObject
/* Initialize object with default H264 video encoder/decoder factories */

View File

@ -14,7 +14,7 @@
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCPeerConnectionFactoryOptions : NSObject
@property(nonatomic, assign) BOOL disableEncryption;

View File

@ -14,7 +14,7 @@
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCRtcpParameters : NSObject
/** The Canonical Name used by RTCP. */

View File

@ -32,7 +32,7 @@ RTC_EXTERN const NSString *const kRTCVp9CodecName;
RTC_EXTERN const NSString *const kRTCH264CodecName;
/** Defined in http://w3c.github.io/webrtc-pc/#idl-def-RTCRtpCodecParameters */
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCRtpCodecParameters : NSObject
/** The RTP payload type. */

View File

@ -14,7 +14,7 @@
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCRtpEncodingParameters : NSObject
/** Controls whether the encoding is currently transmitted. */

View File

@ -14,7 +14,7 @@
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCRtpHeaderExtension : NSObject
/** The URI of the RTP header extension, as defined in RFC5285. */

View File

@ -18,7 +18,7 @@
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCRtpParameters : NSObject
/** A unique identifier for the last set of parameters applied. */

View File

@ -25,7 +25,7 @@ typedef NS_ENUM(NSInteger, RTCRtpMediaType) {
@class RTCRtpReceiver;
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCRtpReceiverDelegate <NSObject>
/** Called when the first RTP packet is received.
@ -45,7 +45,7 @@ RTC_EXPORT
@end
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCRtpReceiver <NSObject>
/** A unique identifier for this receiver. */
@ -72,7 +72,7 @@ RTC_EXPORT
@end
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCRtpReceiver : NSObject <RTCRtpReceiver>
- (instancetype)init NS_UNAVAILABLE;

View File

@ -17,7 +17,7 @@
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCRtpSender <NSObject>
/** A unique identifier for this sender. */
@ -40,7 +40,7 @@ RTC_EXPORT
@end
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCRtpSender : NSObject <RTCRtpSender>
- (instancetype)init NS_UNAVAILABLE;

View File

@ -56,7 +56,7 @@ typedef NS_ENUM(NSInteger, RTCRtpTransceiverDirection) {
* WebRTC specification for RTCRtpTransceiver, the JavaScript analog:
* https://w3c.github.io/webrtc-pc/#dom-rtcrtptransceiver
*/
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCRtpTransceiver <NSObject>
/** Media type of the transceiver. The sender and receiver will also have this
@ -118,7 +118,7 @@ RTC_EXPORT
@end
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCRtpTransceiver : NSObject <RTCRtpTransceiver>
- (instancetype)init NS_UNAVAILABLE;

View File

@ -24,7 +24,7 @@ typedef NS_ENUM(NSInteger, RTCSdpType) {
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCSessionDescription : NSObject
/** The type of session description. */

View File

@ -16,7 +16,7 @@
NS_ASSUME_NONNULL_BEGIN
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoSource : RTCMediaSource <RTCVideoCapturerDelegate>

View File

@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
@class RTCPeerConnectionFactory;
@class RTCVideoSource;
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoTrack : RTCMediaStreamTrack
/** The video source for this video track. */

View File

@ -12,5 +12,5 @@
#import "RTCMacros.h"
RTC_EXPORT extern NSString *const kRTCVideoCodecVp8Name;
RTC_EXPORT extern NSString *const kRTCVideoCodecVp9Name;
RTC_OBJC_EXPORT extern NSString* const kRTCVideoCodecVp8Name;
RTC_OBJC_EXPORT extern NSString* const kRTCVideoCodecVp9Name;

View File

@ -13,7 +13,7 @@
#import "RTCMacros.h"
#import "RTCVideoDecoder.h"
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoDecoderVP8 : NSObject
/* This returns a VP8 decoder that can be returned from a RTCVideoDecoderFactory injected into

View File

@ -13,7 +13,7 @@
#import "RTCMacros.h"
#import "RTCVideoDecoder.h"
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoDecoderVP9 : NSObject
/* This returns a VP9 decoder that can be returned from a RTCVideoDecoderFactory injected into

View File

@ -13,7 +13,7 @@
#import "RTCMacros.h"
#import "RTCVideoEncoder.h"
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoEncoderVP8 : NSObject
/* This returns a VP8 encoder that can be returned from a RTCVideoEncoderFactory injected into

View File

@ -13,7 +13,7 @@
#import "RTCMacros.h"
#import "RTCVideoEncoder.h"
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoEncoderVP9 : NSObject
/* This returns a VP9 encoder that can be returned from a RTCVideoEncoderFactory injected into

View File

@ -16,7 +16,7 @@
NS_ASSUME_NONNULL_BEGIN
/** RTCI420Buffer implements the RTCI420Buffer protocol */
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCI420Buffer : NSObject<RTCI420Buffer>
@end

View File

@ -17,7 +17,7 @@
NS_ASSUME_NONNULL_BEGIN
/** Mutable version of RTCI420Buffer */
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCMutableI420Buffer : RTCI420Buffer<RTCMutableI420Buffer>
@end

View File

@ -17,7 +17,7 @@ NS_ASSUME_NONNULL_BEGIN
/** Implement this protocol to pass codec specific info from the encoder.
* Corresponds to webrtc::CodecSpecificInfo.
*/
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCCodecSpecificInfo <NSObject>
@end

View File

@ -30,7 +30,7 @@ typedef NS_ENUM(NSUInteger, RTCVideoContentType) {
};
/** Represents an encoded frame. Corresponds to webrtc::EncodedImage. */
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCEncodedImage : NSObject
@property(nonatomic, strong) NSData *buffer;

View File

@ -15,7 +15,7 @@
NS_ASSUME_NONNULL_BEGIN
/** Protocol for RTCYUVPlanarBuffers containing I420 data */
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCI420Buffer <RTCYUVPlanarBuffer>
@end

View File

@ -11,12 +11,15 @@
#ifndef SDK_OBJC_BASE_RTCMACROS_H_
#define SDK_OBJC_BASE_RTCMACROS_H_
#define RTC_EXPORT __attribute__((visibility("default")))
#define RTC_OBJC_EXPORT __attribute__((visibility("default")))
// TODO(mbonadei): Remove RTC_EXPORT in order to be able to land
// https://webrtc-review.googlesource.com/c/src/+/97960.
#define RTC_EXPORT RTC_OBJC_EXPORT
#if defined(__cplusplus)
#define RTC_EXTERN extern "C" RTC_EXPORT
#define RTC_EXTERN extern "C" RTC_OBJC_EXPORT
#else
#define RTC_EXTERN extern RTC_EXPORT
#define RTC_EXTERN extern RTC_OBJC_EXPORT
#endif
#ifdef __OBJC__

View File

@ -16,7 +16,7 @@
NS_ASSUME_NONNULL_BEGIN
/** Extension of the I420 buffer with mutable data access */
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCMutableI420Buffer <RTCI420Buffer, RTCMutableYUVPlanarBuffer>
@end

View File

@ -15,7 +15,7 @@
NS_ASSUME_NONNULL_BEGIN
/** Extension of the YUV planar data buffer with mutable data access */
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCMutableYUVPlanarBuffer <RTCYUVPlanarBuffer>
@property(nonatomic, readonly) uint8_t *mutableDataY;

View File

@ -15,7 +15,7 @@
NS_ASSUME_NONNULL_BEGIN
/** Information for header. Corresponds to webrtc::RTPFragmentationHeader. */
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCRtpFragmentationHeader : NSObject
@property(nonatomic, strong) NSArray<NSNumber *> *fragmentationOffset;

View File

@ -16,12 +16,12 @@ NS_ASSUME_NONNULL_BEGIN
@class RTCVideoCapturer;
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCVideoCapturerDelegate <NSObject>
- (void)capturer:(RTCVideoCapturer *)capturer didCaptureVideoFrame:(RTCVideoFrame *)frame;
@end
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoCapturer : NSObject
@property(nonatomic, weak) id<RTCVideoCapturerDelegate> delegate;

View File

@ -15,7 +15,7 @@
NS_ASSUME_NONNULL_BEGIN
/** Holds information to identify a codec. Corresponds to webrtc::SdpVideoFormat. */
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoCodecInfo : NSObject <NSCoding>
- (instancetype)init NS_UNAVAILABLE;

View File

@ -22,7 +22,7 @@ NS_ASSUME_NONNULL_BEGIN
typedef void (^RTCVideoDecoderCallback)(RTCVideoFrame *frame);
/** Protocol for decoder implementations. */
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCVideoDecoder <NSObject>
- (void)setCallback:(RTCVideoDecoderCallback)callback;

View File

@ -17,7 +17,7 @@
NS_ASSUME_NONNULL_BEGIN
/** RTCVideoDecoderFactory is an Objective-C version of webrtc::VideoDecoderFactory. */
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCVideoDecoderFactory <NSObject>
- (nullable id<RTCVideoDecoder>)createDecoder:(RTCVideoCodecInfo *)info;

View File

@ -26,7 +26,7 @@ typedef BOOL (^RTCVideoEncoderCallback)(RTCEncodedImage *frame,
RTCRtpFragmentationHeader *header);
/** Protocol for encoder implementations. */
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCVideoEncoder <NSObject>
- (void)setCallback:(RTCVideoEncoderCallback)callback;

View File

@ -17,7 +17,7 @@
NS_ASSUME_NONNULL_BEGIN
/** RTCVideoEncoderFactory is an Objective-C version of webrtc::VideoEncoderFactory. */
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCVideoEncoderFactory <NSObject>
- (nullable id<RTCVideoEncoder>)createEncoder:(RTCVideoCodecInfo *)info;

View File

@ -15,7 +15,7 @@
NS_ASSUME_NONNULL_BEGIN
/** QP thresholds for encoder. Corresponds to webrtc::VideoEncoder::QpThresholds. */
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoEncoderQpThresholds : NSObject
- (instancetype)initWithThresholdsLow:(NSInteger)low high:(NSInteger)high;

View File

@ -20,7 +20,7 @@ typedef NS_ENUM(NSUInteger, RTCVideoCodecMode) {
};
/** Settings for encoder. Corresponds to webrtc::VideoCodec. */
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoEncoderSettings : NSObject
@property(nonatomic, strong) NSString *name;

View File

@ -25,7 +25,7 @@ typedef NS_ENUM(NSInteger, RTCVideoRotation) {
@protocol RTCVideoFrameBuffer;
// RTCVideoFrame is an ObjectiveC version of webrtc::VideoFrame.
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoFrame : NSObject
/** Width without rotation applied. */

View File

@ -17,7 +17,7 @@ NS_ASSUME_NONNULL_BEGIN
@protocol RTCI420Buffer;
// RTCVideoFrameBuffer is an ObjectiveC version of webrtc::VideoFrameBuffer.
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCVideoFrameBuffer <NSObject>
@property(nonatomic, readonly) int width;

View File

@ -19,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN
@class RTCVideoFrame;
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCVideoRenderer <NSObject>
/** The size of the frame. */
@ -30,7 +30,7 @@ RTC_EXPORT
@end
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCVideoViewDelegate
- (void)videoView:(id<RTCVideoRenderer>)videoView didChangeVideoSize:(CGSize)size;

View File

@ -16,7 +16,7 @@
NS_ASSUME_NONNULL_BEGIN
/** Protocol for RTCVideoFrameBuffers containing YUV planar data. */
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCYUVPlanarBuffer <RTCVideoFrameBuffer>
@property(nonatomic, readonly) int chromaWidth;

View File

@ -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
@ -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. */
@ -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

View File

@ -22,7 +22,7 @@ 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;

View File

@ -16,7 +16,7 @@
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.")

View File

@ -24,7 +24,7 @@ typedef void (^RTCFileVideoCapturerErrorBlock)(NSError *error);
*
* See @c RTCVideoCapturer for more info on capturers.
*/
RTC_EXPORT
RTC_OBJC_EXPORT
NS_CLASS_AVAILABLE_IOS(10)
@interface RTCFileVideoCapturer : RTCVideoCapturer

View File

@ -14,7 +14,7 @@
NS_AVAILABLE_MAC(10.11)
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCMTLNSVideoView : NSView <RTCVideoRenderer>
@property(nonatomic, weak) id<RTCVideoViewDelegate> delegate;

View File

@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN
*/
NS_CLASS_AVAILABLE_IOS(9)
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCMTLVideoView : UIView<RTCVideoRenderer>
@property(nonatomic, weak) id<RTCVideoViewDelegate> delegate;

View File

@ -19,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN
@class RTCEAGLVideoView;
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCEAGLVideoViewDelegate <RTCVideoViewDelegate>
@end
@ -27,7 +27,7 @@ RTC_EXPORT
* RTCEAGLVideoView is an RTCVideoRenderer which renders video frames in its
* bounds using OpenGLES 2.0 or OpenGLES 3.0.
*/
RTC_EXPORT
RTC_OBJC_EXPORT
NS_EXTENSION_UNAVAILABLE_IOS("Rendering not available in app extensions.")
@interface RTCEAGLVideoView : UIView <RTCVideoRenderer>

View File

@ -21,11 +21,11 @@ NS_ASSUME_NONNULL_BEGIN
@class RTCNSGLVideoView;
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCNSGLVideoViewDelegate <RTCVideoViewDelegate>
@end
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCNSGLVideoView : NSOpenGLView <RTCVideoRenderer>
@property(nonatomic, weak) id<RTCVideoViewDelegate> delegate;

View File

@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
* RTCVideoViewShading provides a way for apps to customize the OpenGL(ES) shaders used in
* rendering for the RTCEAGLVideoView/RTCNSGLVideoView.
*/
RTC_EXPORT
RTC_OBJC_EXPORT
@protocol RTCVideoViewShading <NSObject>
/** Callback for I420 frames. Each plane is given as a texture. */

View File

@ -19,7 +19,7 @@ typedef NS_ENUM(NSUInteger, RTCH264PacketizationMode) {
RTCH264PacketizationModeSingleNalUnit // Mode 0 - only single NALU allowed
};
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCCodecSpecificInfoH264 : NSObject <RTCCodecSpecificInfo>
@property(nonatomic, assign) RTCH264PacketizationMode packetizationMode;

View File

@ -18,7 +18,7 @@ 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_EXPORT
RTC_OBJC_EXPORT
@interface RTCDefaultVideoDecoderFactory : NSObject <RTCVideoDecoderFactory>
@end

View File

@ -18,7 +18,7 @@ NS_ASSUME_NONNULL_BEGIN
/** This encoder factory include support for all codecs bundled with WebRTC. If using custom
* codecs, create custom implementations of RTCVideoEncoderFactory and RTCVideoDecoderFactory.
*/
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCDefaultVideoEncoderFactory : NSObject <RTCVideoEncoderFactory>
@property(nonatomic, retain) RTCVideoCodecInfo *preferredCodec;

View File

@ -12,11 +12,11 @@
#import "RTCMacros.h"
RTC_EXPORT extern NSString *const kRTCVideoCodecH264Name;
RTC_EXPORT extern NSString *const kRTCLevel31ConstrainedHigh;
RTC_EXPORT extern NSString *const kRTCLevel31ConstrainedBaseline;
RTC_EXPORT extern NSString *const kRTCMaxSupportedH264ProfileLevelConstrainedHigh;
RTC_EXPORT extern NSString *const kRTCMaxSupportedH264ProfileLevelConstrainedBaseline;
RTC_OBJC_EXPORT extern NSString *const kRTCVideoCodecH264Name;
RTC_OBJC_EXPORT extern NSString *const kRTCLevel31ConstrainedHigh;
RTC_OBJC_EXPORT extern NSString *const kRTCLevel31ConstrainedBaseline;
RTC_OBJC_EXPORT extern NSString *const kRTCMaxSupportedH264ProfileLevelConstrainedHigh;
RTC_OBJC_EXPORT extern NSString *const kRTCMaxSupportedH264ProfileLevelConstrainedBaseline;
/** H264 Profiles and levels. */
typedef NS_ENUM(NSUInteger, RTCH264Profile) {
@ -47,7 +47,7 @@ typedef NS_ENUM(NSUInteger, RTCH264Level) {
RTCH264Level5_2 = 52
};
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCH264ProfileLevelId : NSObject
@property(nonatomic, readonly) RTCH264Profile profile;

View File

@ -13,6 +13,6 @@
#import "RTCMacros.h"
#import "RTCVideoDecoderFactory.h"
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoDecoderFactoryH264 : NSObject <RTCVideoDecoderFactory>
@end

View File

@ -13,6 +13,6 @@
#import "RTCMacros.h"
#import "RTCVideoDecoder.h"
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoDecoderH264 : NSObject <RTCVideoDecoder>
@end

View File

@ -13,6 +13,6 @@
#import "RTCMacros.h"
#import "RTCVideoEncoderFactory.h"
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoEncoderFactoryH264 : NSObject <RTCVideoEncoderFactory>
@end

View File

@ -14,7 +14,7 @@
#import "RTCVideoCodecInfo.h"
#import "RTCVideoEncoder.h"
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCVideoEncoderH264 : NSObject <RTCVideoEncoder>
- (instancetype)initWithCodecInfo:(RTCVideoCodecInfo *)codecInfo;

View File

@ -16,7 +16,7 @@
NS_ASSUME_NONNULL_BEGIN
/** RTCVideoFrameBuffer containing a CVPixelBufferRef */
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCCVPixelBuffer : NSObject <RTCVideoFrameBuffer>
@property(nonatomic, readonly) CVPixelBufferRef pixelBuffer;

View File

@ -18,7 +18,7 @@
/** 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

View File

@ -25,7 +25,7 @@ typedef NS_ENUM(NSInteger, RTCDispatcherQueueType) {
/** Dispatcher that asynchronously dispatches blocks to a specific
* shared dispatch queue.
*/
RTC_EXPORT
RTC_OBJC_EXPORT
@interface RTCDispatcher : NSObject
- (instancetype)init NS_UNAVAILABLE;