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

Side by Side Diff: webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.cc

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! Created 5 years, 1 month 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
OLDNEW
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/system_wrappers/interface/field_trial.h" 16 #include "webrtc/system_wrappers/include/field_trial.h"
17 #include "webrtc/system_wrappers/interface/logging.h" 17 #include "webrtc/system_wrappers/include/logging.h"
18 #include "webrtc/system_wrappers/interface/metrics.h" 18 #include "webrtc/system_wrappers/include/metrics.h"
19 19
20 namespace webrtc { 20 namespace webrtc {
21 namespace { 21 namespace {
22 const int64_t kBweIncreaseIntervalMs = 1000; 22 const int64_t kBweIncreaseIntervalMs = 1000;
23 const int64_t kBweDecreaseIntervalMs = 300; 23 const int64_t kBweDecreaseIntervalMs = 300;
24 const int64_t kStartPhaseMs = 2000; 24 const int64_t kStartPhaseMs = 2000;
25 const int64_t kBweConverganceTimeMs = 20000; 25 const int64_t kBweConverganceTimeMs = 20000;
26 const int kLimitNumPackets = 20; 26 const int kLimitNumPackets = 20;
27 const int kDefaultMinBitrateBps = 10000; 27 const int kDefaultMinBitrateBps = 10000;
28 const int kDefaultMaxBitrateBps = 1000000000; 28 const int kDefaultMaxBitrateBps = 1000000000;
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 LOG(LS_WARNING) << "Estimated available bandwidth " << bitrate / 1000 268 LOG(LS_WARNING) << "Estimated available bandwidth " << bitrate / 1000
269 << " kbps is below configured min bitrate " 269 << " kbps is below configured min bitrate "
270 << min_bitrate_configured_ / 1000 << " kbps."; 270 << min_bitrate_configured_ / 1000 << " kbps.";
271 last_low_bitrate_log_ms_ = now_ms; 271 last_low_bitrate_log_ms_ = now_ms;
272 } 272 }
273 bitrate = min_bitrate_configured_; 273 bitrate = min_bitrate_configured_;
274 } 274 }
275 return bitrate; 275 return bitrate;
276 } 276 }
277 } // namespace webrtc 277 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698