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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 bool requireKeyFrame = false) = 0; | 326 bool requireKeyFrame = false) = 0; |
327 | 327 |
328 // Register an externally defined decoder/renderer object. Can be a decoder
only or a | 328 // Register an externally defined decoder/renderer object. Can be a decoder
only or a |
329 // decoder coupled with a renderer. Note that RegisterReceiveCodec must be c
alled to | 329 // decoder coupled with a renderer. Note that RegisterReceiveCodec must be c
alled to |
330 // be used for decoding incoming streams. | 330 // be used for decoding incoming streams. |
331 // | 331 // |
332 // Input: | 332 // Input: |
333 // - externalDecoder : The external decoder/renderer object. | 333 // - externalDecoder : The external decoder/renderer object. |
334 // - payloadType : The payload type which this decoder shoul
d be | 334 // - payloadType : The payload type which this decoder shoul
d be |
335 // registered to. | 335 // registered to. |
336 // - internalRenderTiming : True if the internal renderer (if any) of
the decoder | 336 // |
337 // object can make sure to render at a given
time in ms. | |
338 virtual void RegisterExternalDecoder(VideoDecoder* externalDecoder, | 337 virtual void RegisterExternalDecoder(VideoDecoder* externalDecoder, |
339 uint8_t payloadType, | 338 uint8_t payloadType) = 0; |
340 bool internalRenderTiming) = 0; | |
341 | 339 |
342 // Register a receive callback. Will be called whenever there is a new frame
ready | 340 // Register a receive callback. Will be called whenever there is a new frame
ready |
343 // for rendering. | 341 // for rendering. |
344 // | 342 // |
345 // Input: | 343 // Input: |
346 // - receiveCallback : The callback object to be used by the mod
ule when a | 344 // - receiveCallback : The callback object to be used by the mod
ule when a |
347 // frame is ready for rendering. | 345 // frame is ready for rendering. |
348 // De-register with a NULL pointer. | 346 // De-register with a NULL pointer. |
349 // | 347 // |
350 // Return value : VCM_OK, on success. | 348 // Return value : VCM_OK, on success. |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 EncodedImageCallback* observer) = 0; | 531 EncodedImageCallback* observer) = 0; |
534 virtual void RegisterPostEncodeImageCallback( | 532 virtual void RegisterPostEncodeImageCallback( |
535 EncodedImageCallback* post_encode_callback) = 0; | 533 EncodedImageCallback* post_encode_callback) = 0; |
536 // Releases pending decode calls, permitting faster thread shutdown. | 534 // Releases pending decode calls, permitting faster thread shutdown. |
537 virtual void TriggerDecoderShutdown() = 0; | 535 virtual void TriggerDecoderShutdown() = 0; |
538 }; | 536 }; |
539 | 537 |
540 } // namespace webrtc | 538 } // namespace webrtc |
541 | 539 |
542 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ | 540 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ |
OLD | NEW |