| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 // Should be called as often as possible to get the most out of the decoder. | 377 // Should be called as often as possible to get the most out of the decoder. |
| 378 // | 378 // |
| 379 // Return value : VCM_OK, on success. | 379 // Return value : VCM_OK, on success. |
| 380 // < 0, on error. | 380 // < 0, on error. |
| 381 virtual int32_t Decode(uint16_t maxWaitTimeMs = 200) = 0; | 381 virtual int32_t Decode(uint16_t maxWaitTimeMs = 200) = 0; |
| 382 | 382 |
| 383 // Registers a callback which conveys the size of the render buffer. | 383 // Registers a callback which conveys the size of the render buffer. |
| 384 virtual int RegisterRenderBufferSizeCallback( | 384 virtual int RegisterRenderBufferSizeCallback( |
| 385 VCMRenderBufferSizeCallback* callback) = 0; | 385 VCMRenderBufferSizeCallback* callback) = 0; |
| 386 | 386 |
| 387 // Reset the decoder state to the initial state. | |
| 388 // | |
| 389 // Return value : VCM_OK, on success. | |
| 390 // < 0, on error. | |
| 391 virtual int32_t ResetDecoder() = 0; | |
| 392 | |
| 393 // API to get the codec which is currently used for decoding by the module. | 387 // API to get the codec which is currently used for decoding by the module. |
| 394 // | 388 // |
| 395 // Input: | 389 // Input: |
| 396 // - currentReceiveCodec : Settings for the codec to be registered. | 390 // - currentReceiveCodec : Settings for the codec to be registered. |
| 397 // | 391 // |
| 398 // Return value : VCM_OK, on success. | 392 // Return value : VCM_OK, on success. |
| 399 // < 0, on error. | 393 // < 0, on error. |
| 400 virtual int32_t ReceiveCodec(VideoCodec* currentReceiveCodec) const = 0; | 394 virtual int32_t ReceiveCodec(VideoCodec* currentReceiveCodec) const = 0; |
| 401 | 395 |
| 402 // API to get the codec type currently used for decoding by the module. | 396 // API to get the codec type currently used for decoding by the module. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 EncodedImageCallback* observer) = 0; | 504 EncodedImageCallback* observer) = 0; |
| 511 virtual void RegisterPostEncodeImageCallback( | 505 virtual void RegisterPostEncodeImageCallback( |
| 512 EncodedImageCallback* post_encode_callback) = 0; | 506 EncodedImageCallback* post_encode_callback) = 0; |
| 513 // Releases pending decode calls, permitting faster thread shutdown. | 507 // Releases pending decode calls, permitting faster thread shutdown. |
| 514 virtual void TriggerDecoderShutdown() = 0; | 508 virtual void TriggerDecoderShutdown() = 0; |
| 515 }; | 509 }; |
| 516 | 510 |
| 517 } // namespace webrtc | 511 } // namespace webrtc |
| 518 | 512 |
| 519 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ | 513 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ |
| OLD | NEW |