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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 | 385 |
386 // Waits for the next frame in the jitter buffer to become complete | 386 // Waits for the next frame in the jitter buffer to become complete |
387 // (waits no longer than maxWaitTimeMs), then passes it to the decoder for | 387 // (waits no longer than maxWaitTimeMs), then passes it to the decoder for |
388 // decoding. | 388 // decoding. |
389 // Should be called as often as possible to get the most out of the decoder. | 389 // Should be called as often as possible to get the most out of the decoder. |
390 // | 390 // |
391 // Return value : VCM_OK, on success. | 391 // Return value : VCM_OK, on success. |
392 // < 0, on error. | 392 // < 0, on error. |
393 virtual int32_t Decode(uint16_t maxWaitTimeMs = 200) = 0; | 393 virtual int32_t Decode(uint16_t maxWaitTimeMs = 200) = 0; |
394 | 394 |
395 // Registers a callback which conveys the size of the render buffer. | |
396 virtual int RegisterRenderBufferSizeCallback( | |
397 VCMRenderBufferSizeCallback* callback) = 0; | |
398 | |
399 // API to get the codec which is currently used for decoding by the module. | 395 // API to get the codec which is currently used for decoding by the module. |
400 // | 396 // |
401 // Input: | 397 // Input: |
402 // - currentReceiveCodec : Settings for the codec to be registered. | 398 // - currentReceiveCodec : Settings for the codec to be registered. |
403 // | 399 // |
404 // Return value : VCM_OK, on success. | 400 // Return value : VCM_OK, on success. |
405 // < 0, on error. | 401 // < 0, on error. |
406 virtual int32_t ReceiveCodec(VideoCodec* currentReceiveCodec) const = 0; | 402 virtual int32_t ReceiveCodec(VideoCodec* currentReceiveCodec) const = 0; |
407 | 403 |
408 // API to get the codec type currently used for decoding by the module. | 404 // API to get the codec type currently used for decoding by the module. |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 | 510 |
515 virtual void RegisterPostEncodeImageCallback( | 511 virtual void RegisterPostEncodeImageCallback( |
516 EncodedImageCallback* post_encode_callback) = 0; | 512 EncodedImageCallback* post_encode_callback) = 0; |
517 // Releases pending decode calls, permitting faster thread shutdown. | 513 // Releases pending decode calls, permitting faster thread shutdown. |
518 virtual void TriggerDecoderShutdown() = 0; | 514 virtual void TriggerDecoderShutdown() = 0; |
519 }; | 515 }; |
520 | 516 |
521 } // namespace webrtc | 517 } // namespace webrtc |
522 | 518 |
523 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ | 519 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ |
OLD | NEW |