OLD | NEW |
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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // < 0, on error. | 249 // < 0, on error. |
250 virtual int32_t AddVideoFrame( | 250 virtual int32_t AddVideoFrame( |
251 const VideoFrame& videoFrame, | 251 const VideoFrame& videoFrame, |
252 const VideoContentMetrics* contentMetrics = NULL, | 252 const VideoContentMetrics* contentMetrics = NULL, |
253 const CodecSpecificInfo* codecSpecificInfo = NULL) = 0; | 253 const CodecSpecificInfo* codecSpecificInfo = NULL) = 0; |
254 | 254 |
255 // Next frame encoded should be an intra frame (keyframe). | 255 // Next frame encoded should be an intra frame (keyframe). |
256 // | 256 // |
257 // Return value : VCM_OK, on success. | 257 // Return value : VCM_OK, on success. |
258 // < 0, on error. | 258 // < 0, on error. |
259 virtual int32_t IntraFrameRequest(int stream_index) = 0; | 259 virtual int32_t IntraFrameRequest(size_t stream_index) = 0; |
260 | 260 |
261 // Frame Dropper enable. Can be used to disable the frame dropping when the | 261 // Frame Dropper enable. Can be used to disable the frame dropping when the |
262 // encoder | 262 // encoder |
263 // over-uses its bit rate. This API is designed to be used when the encoded | 263 // over-uses its bit rate. This API is designed to be used when the encoded |
264 // frames | 264 // frames |
265 // are supposed to be stored to an AVI file, or when the I420 codec is used | 265 // are supposed to be stored to an AVI file, or when the I420 codec is used |
266 // and the | 266 // and the |
267 // target bit rate shouldn't affect the frame rate. | 267 // target bit rate shouldn't affect the frame rate. |
268 // | 268 // |
269 // Input: | 269 // Input: |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 | 514 |
515 virtual void RegisterPostEncodeImageCallback( | 515 virtual void RegisterPostEncodeImageCallback( |
516 EncodedImageCallback* post_encode_callback) = 0; | 516 EncodedImageCallback* post_encode_callback) = 0; |
517 // Releases pending decode calls, permitting faster thread shutdown. | 517 // Releases pending decode calls, permitting faster thread shutdown. |
518 virtual void TriggerDecoderShutdown() = 0; | 518 virtual void TriggerDecoderShutdown() = 0; |
519 }; | 519 }; |
520 | 520 |
521 } // namespace webrtc | 521 } // namespace webrtc |
522 | 522 |
523 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ | 523 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ |
OLD | NEW |