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

Side by Side Diff: webrtc/modules/video_coding/main/interface/video_coding.h

Issue 1426953003: Remove redudant encoder rate calls. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: remove redundant function Created 5 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // - externalEncoder : Encoder object to be used for encoding frames in serted 178 // - externalEncoder : Encoder object to be used for encoding frames in serted
179 // with the AddVideoFrame API. 179 // with the AddVideoFrame API.
180 // - payloadType : The payload type bound which this encoder is bou nd to. 180 // - payloadType : The payload type bound which this encoder is bou nd to.
181 // 181 //
182 // Return value : VCM_OK, on success. 182 // Return value : VCM_OK, on success.
183 // < 0, on error. 183 // < 0, on error.
184 virtual int32_t RegisterExternalEncoder(VideoEncoder* externalEncoder, 184 virtual int32_t RegisterExternalEncoder(VideoEncoder* externalEncoder,
185 uint8_t payloadType, 185 uint8_t payloadType,
186 bool internalSource = false) = 0; 186 bool internalSource = false) = 0;
187 187
188 // API to get codec config parameters to be sent out-of-band to a receiver.
189 //
190 // Input:
191 // - buffer : Memory where the codec config parameters should be written.
192 // - size : Size of the memory available.
193 //
194 // Return value : Number of bytes written, on success.
195 // < 0, on error.
196 virtual int32_t CodecConfigParameters(uint8_t* buffer, int32_t size) = 0;
197
198 // API to get currently configured encoder target bitrate in bits/s. 188 // API to get currently configured encoder target bitrate in bits/s.
199 // 189 //
200 // Return value : 0, on success. 190 // Return value : 0, on success.
201 // < 0, on error. 191 // < 0, on error.
202 virtual int Bitrate(unsigned int* bitrate) const = 0; 192 virtual int Bitrate(unsigned int* bitrate) const = 0;
203 193
204 // API to get currently configured encoder target frame rate. 194 // API to get currently configured encoder target frame rate.
205 // 195 //
206 // Return value : 0, on success. 196 // Return value : 0, on success.
207 // < 0, on error. 197 // < 0, on error.
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 EncodedImageCallback* observer) = 0; 535 EncodedImageCallback* observer) = 0;
546 virtual void RegisterPostEncodeImageCallback( 536 virtual void RegisterPostEncodeImageCallback(
547 EncodedImageCallback* post_encode_callback) = 0; 537 EncodedImageCallback* post_encode_callback) = 0;
548 // Releases pending decode calls, permitting faster thread shutdown. 538 // Releases pending decode calls, permitting faster thread shutdown.
549 virtual void TriggerDecoderShutdown() = 0; 539 virtual void TriggerDecoderShutdown() = 0;
550 }; 540 };
551 541
552 } // namespace webrtc 542 } // namespace webrtc
553 543
554 #endif // WEBRTC_MODULES_INTERFACE_VIDEO_CODING_H_ 544 #endif // WEBRTC_MODULES_INTERFACE_VIDEO_CODING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698