OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 25 matching lines...) Expand all Loading... |
36 return lhs.arrival_time_ms < rhs.arrival_time_ms; | 36 return lhs.arrival_time_ms < rhs.arrival_time_ms; |
37 if (lhs.send_time_ms != rhs.send_time_ms) | 37 if (lhs.send_time_ms != rhs.send_time_ms) |
38 return lhs.send_time_ms < rhs.send_time_ms; | 38 return lhs.send_time_ms < rhs.send_time_ms; |
39 return lhs.sequence_number < rhs.sequence_number; | 39 return lhs.sequence_number < rhs.sequence_number; |
40 } | 40 } |
41 }; | 41 }; |
42 | 42 |
43 TransportFeedbackAdapter::TransportFeedbackAdapter( | 43 TransportFeedbackAdapter::TransportFeedbackAdapter( |
44 Clock* clock, | 44 Clock* clock, |
45 BitrateController* bitrate_controller) | 45 BitrateController* bitrate_controller) |
46 : send_time_history_(clock, kSendTimeHistoryWindowMs), | 46 : transport_overhead_bytes_per_packet_(0), |
| 47 send_time_history_(clock, kSendTimeHistoryWindowMs), |
47 clock_(clock), | 48 clock_(clock), |
48 current_offset_ms_(kNoTimestamp), | 49 current_offset_ms_(kNoTimestamp), |
49 last_timestamp_us_(kNoTimestamp), | 50 last_timestamp_us_(kNoTimestamp), |
50 bitrate_controller_(bitrate_controller) {} | 51 bitrate_controller_(bitrate_controller) {} |
51 | 52 |
52 TransportFeedbackAdapter::~TransportFeedbackAdapter() {} | 53 TransportFeedbackAdapter::~TransportFeedbackAdapter() {} |
53 | 54 |
54 void TransportFeedbackAdapter::InitBwe() { | 55 void TransportFeedbackAdapter::InitBwe() { |
55 rtc::CritScope cs(&bwe_lock_); | 56 rtc::CritScope cs(&bwe_lock_); |
56 delay_based_bwe_.reset(new DelayBasedBwe(clock_)); | 57 delay_based_bwe_.reset(new DelayBasedBwe(clock_)); |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 return last_packet_feedback_vector_; | 166 return last_packet_feedback_vector_; |
166 } | 167 } |
167 | 168 |
168 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, | 169 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, |
169 int64_t max_rtt_ms) { | 170 int64_t max_rtt_ms) { |
170 rtc::CritScope cs(&bwe_lock_); | 171 rtc::CritScope cs(&bwe_lock_); |
171 delay_based_bwe_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); | 172 delay_based_bwe_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); |
172 } | 173 } |
173 | 174 |
174 } // namespace webrtc | 175 } // namespace webrtc |
OLD | NEW |