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 27 matching lines...) Expand all Loading... |
38 if (lhs.send_time_ms != rhs.send_time_ms) | 38 if (lhs.send_time_ms != rhs.send_time_ms) |
39 return lhs.send_time_ms < rhs.send_time_ms; | 39 return lhs.send_time_ms < rhs.send_time_ms; |
40 return lhs.sequence_number < rhs.sequence_number; | 40 return lhs.sequence_number < rhs.sequence_number; |
41 } | 41 } |
42 }; | 42 }; |
43 | 43 |
44 TransportFeedbackAdapter::TransportFeedbackAdapter( | 44 TransportFeedbackAdapter::TransportFeedbackAdapter( |
45 RtcEventLog* event_log, | 45 RtcEventLog* event_log, |
46 Clock* clock, | 46 Clock* clock, |
47 BitrateController* bitrate_controller) | 47 BitrateController* bitrate_controller) |
48 : send_side_bwe_with_overhead_(webrtc::field_trial::FindFullName( | 48 : send_side_bwe_with_overhead_( |
49 "WebRTC-SendSideBwe-WithOverhead") == | 49 webrtc::field_trial::IsEnabled("WebRTC-SendSideBwe-WithOverhead")), |
50 "Enabled"), | |
51 transport_overhead_bytes_per_packet_(0), | 50 transport_overhead_bytes_per_packet_(0), |
52 send_time_history_(clock, kSendTimeHistoryWindowMs), | 51 send_time_history_(clock, kSendTimeHistoryWindowMs), |
53 event_log_(event_log), | 52 event_log_(event_log), |
54 clock_(clock), | 53 clock_(clock), |
55 current_offset_ms_(kNoTimestamp), | 54 current_offset_ms_(kNoTimestamp), |
56 last_timestamp_us_(kNoTimestamp), | 55 last_timestamp_us_(kNoTimestamp), |
57 bitrate_controller_(bitrate_controller) {} | 56 bitrate_controller_(bitrate_controller) {} |
58 | 57 |
59 TransportFeedbackAdapter::~TransportFeedbackAdapter() {} | 58 TransportFeedbackAdapter::~TransportFeedbackAdapter() {} |
60 | 59 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 return last_packet_feedback_vector_; | 170 return last_packet_feedback_vector_; |
172 } | 171 } |
173 | 172 |
174 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, | 173 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, |
175 int64_t max_rtt_ms) { | 174 int64_t max_rtt_ms) { |
176 rtc::CritScope cs(&bwe_lock_); | 175 rtc::CritScope cs(&bwe_lock_); |
177 delay_based_bwe_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); | 176 delay_based_bwe_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); |
178 } | 177 } |
179 | 178 |
180 } // namespace webrtc | 179 } // namespace webrtc |
OLD | NEW |