| OLD | NEW |
| 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 |
| 11 #include "webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h" | 11 #include "webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h" |
| 12 | 12 |
| 13 #include <algorithm> | 13 #include <algorithm> |
| 14 #include <cassert> | 14 #include <cassert> |
| 15 #include <cmath> | 15 #include <cmath> |
| 16 | 16 |
| 17 #include "webrtc/rtc_base/checks.h" | 17 #include "webrtc/base/checks.h" |
| 18 #include "webrtc/rtc_base/safe_minmax.h" | 18 #include "webrtc/base/safe_minmax.h" |
| 19 | 19 |
| 20 #include "webrtc/modules/remote_bitrate_estimator/overuse_detector.h" | 20 #include "webrtc/modules/remote_bitrate_estimator/overuse_detector.h" |
| 21 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h" | 21 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h" |
| 22 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" | 22 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" |
| 23 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" | 23 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" |
| 24 | 24 |
| 25 namespace webrtc { | 25 namespace webrtc { |
| 26 | 26 |
| 27 static const int64_t kDefaultRttMs = 200; | 27 static const int64_t kDefaultRttMs = 200; |
| 28 static const int64_t kMaxFeedbackIntervalMs = 1000; | 28 static const int64_t kMaxFeedbackIntervalMs = 1000; |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 default: | 310 default: |
| 311 assert(false); | 311 assert(false); |
| 312 } | 312 } |
| 313 } | 313 } |
| 314 | 314 |
| 315 void AimdRateControl::ChangeRegion(RateControlRegion region) { | 315 void AimdRateControl::ChangeRegion(RateControlRegion region) { |
| 316 rate_control_region_ = region; | 316 rate_control_region_ = region; |
| 317 } | 317 } |
| 318 | 318 |
| 319 } // namespace webrtc | 319 } // namespace webrtc |
| OLD | NEW |