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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 std::unique_ptr<EventWrapper> jitter_buffer_event, | 58 std::unique_ptr<EventWrapper> jitter_buffer_event, |
59 NackSender* nack_sender, | 59 NackSender* nack_sender, |
60 KeyFrameRequestSender* keyframe_request_sender); | 60 KeyFrameRequestSender* keyframe_request_sender); |
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 int64_t* next_render_time_ms, | |
69 bool prefer_late_decoding); | 68 bool prefer_late_decoding); |
70 void ReleaseFrame(VCMEncodedFrame* frame); | 69 void ReleaseFrame(VCMEncodedFrame* frame); |
71 void ReceiveStatistics(uint32_t* bitrate, uint32_t* framerate); | 70 void ReceiveStatistics(uint32_t* bitrate, uint32_t* framerate); |
72 uint32_t DiscardedPackets() const; | 71 uint32_t DiscardedPackets() const; |
73 | 72 |
74 // NACK. | 73 // NACK. |
75 void SetNackMode(VCMNackMode nackMode, | 74 void SetNackMode(VCMNackMode nackMode, |
76 int64_t low_rtt_nack_threshold_ms, | 75 int64_t low_rtt_nack_threshold_ms, |
77 int64_t high_rtt_nack_threshold_ms); | 76 int64_t high_rtt_nack_threshold_ms); |
78 void SetNackSettings(size_t max_nack_list_size, | 77 void SetNackSettings(size_t max_nack_list_size, |
(...skipping 21 matching lines...) Expand all Loading... |
100 Clock* const clock_; | 99 Clock* const clock_; |
101 VCMJitterBuffer jitter_buffer_; | 100 VCMJitterBuffer jitter_buffer_; |
102 VCMTiming* timing_; | 101 VCMTiming* timing_; |
103 std::unique_ptr<EventWrapper> render_wait_event_; | 102 std::unique_ptr<EventWrapper> render_wait_event_; |
104 int max_video_delay_ms_; | 103 int max_video_delay_ms_; |
105 }; | 104 }; |
106 | 105 |
107 } // namespace webrtc | 106 } // namespace webrtc |
108 | 107 |
109 #endif // WEBRTC_MODULES_VIDEO_CODING_RECEIVER_H_ | 108 #endif // WEBRTC_MODULES_VIDEO_CODING_RECEIVER_H_ |
OLD | NEW |