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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 Clock* clock, | 56 Clock* clock, |
57 std::unique_ptr<EventWrapper> receiver_event, | 57 std::unique_ptr<EventWrapper> receiver_event, |
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 uint16_t frame_width, | |
68 uint16_t frame_height); | |
69 VCMEncodedFrame* FrameForDecoding(uint16_t max_wait_time_ms, | 67 VCMEncodedFrame* FrameForDecoding(uint16_t max_wait_time_ms, |
70 int64_t* next_render_time_ms, | 68 int64_t* next_render_time_ms, |
71 bool prefer_late_decoding); | 69 bool prefer_late_decoding); |
72 void ReleaseFrame(VCMEncodedFrame* frame); | 70 void ReleaseFrame(VCMEncodedFrame* frame); |
73 void ReceiveStatistics(uint32_t* bitrate, uint32_t* framerate); | 71 void ReceiveStatistics(uint32_t* bitrate, uint32_t* framerate); |
74 uint32_t DiscardedPackets() const; | 72 uint32_t DiscardedPackets() const; |
75 | 73 |
76 // NACK. | 74 // NACK. |
77 void SetNackMode(VCMNackMode nackMode, | 75 void SetNackMode(VCMNackMode nackMode, |
78 int64_t low_rtt_nack_threshold_ms, | 76 int64_t low_rtt_nack_threshold_ms, |
(...skipping 23 matching lines...) Expand all Loading... |
102 Clock* const clock_; | 100 Clock* const clock_; |
103 VCMJitterBuffer jitter_buffer_; | 101 VCMJitterBuffer jitter_buffer_; |
104 VCMTiming* timing_; | 102 VCMTiming* timing_; |
105 std::unique_ptr<EventWrapper> render_wait_event_; | 103 std::unique_ptr<EventWrapper> render_wait_event_; |
106 int max_video_delay_ms_; | 104 int max_video_delay_ms_; |
107 }; | 105 }; |
108 | 106 |
109 } // namespace webrtc | 107 } // namespace webrtc |
110 | 108 |
111 #endif // WEBRTC_MODULES_VIDEO_CODING_RECEIVER_H_ | 109 #endif // WEBRTC_MODULES_VIDEO_CODING_RECEIVER_H_ |
OLD | NEW |