OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 typedef NS_ENUM(NSUInteger, RTCVideoCodecMode) { | 94 typedef NS_ENUM(NSUInteger, RTCVideoCodecMode) { |
95 RTCVideoCodecModeRealtimeVideo, | 95 RTCVideoCodecModeRealtimeVideo, |
96 RTCVideoCodecModeScreensharing, | 96 RTCVideoCodecModeScreensharing, |
97 }; | 97 }; |
98 | 98 |
99 /** Holds information to identify a codec. Corresponds to cricket::VideoCodec. *
/ | 99 /** Holds information to identify a codec. Corresponds to cricket::VideoCodec. *
/ |
100 RTC_EXPORT | 100 RTC_EXPORT |
101 @interface RTCVideoCodecInfo : NSObject | 101 @interface RTCVideoCodecInfo : NSObject |
102 | 102 |
103 - (instancetype)initWithPayload:(NSInteger)payload | 103 - (instancetype)init NS_UNAVAILABLE; |
104 name:(NSString *)name | 104 |
105 parameters:(NSDictionary<NSString *, NSString *> *)paramete
rs; | 105 - (instancetype)initWithName:(NSString *)name |
| 106 parameters:(nullable NSDictionary<NSString *, NSString *> *)pa
rameters |
| 107 NS_DESIGNATED_INITIALIZER; |
106 | 108 |
107 @property(nonatomic, readonly) NSInteger payload; | 109 @property(nonatomic, readonly) NSInteger payload; |
108 @property(nonatomic, readonly) NSString *name; | 110 @property(nonatomic, readonly) NSString *name; |
109 @property(nonatomic, readonly) NSDictionary<NSString *, NSString *> *parameters; | 111 @property(nonatomic, readonly) NSDictionary<NSString *, NSString *> *parameters; |
110 | 112 |
111 @end | 113 @end |
112 | 114 |
113 /** Settings for encoder. Corresponds to webrtc::VideoCodec. */ | 115 /** Settings for encoder. Corresponds to webrtc::VideoCodec. */ |
114 RTC_EXPORT | 116 RTC_EXPORT |
115 @interface RTCVideoEncoderSettings : NSObject | 117 @interface RTCVideoEncoderSettings : NSObject |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 - (NSInteger)decode:(RTCEncodedImage *)encodedImage | 176 - (NSInteger)decode:(RTCEncodedImage *)encodedImage |
175 missingFrames:(BOOL)missingFrames | 177 missingFrames:(BOOL)missingFrames |
176 fragmentationHeader:(RTCRtpFragmentationHeader *)fragmentationHeader | 178 fragmentationHeader:(RTCRtpFragmentationHeader *)fragmentationHeader |
177 codecSpecificInfo:(__nullable id<RTCCodecSpecificInfo>)info | 179 codecSpecificInfo:(__nullable id<RTCCodecSpecificInfo>)info |
178 renderTimeMs:(int64_t)renderTimeMs; | 180 renderTimeMs:(int64_t)renderTimeMs; |
179 - (NSString *)implementationName; | 181 - (NSString *)implementationName; |
180 | 182 |
181 @end | 183 @end |
182 | 184 |
183 NS_ASSUME_NONNULL_END | 185 NS_ASSUME_NONNULL_END |
OLD | NEW |