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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 ~VCMReceiver(); | 62 ~VCMReceiver(); |
63 | 63 |
64 void Reset(); | 64 void Reset(); |
65 void UpdateRtt(int64_t rtt); | 65 void UpdateRtt(int64_t rtt); |
66 int32_t InsertPacket(const VCMPacket& packet); | 66 int32_t InsertPacket(const VCMPacket& packet); |
67 VCMEncodedFrame* FrameForDecoding(uint16_t max_wait_time_ms, | 67 VCMEncodedFrame* FrameForDecoding(uint16_t max_wait_time_ms, |
68 bool prefer_late_decoding); | 68 bool prefer_late_decoding); |
69 void ReleaseFrame(VCMEncodedFrame* frame); | 69 void ReleaseFrame(VCMEncodedFrame* frame); |
70 void ReceiveStatistics(uint32_t* bitrate, uint32_t* framerate); | 70 void ReceiveStatistics(uint32_t* bitrate, uint32_t* framerate); |
71 uint32_t DiscardedPackets() const; | |
72 | 71 |
73 // NACK. | 72 // NACK. |
74 void SetNackMode(VCMNackMode nackMode, | 73 void SetNackMode(VCMNackMode nackMode, |
75 int64_t low_rtt_nack_threshold_ms, | 74 int64_t low_rtt_nack_threshold_ms, |
76 int64_t high_rtt_nack_threshold_ms); | 75 int64_t high_rtt_nack_threshold_ms); |
77 void SetNackSettings(size_t max_nack_list_size, | 76 void SetNackSettings(size_t max_nack_list_size, |
78 int max_packet_age_to_nack, | 77 int max_packet_age_to_nack, |
79 int max_incomplete_time_ms); | 78 int max_incomplete_time_ms); |
80 VCMNackMode NackMode() const; | 79 VCMNackMode NackMode() const; |
81 std::vector<uint16_t> NackList(bool* request_key_frame); | 80 std::vector<uint16_t> NackList(bool* request_key_frame); |
(...skipping 14 matching lines...) Expand all Loading... |
96 Clock* const clock_; | 95 Clock* const clock_; |
97 VCMJitterBuffer jitter_buffer_; | 96 VCMJitterBuffer jitter_buffer_; |
98 VCMTiming* timing_; | 97 VCMTiming* timing_; |
99 std::unique_ptr<EventWrapper> render_wait_event_; | 98 std::unique_ptr<EventWrapper> render_wait_event_; |
100 int max_video_delay_ms_; | 99 int max_video_delay_ms_; |
101 }; | 100 }; |
102 | 101 |
103 } // namespace webrtc | 102 } // namespace webrtc |
104 | 103 |
105 #endif // WEBRTC_MODULES_VIDEO_CODING_RECEIVER_H_ | 104 #endif // WEBRTC_MODULES_VIDEO_CODING_RECEIVER_H_ |
OLD | NEW |