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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 static VideoCodingModule* Create( | 71 static VideoCodingModule* Create( |
72 Clock* clock, | 72 Clock* clock, |
73 VideoEncoderRateObserver* encoder_rate_observer, | 73 VideoEncoderRateObserver* encoder_rate_observer, |
74 VCMQMSettingsCallback* qm_settings_callback); | 74 VCMQMSettingsCallback* qm_settings_callback); |
75 | 75 |
76 static VideoCodingModule* Create( | 76 static VideoCodingModule* Create( |
77 Clock* clock, | 77 Clock* clock, |
78 VideoEncoderRateObserver* encoder_rate_observer, | 78 VideoEncoderRateObserver* encoder_rate_observer, |
79 VCMQMSettingsCallback* qm_settings_callback, | 79 VCMQMSettingsCallback* qm_settings_callback, |
80 NackSender* nack_sender, | 80 NackSender* nack_sender, |
81 KeyFrameRequestSender* keyframe_request_sender); | 81 KeyFrameRequestSender* keyframe_request_sender, |
| 82 EncodedImageCallback* pre_decode_image_callback); |
82 | 83 |
83 static VideoCodingModule* Create(Clock* clock, EventFactory* event_factory); | 84 static VideoCodingModule* Create(Clock* clock, EventFactory* event_factory); |
84 | 85 |
85 static VideoCodingModule* Create( | 86 static VideoCodingModule* Create( |
86 Clock* clock, | 87 Clock* clock, |
87 EventFactory* event_factory, | 88 EventFactory* event_factory, |
88 NackSender* nack_sender, | 89 NackSender* nack_sender, |
89 KeyFrameRequestSender* keyframe_request_sender); | 90 KeyFrameRequestSender* keyframe_request_sender); |
90 | 91 |
91 // Get supported codec settings using codec type | 92 // Get supported codec settings using codec type |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 | 505 |
505 // Lets the sender suspend video when the rate drops below | 506 // Lets the sender suspend video when the rate drops below |
506 // |threshold_bps|, and turns back on when the rate goes back up above | 507 // |threshold_bps|, and turns back on when the rate goes back up above |
507 // |threshold_bps| + |window_bps|. | 508 // |threshold_bps| + |window_bps|. |
508 virtual void SuspendBelowMinBitrate() = 0; | 509 virtual void SuspendBelowMinBitrate() = 0; |
509 | 510 |
510 // Returns true if SuspendBelowMinBitrate is engaged and the video has been | 511 // Returns true if SuspendBelowMinBitrate is engaged and the video has been |
511 // suspended due to bandwidth limitations; otherwise false. | 512 // suspended due to bandwidth limitations; otherwise false. |
512 virtual bool VideoSuspended() const = 0; | 513 virtual bool VideoSuspended() const = 0; |
513 | 514 |
514 virtual void RegisterPreDecodeImageCallback( | |
515 EncodedImageCallback* observer) = 0; | |
516 virtual void RegisterPostEncodeImageCallback( | 515 virtual void RegisterPostEncodeImageCallback( |
517 EncodedImageCallback* post_encode_callback) = 0; | 516 EncodedImageCallback* post_encode_callback) = 0; |
518 // Releases pending decode calls, permitting faster thread shutdown. | 517 // Releases pending decode calls, permitting faster thread shutdown. |
519 virtual void TriggerDecoderShutdown() = 0; | 518 virtual void TriggerDecoderShutdown() = 0; |
520 }; | 519 }; |
521 | 520 |
522 } // namespace webrtc | 521 } // namespace webrtc |
523 | 522 |
524 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ | 523 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ |
OLD | NEW |