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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc

Issue 1682403002: Enable adaptive threshold experiment by default. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Tune tests Created 4 years, 10 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 | webrtc/modules/remote_bitrate_estimator/overuse_detector.h » ('j') | 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 26 matching lines...) Expand all
37 rate_control_state_(kRcHold), 37 rate_control_state_(kRcHold),
38 rate_control_region_(kRcMaxUnknown), 38 rate_control_region_(kRcMaxUnknown),
39 time_last_bitrate_change_(-1), 39 time_last_bitrate_change_(-1),
40 current_input_(kBwNormal, 0, 1.0), 40 current_input_(kBwNormal, 0, 1.0),
41 updated_(false), 41 updated_(false),
42 time_first_incoming_estimate_(-1), 42 time_first_incoming_estimate_(-1),
43 bitrate_is_initialized_(false), 43 bitrate_is_initialized_(false),
44 beta_(0.85f), 44 beta_(0.85f),
45 rtt_(kDefaultRttMs), 45 rtt_(kDefaultRttMs),
46 time_of_last_log_(-1), 46 time_of_last_log_(-1),
47 in_experiment_(AdaptiveThresholdExperimentIsEnabled()) {} 47 in_experiment_(!AdaptiveThresholdExperimentIsDisabled()) {}
48 48
49 void AimdRateControl::SetMinBitrate(int min_bitrate_bps) { 49 void AimdRateControl::SetMinBitrate(int min_bitrate_bps) {
50 min_configured_bitrate_bps_ = min_bitrate_bps; 50 min_configured_bitrate_bps_ = min_bitrate_bps;
51 current_bitrate_bps_ = std::max<int>(min_bitrate_bps, current_bitrate_bps_); 51 current_bitrate_bps_ = std::max<int>(min_bitrate_bps, current_bitrate_bps_);
52 } 52 }
53 53
54 bool AimdRateControl::ValidEstimate() const { 54 bool AimdRateControl::ValidEstimate() const {
55 return bitrate_is_initialized_; 55 return bitrate_is_initialized_;
56 } 56 }
57 57
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 } 304 }
305 305
306 void AimdRateControl::ChangeRegion(RateControlRegion region) { 306 void AimdRateControl::ChangeRegion(RateControlRegion region) {
307 rate_control_region_ = region; 307 rate_control_region_ = region;
308 } 308 }
309 309
310 void AimdRateControl::ChangeState(RateControlState new_state) { 310 void AimdRateControl::ChangeState(RateControlState new_state) {
311 rate_control_state_ = new_state; 311 rate_control_state_ = new_state;
312 } 312 }
313 } // namespace webrtc 313 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/remote_bitrate_estimator/overuse_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698