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

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

Issue 2380683005: Moved RtcEventLog files from call/ to logging/ (new top level dir) (Closed)
Patch Set: Rebase to master Created 4 years, 2 months 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
« no previous file with comments | « webrtc/modules/bitrate_controller/DEPS ('k') | webrtc/modules/rtp_rtcp/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <algorithm> 13 #include <algorithm>
14 #include <cmath> 14 #include <cmath>
15 15
16 #include "webrtc/base/checks.h" 16 #include "webrtc/base/checks.h"
17 #include "webrtc/base/logging.h" 17 #include "webrtc/base/logging.h"
18 #include "webrtc/logging/rtc_event_log/rtc_event_log.h"
18 #include "webrtc/system_wrappers/include/field_trial.h" 19 #include "webrtc/system_wrappers/include/field_trial.h"
19 #include "webrtc/system_wrappers/include/metrics.h" 20 #include "webrtc/system_wrappers/include/metrics.h"
20 #include "webrtc/call/rtc_event_log.h"
21 21
22 namespace webrtc { 22 namespace webrtc {
23 namespace { 23 namespace {
24 const int64_t kBweIncreaseIntervalMs = 1000; 24 const int64_t kBweIncreaseIntervalMs = 1000;
25 const int64_t kBweDecreaseIntervalMs = 300; 25 const int64_t kBweDecreaseIntervalMs = 300;
26 const int64_t kStartPhaseMs = 2000; 26 const int64_t kStartPhaseMs = 2000;
27 const int64_t kBweConverganceTimeMs = 20000; 27 const int64_t kBweConverganceTimeMs = 20000;
28 const int kLimitNumPackets = 20; 28 const int kLimitNumPackets = 20;
29 const int kDefaultMinBitrateBps = 10000; 29 const int kDefaultMinBitrateBps = 10000;
30 const int kDefaultMaxBitrateBps = 1000000000; 30 const int kDefaultMaxBitrateBps = 1000000000;
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 LOG(LS_WARNING) << "Estimated available bandwidth " << bitrate / 1000 335 LOG(LS_WARNING) << "Estimated available bandwidth " << bitrate / 1000
336 << " kbps is below configured min bitrate " 336 << " kbps is below configured min bitrate "
337 << min_bitrate_configured_ / 1000 << " kbps."; 337 << min_bitrate_configured_ / 1000 << " kbps.";
338 last_low_bitrate_log_ms_ = now_ms; 338 last_low_bitrate_log_ms_ = now_ms;
339 } 339 }
340 bitrate = min_bitrate_configured_; 340 bitrate = min_bitrate_configured_;
341 } 341 }
342 return bitrate; 342 return bitrate;
343 } 343 }
344 } // namespace webrtc 344 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/bitrate_controller/DEPS ('k') | webrtc/modules/rtp_rtcp/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698