OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 return rtc::Optional<uint32_t>(bitrate_estimate_ * 1000); | 206 return rtc::Optional<uint32_t>(bitrate_estimate_ * 1000); |
207 } | 207 } |
208 | 208 |
209 DelayBasedBwe::DelayBasedBwe(Clock* clock) | 209 DelayBasedBwe::DelayBasedBwe(Clock* clock) |
210 : in_trendline_experiment_(TrendlineFilterExperimentIsEnabled()), | 210 : in_trendline_experiment_(TrendlineFilterExperimentIsEnabled()), |
211 in_median_slope_experiment_(MedianSlopeFilterExperimentIsEnabled()), | 211 in_median_slope_experiment_(MedianSlopeFilterExperimentIsEnabled()), |
212 clock_(clock), | 212 clock_(clock), |
213 inter_arrival_(), | 213 inter_arrival_(), |
214 kalman_estimator_(), | 214 kalman_estimator_(), |
215 trendline_estimator_(), | 215 trendline_estimator_(), |
216 detector_(OverUseDetectorOptions()), | 216 detector_(), |
217 receiver_incoming_bitrate_(), | 217 receiver_incoming_bitrate_(), |
218 last_update_ms_(-1), | 218 last_update_ms_(-1), |
219 last_seen_packet_ms_(-1), | 219 last_seen_packet_ms_(-1), |
220 uma_recorded_(false), | 220 uma_recorded_(false), |
221 trendline_window_size_(kDefaultTrendlineWindowSize), | 221 trendline_window_size_(kDefaultTrendlineWindowSize), |
222 trendline_smoothing_coeff_(kDefaultTrendlineSmoothingCoeff), | 222 trendline_smoothing_coeff_(kDefaultTrendlineSmoothingCoeff), |
223 trendline_threshold_gain_(kDefaultTrendlineThresholdGain), | 223 trendline_threshold_gain_(kDefaultTrendlineThresholdGain), |
224 probing_interval_estimator_(&rate_control_), | 224 probing_interval_estimator_(&rate_control_), |
225 median_slope_window_size_(kDefaultMedianSlopeWindowSize), | 225 median_slope_window_size_(kDefaultMedianSlopeWindowSize), |
226 median_slope_threshold_gain_(kDefaultMedianSlopeThresholdGain) { | 226 median_slope_threshold_gain_(kDefaultMedianSlopeThresholdGain) { |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 void DelayBasedBwe::SetMinBitrate(int min_bitrate_bps) { | 386 void DelayBasedBwe::SetMinBitrate(int min_bitrate_bps) { |
387 // Called from both the configuration thread and the network thread. Shouldn't | 387 // Called from both the configuration thread and the network thread. Shouldn't |
388 // be called from the network thread in the future. | 388 // be called from the network thread in the future. |
389 rate_control_.SetMinBitrate(min_bitrate_bps); | 389 rate_control_.SetMinBitrate(min_bitrate_bps); |
390 } | 390 } |
391 | 391 |
392 int64_t DelayBasedBwe::GetProbingIntervalMs() const { | 392 int64_t DelayBasedBwe::GetProbingIntervalMs() const { |
393 return probing_interval_estimator_.GetIntervalMs(); | 393 return probing_interval_estimator_.GetIntervalMs(); |
394 } | 394 } |
395 } // namespace webrtc | 395 } // namespace webrtc |
OLD | NEW |