blob: 1a67faafd0f8ecade5a5ef30bef283bcda260f8d [file] [log] [blame]
stefan64636dd2016-08-03 00:29:03 -07001/*
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 */
michaeltf082c2a2016-11-07 04:17:14 -080010
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#include "modules/remote_bitrate_estimator/include/bwe_defines.h"
Jonas Olssona4d87372019-07-05 19:08:33 +020012
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020013#include "system_wrappers/include/field_trial.h"
michaeltf082c2a2016-11-07 04:17:14 -080014
stefan64636dd2016-08-03 00:29:03 -070015namespace webrtc {
16
agrieve26622d32017-08-08 10:48:15 -070017const char kBweTypeHistogram[] = "WebRTC.BWE.Types";
michaeltf082c2a2016-11-07 04:17:14 -080018
19namespace congestion_controller {
20int GetMinBitrateBps() {
Sebastian Jansson470a5ea2019-01-23 12:37:49 +010021 constexpr int kMinBitrateBps = 5000;
michaeltf082c2a2016-11-07 04:17:14 -080022 return kMinBitrateBps;
23}
24
Sebastian Jansson7c1744d2018-10-08 11:00:50 +020025DataRate GetMinBitrate() {
26 return DataRate::bps(GetMinBitrateBps());
27}
28
michaeltf082c2a2016-11-07 04:17:14 -080029} // namespace congestion_controller
nisse76e62b02017-05-31 02:24:52 -070030
31RateControlInput::RateControlInput(
32 BandwidthUsage bw_state,
Sebastian Jansson5f009952018-11-19 18:02:20 +010033 const absl::optional<DataRate>& estimated_throughput)
34 : bw_state(bw_state), estimated_throughput(estimated_throughput) {}
nisse76e62b02017-05-31 02:24:52 -070035
36RateControlInput::~RateControlInput() = default;
37
stefan64636dd2016-08-03 00:29:03 -070038} // namespace webrtc