| 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/bitrate_controller/send_side_bandwidth_estimation.h" | 11 #include "webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.h" |
| 12 | 12 |
| 13 #include <cmath> | 13 #include <cmath> |
| 14 | 14 |
| 15 #include "webrtc/base/checks.h" | 15 #include "webrtc/base/checks.h" |
| 16 #include "webrtc/base/logging.h" |
| 16 #include "webrtc/system_wrappers/include/field_trial.h" | 17 #include "webrtc/system_wrappers/include/field_trial.h" |
| 17 #include "webrtc/system_wrappers/include/logging.h" | |
| 18 #include "webrtc/system_wrappers/include/metrics.h" | 18 #include "webrtc/system_wrappers/include/metrics.h" |
| 19 #include "webrtc/call/rtc_event_log.h" | 19 #include "webrtc/call/rtc_event_log.h" |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 namespace { | 22 namespace { |
| 23 const int64_t kBweIncreaseIntervalMs = 1000; | 23 const int64_t kBweIncreaseIntervalMs = 1000; |
| 24 const int64_t kBweDecreaseIntervalMs = 300; | 24 const int64_t kBweDecreaseIntervalMs = 300; |
| 25 const int64_t kStartPhaseMs = 2000; | 25 const int64_t kStartPhaseMs = 2000; |
| 26 const int64_t kBweConverganceTimeMs = 20000; | 26 const int64_t kBweConverganceTimeMs = 20000; |
| 27 const int kLimitNumPackets = 20; | 27 const int kLimitNumPackets = 20; |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 bitrate = min_bitrate_configured_; | 285 bitrate = min_bitrate_configured_; |
| 286 } | 286 } |
| 287 return bitrate; | 287 return bitrate; |
| 288 } | 288 } |
| 289 | 289 |
| 290 void SendSideBandwidthEstimation::SetEventLog(RtcEventLog* event_log) { | 290 void SendSideBandwidthEstimation::SetEventLog(RtcEventLog* event_log) { |
| 291 event_log_ = event_log; | 291 event_log_ = event_log; |
| 292 } | 292 } |
| 293 | 293 |
| 294 } // namespace webrtc | 294 } // namespace webrtc |
| OLD | NEW |