Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: webrtc/modules/congestion_controller/delay_based_bwe.cc

Issue 2631293003: Parse MedianSlopeFilter-parameters to the correct variables. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) {
227 if (in_trendline_experiment_) { 227 if (in_trendline_experiment_) {
228 ReadTrendlineFilterExperimentParameters(&trendline_window_size_, 228 ReadTrendlineFilterExperimentParameters(&trendline_window_size_,
229 &trendline_smoothing_coeff_, 229 &trendline_smoothing_coeff_,
230 &trendline_threshold_gain_); 230 &trendline_threshold_gain_);
231 } 231 }
232 if (in_median_slope_experiment_) { 232 if (in_median_slope_experiment_) {
233 ReadMedianSlopeFilterExperimentParameters(&trendline_window_size_, 233 ReadMedianSlopeFilterExperimentParameters(&median_slope_window_size_,
234 &trendline_threshold_gain_); 234 &median_slope_threshold_gain_);
235 } 235 }
236 236
237 network_thread_.DetachFromThread(); 237 network_thread_.DetachFromThread();
238 } 238 }
239 239
240 DelayBasedBwe::Result DelayBasedBwe::IncomingPacketFeedbackVector( 240 DelayBasedBwe::Result DelayBasedBwe::IncomingPacketFeedbackVector(
241 const std::vector<PacketInfo>& packet_feedback_vector) { 241 const std::vector<PacketInfo>& packet_feedback_vector) {
242 RTC_DCHECK(network_thread_.CalledOnValidThread()); 242 RTC_DCHECK(network_thread_.CalledOnValidThread());
243 if (!uma_recorded_) { 243 if (!uma_recorded_) {
244 RTC_HISTOGRAM_ENUMERATION(kBweTypeHistogram, 244 RTC_HISTOGRAM_ENUMERATION(kBweTypeHistogram,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698