| 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> |
| 14 #include <stdlib.h> |
| 15 |
| 13 #include <algorithm> | 16 #include <algorithm> |
| 14 #include <sstream> | 17 #include <sstream> |
| 15 #include <math.h> | 18 #include <string> |
| 16 #include <stdlib.h> | |
| 17 | 19 |
| 18 #include "webrtc/base/checks.h" | 20 #include "webrtc/base/checks.h" |
| 19 #include "webrtc/base/common.h" | 21 #include "webrtc/base/common.h" |
| 20 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h" | 22 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h" |
| 21 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" | 23 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" |
| 22 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 24 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
| 23 #include "webrtc/system_wrappers/include/field_trial.h" | 25 #include "webrtc/system_wrappers/include/field_trial.h" |
| 24 #include "webrtc/system_wrappers/include/trace.h" | 26 #include "webrtc/system_wrappers/include/trace.h" |
| 25 | 27 |
| 26 namespace webrtc { | 28 namespace webrtc { |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 RTC_DCHECK(in_experiment_); | 148 RTC_DCHECK(in_experiment_); |
| 147 double k_up = 0.0; | 149 double k_up = 0.0; |
| 148 double k_down = 0.0; | 150 double k_down = 0.0; |
| 149 overusing_time_threshold_ = kOverUsingTimeThreshold; | 151 overusing_time_threshold_ = kOverUsingTimeThreshold; |
| 150 if (ReadExperimentConstants(&k_up, &k_down)) { | 152 if (ReadExperimentConstants(&k_up, &k_down)) { |
| 151 k_up_ = k_up; | 153 k_up_ = k_up; |
| 152 k_down_ = k_down; | 154 k_down_ = k_down; |
| 153 } | 155 } |
| 154 } | 156 } |
| 155 } // namespace webrtc | 157 } // namespace webrtc |
| OLD | NEW |