OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 VCMNackMode NackMode() const; | 83 VCMNackMode NackMode() const; |
84 std::vector<uint16_t> NackList(bool* request_key_frame); | 84 std::vector<uint16_t> NackList(bool* request_key_frame); |
85 | 85 |
86 // Receiver video delay. | 86 // Receiver video delay. |
87 int SetMinReceiverDelay(int desired_delay_ms); | 87 int SetMinReceiverDelay(int desired_delay_ms); |
88 | 88 |
89 // Decoding with errors. | 89 // Decoding with errors. |
90 void SetDecodeErrorMode(VCMDecodeErrorMode decode_error_mode); | 90 void SetDecodeErrorMode(VCMDecodeErrorMode decode_error_mode); |
91 VCMDecodeErrorMode DecodeErrorMode() const; | 91 VCMDecodeErrorMode DecodeErrorMode() const; |
92 | 92 |
93 // Returns size in time (milliseconds) of complete continuous frames in the | |
94 // jitter buffer. The render time is estimated based on the render delay at | |
95 // the time this function is called. | |
96 int RenderBufferSizeMs(); | |
97 | |
98 void RegisterStatsCallback(VCMReceiveStatisticsCallback* callback); | 93 void RegisterStatsCallback(VCMReceiveStatisticsCallback* callback); |
99 | 94 |
100 void TriggerDecoderShutdown(); | 95 void TriggerDecoderShutdown(); |
101 | 96 |
102 int64_t TimeUntilNextProcess(); | 97 int64_t TimeUntilNextProcess(); |
103 void Process(); | 98 void Process(); |
104 | 99 |
105 private: | 100 private: |
106 CriticalSectionWrapper* crit_sect_; | 101 CriticalSectionWrapper* crit_sect_; |
107 Clock* const clock_; | 102 Clock* const clock_; |
108 VCMJitterBuffer jitter_buffer_; | 103 VCMJitterBuffer jitter_buffer_; |
109 VCMTiming* timing_; | 104 VCMTiming* timing_; |
110 std::unique_ptr<EventWrapper> render_wait_event_; | 105 std::unique_ptr<EventWrapper> render_wait_event_; |
111 int max_video_delay_ms_; | 106 int max_video_delay_ms_; |
112 }; | 107 }; |
113 | 108 |
114 } // namespace webrtc | 109 } // namespace webrtc |
115 | 110 |
116 #endif // WEBRTC_MODULES_VIDEO_CODING_RECEIVER_H_ | 111 #endif // WEBRTC_MODULES_VIDEO_CODING_RECEIVER_H_ |
OLD | NEW |