| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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/overuse_detector.h" | 11 #include "webrtc/modules/remote_bitrate_estimator/overuse_detector.h" |
| 12 | 12 |
| 13 #include <math.h> | 13 #include <math.h> |
| 14 #include <stdlib.h> | 14 #include <stdlib.h> |
| 15 | 15 |
| 16 #include <algorithm> | 16 #include <algorithm> |
| 17 #include <sstream> | 17 #include <sstream> |
| 18 #include <string> | 18 #include <string> |
| 19 | 19 |
| 20 #include "webrtc/base/checks.h" |
| 21 #include "webrtc/base/logging.h" |
| 22 #include "webrtc/base/safe_minmax.h" |
| 20 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h" | 23 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h" |
| 21 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" | 24 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" |
| 22 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 25 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
| 23 #include "webrtc/rtc_base/checks.h" | |
| 24 #include "webrtc/rtc_base/logging.h" | |
| 25 #include "webrtc/rtc_base/safe_minmax.h" | |
| 26 #include "webrtc/system_wrappers/include/field_trial.h" | 26 #include "webrtc/system_wrappers/include/field_trial.h" |
| 27 | 27 |
| 28 namespace webrtc { | 28 namespace webrtc { |
| 29 | 29 |
| 30 const char kAdaptiveThresholdExperiment[] = "WebRTC-AdaptiveBweThreshold"; | 30 const char kAdaptiveThresholdExperiment[] = "WebRTC-AdaptiveBweThreshold"; |
| 31 const char kEnabledPrefix[] = "Enabled"; | 31 const char kEnabledPrefix[] = "Enabled"; |
| 32 const size_t kEnabledPrefixLength = sizeof(kEnabledPrefix) - 1; | 32 const size_t kEnabledPrefixLength = sizeof(kEnabledPrefix) - 1; |
| 33 const char kDisabledPrefix[] = "Disabled"; | 33 const char kDisabledPrefix[] = "Disabled"; |
| 34 const size_t kDisabledPrefixLength = sizeof(kDisabledPrefix) - 1; | 34 const size_t kDisabledPrefixLength = sizeof(kDisabledPrefix) - 1; |
| 35 | 35 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 RTC_DCHECK(in_experiment_); | 153 RTC_DCHECK(in_experiment_); |
| 154 double k_up = 0.0; | 154 double k_up = 0.0; |
| 155 double k_down = 0.0; | 155 double k_down = 0.0; |
| 156 overusing_time_threshold_ = kOverUsingTimeThreshold; | 156 overusing_time_threshold_ = kOverUsingTimeThreshold; |
| 157 if (ReadExperimentConstants(&k_up, &k_down)) { | 157 if (ReadExperimentConstants(&k_up, &k_down)) { |
| 158 k_up_ = k_up; | 158 k_up_ = k_up; |
| 159 k_down_ = k_down; | 159 k_down_ = k_down; |
| 160 } | 160 } |
| 161 } | 161 } |
| 162 } // namespace webrtc | 162 } // namespace webrtc |
| OLD | NEW |