Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoCodec.h

Issue 2987253003: ObjC: Add implementationName for injectable codecs (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 - (void)setCallback:(RTCVideoEncoderCallback)callback; 122 - (void)setCallback:(RTCVideoEncoderCallback)callback;
123 - (NSInteger)startEncodeWithSettings:(RTCVideoEncoderSettings *)settings 123 - (NSInteger)startEncodeWithSettings:(RTCVideoEncoderSettings *)settings
124 numberOfCores:(int)numberOfCores; 124 numberOfCores:(int)numberOfCores;
125 - (NSInteger)releaseEncoder; 125 - (NSInteger)releaseEncoder;
126 - (void)destroy; 126 - (void)destroy;
127 - (NSInteger)encode:(RTCVideoFrame *)frame 127 - (NSInteger)encode:(RTCVideoFrame *)frame
128 codecSpecificInfo:(id<RTCCodecSpecificInfo>)info 128 codecSpecificInfo:(id<RTCCodecSpecificInfo>)info
129 frameTypes:(NSArray<NSNumber *> *)frameTypes; 129 frameTypes:(NSArray<NSNumber *> *)frameTypes;
130 - (BOOL)setBitrate:(uint32_t)bitrateKbit framerate:(uint32_t)framerate; 130 - (BOOL)setBitrate:(uint32_t)bitrateKbit framerate:(uint32_t)framerate;
131 - (NSString *)implementationName;
131 132
132 /** Returns QP scaling settings for encoder. The quality scaler adjusts the reso lution in order to 133 /** Returns QP scaling settings for encoder. The quality scaler adjusts the reso lution in order to
133 * keep the QP from the encoded images within the given range. Returning nil fr om this function 134 * keep the QP from the encoded images within the given range. Returning nil fr om this function
134 * disables quality scaling. */ 135 * disables quality scaling. */
135 - (RTCVideoEncoderQpThresholds *)scalingSettings; 136 - (RTCVideoEncoderQpThresholds *)scalingSettings;
136 137
137 // TODO(andersc): Add implementationName method.
138
139 @end 138 @end
140 139
141 /** Protocol for decoder implementations. */ 140 /** Protocol for decoder implementations. */
142 RTC_EXPORT 141 RTC_EXPORT
143 @protocol RTCVideoDecoder <NSObject> 142 @protocol RTCVideoDecoder <NSObject>
144 143
145 - (void)setCallback:(RTCVideoDecoderCallback)callback; 144 - (void)setCallback:(RTCVideoDecoderCallback)callback;
146 - (NSInteger)startDecodeWithSettings:(RTCVideoEncoderSettings *)settings 145 - (NSInteger)startDecodeWithSettings:(RTCVideoEncoderSettings *)settings
147 numberOfCores:(int)numberOfCores; 146 numberOfCores:(int)numberOfCores;
148 - (NSInteger)releaseDecoder; 147 - (NSInteger)releaseDecoder;
149 - (void)destroy; 148 - (void)destroy;
150 - (NSInteger)decode:(RTCEncodedImage *)encodedImage 149 - (NSInteger)decode:(RTCEncodedImage *)encodedImage
151 missingFrames:(BOOL)missingFrames 150 missingFrames:(BOOL)missingFrames
152 fragmentationHeader:(RTCRtpFragmentationHeader *)fragmentationHeader 151 fragmentationHeader:(RTCRtpFragmentationHeader *)fragmentationHeader
153 codecSpecificInfo:(__nullable id<RTCCodecSpecificInfo>)info 152 codecSpecificInfo:(__nullable id<RTCCodecSpecificInfo>)info
154 renderTimeMs:(int64_t)renderTimeMs; 153 renderTimeMs:(int64_t)renderTimeMs;
155 154 - (NSString *)implementationName;
156 // TODO(andersc): Add implementationName method.
157 155
158 @end 156 @end
159 157
160 NS_ASSUME_NONNULL_END 158 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/VideoToolbox/objc_video_encoder_factory.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698