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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 bool requireKeyFrame = false) = 0; | 335 bool requireKeyFrame = false) = 0; |
336 | 336 |
337 // Register an externally defined decoder/renderer object. Can be a decoder
only or a | 337 // Register an externally defined decoder/renderer object. Can be a decoder
only or a |
338 // decoder coupled with a renderer. Note that RegisterReceiveCodec must be c
alled to | 338 // decoder coupled with a renderer. Note that RegisterReceiveCodec must be c
alled to |
339 // be used for decoding incoming streams. | 339 // be used for decoding incoming streams. |
340 // | 340 // |
341 // Input: | 341 // Input: |
342 // - externalDecoder : The external decoder/renderer object. | 342 // - externalDecoder : The external decoder/renderer object. |
343 // - payloadType : The payload type which this decoder shoul
d be | 343 // - payloadType : The payload type which this decoder shoul
d be |
344 // registered to. | 344 // registered to. |
345 // - internalRenderTiming : True if the internal renderer (if any) of
the decoder | |
346 // object can make sure to render at a given
time in ms. | |
347 // | 345 // |
348 // Return value : VCM_OK, on success. | 346 // Return value : VCM_OK, on success. |
349 // < 0, on error. | 347 // < 0, on error. |
350 virtual int32_t RegisterExternalDecoder(VideoDecoder* externalDecoder, | 348 virtual int32_t RegisterExternalDecoder(VideoDecoder* externalDecoder, |
351 uint8_t payloadType, | 349 uint8_t payloadType) = 0; |
352 bool internalRenderTiming) = 0; | |
353 | 350 |
354 // Register a receive callback. Will be called whenever there is a new frame
ready | 351 // Register a receive callback. Will be called whenever there is a new frame
ready |
355 // for rendering. | 352 // for rendering. |
356 // | 353 // |
357 // Input: | 354 // Input: |
358 // - receiveCallback : The callback object to be used by the mod
ule when a | 355 // - receiveCallback : The callback object to be used by the mod
ule when a |
359 // frame is ready for rendering. | 356 // frame is ready for rendering. |
360 // De-register with a NULL pointer. | 357 // De-register with a NULL pointer. |
361 // | 358 // |
362 // Return value : VCM_OK, on success. | 359 // Return value : VCM_OK, on success. |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 EncodedImageCallback* observer) = 0; | 542 EncodedImageCallback* observer) = 0; |
546 virtual void RegisterPostEncodeImageCallback( | 543 virtual void RegisterPostEncodeImageCallback( |
547 EncodedImageCallback* post_encode_callback) = 0; | 544 EncodedImageCallback* post_encode_callback) = 0; |
548 // Releases pending decode calls, permitting faster thread shutdown. | 545 // Releases pending decode calls, permitting faster thread shutdown. |
549 virtual void TriggerDecoderShutdown() = 0; | 546 virtual void TriggerDecoderShutdown() = 0; |
550 }; | 547 }; |
551 | 548 |
552 } // namespace webrtc | 549 } // namespace webrtc |
553 | 550 |
554 #endif // WEBRTC_MODULES_INTERFACE_VIDEO_CODING_H_ | 551 #endif // WEBRTC_MODULES_INTERFACE_VIDEO_CODING_H_ |
OLD | NEW |