• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3  *
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
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #include "modules/remote_bitrate_estimator/include/bwe_defines.h"
12 
13 #include "system_wrappers/include/field_trial.h"
14 
15 namespace webrtc {
16 
17 const char kBweTypeHistogram[] = "WebRTC.BWE.Types";
18 
19 namespace congestion_controller {
GetMinBitrateBps()20 int GetMinBitrateBps() {
21   constexpr int kMinBitrateBps = 5000;
22   return kMinBitrateBps;
23 }
24 
GetMinBitrate()25 DataRate GetMinBitrate() {
26   return DataRate::BitsPerSec(GetMinBitrateBps());
27 }
28 
29 }  // namespace congestion_controller
30 
RateControlInput(BandwidthUsage bw_state,const absl::optional<DataRate> & estimated_throughput)31 RateControlInput::RateControlInput(
32     BandwidthUsage bw_state,
33     const absl::optional<DataRate>& estimated_throughput)
34     : bw_state(bw_state), estimated_throughput(estimated_throughput) {}
35 
36 RateControlInput::~RateControlInput() = default;
37 
38 }  // namespace webrtc
39