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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 | 353 |
354 // Waits for the next frame in the jitter buffer to become complete | 354 // Waits for the next frame in the jitter buffer to become complete |
355 // (waits no longer than maxWaitTimeMs), then passes it to the decoder for | 355 // (waits no longer than maxWaitTimeMs), then passes it to the decoder for |
356 // decoding. | 356 // decoding. |
357 // Should be called as often as possible to get the most out of the decoder. | 357 // Should be called as often as possible to get the most out of the decoder. |
358 // | 358 // |
359 // Return value : VCM_OK, on success. | 359 // Return value : VCM_OK, on success. |
360 // < 0, on error. | 360 // < 0, on error. |
361 virtual int32_t Decode(uint16_t maxWaitTimeMs = 200) = 0; | 361 virtual int32_t Decode(uint16_t maxWaitTimeMs = 200) = 0; |
362 | 362 |
363 // API to get the codec which is currently used for decoding by the module. | |
364 // | |
365 // Input: | |
366 // - currentReceiveCodec : Settings for the codec to be registered. | |
367 // | |
368 // Return value : VCM_OK, on success. | |
369 // < 0, on error. | |
370 virtual int32_t ReceiveCodec(VideoCodec* currentReceiveCodec) const = 0; | |
371 | |
372 // API to get the codec type currently used for decoding by the module. | |
373 // | |
374 // Return value : codecy type, on success. | |
375 // kVideoCodecUnknown, on error or if no receive codec is | |
376 // registered | |
377 virtual VideoCodecType ReceiveCodec() const = 0; | |
378 | |
379 // Insert a parsed packet into the receiver side of the module. Will be placed | 363 // Insert a parsed packet into the receiver side of the module. Will be placed |
380 // in the | 364 // in the |
381 // jitter buffer waiting for the frame to become complete. Returns as soon as | 365 // jitter buffer waiting for the frame to become complete. Returns as soon as |
382 // the packet | 366 // the packet |
383 // has been placed in the jitter buffer. | 367 // has been placed in the jitter buffer. |
384 // | 368 // |
385 // Input: | 369 // Input: |
386 // - incomingPayload : Payload of the packet. | 370 // - incomingPayload : Payload of the packet. |
387 // - payloadLength : Length of the payload. | 371 // - payloadLength : Length of the payload. |
388 // - rtpInfo : The parsed header. | 372 // - rtpInfo : The parsed header. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 | 453 |
470 virtual void RegisterPostEncodeImageCallback( | 454 virtual void RegisterPostEncodeImageCallback( |
471 EncodedImageCallback* post_encode_callback) = 0; | 455 EncodedImageCallback* post_encode_callback) = 0; |
472 // Releases pending decode calls, permitting faster thread shutdown. | 456 // Releases pending decode calls, permitting faster thread shutdown. |
473 virtual void TriggerDecoderShutdown() = 0; | 457 virtual void TriggerDecoderShutdown() = 0; |
474 }; | 458 }; |
475 | 459 |
476 } // namespace webrtc | 460 } // namespace webrtc |
477 | 461 |
478 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ | 462 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ |
OLD | NEW |