2012-06-05 12:25:35 +00:00
|
|
|
/*
|
2012-06-07 08:10:14 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2012-06-05 12:25:35 +00:00
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_BWE_DEFINES_H_
|
|
|
|
|
#define MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_BWE_DEFINES_H_
|
2012-06-05 12:25:35 +00:00
|
|
|
|
2018-10-23 12:03:01 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
2018-06-18 10:48:16 +02:00
|
|
|
#include "absl/types/optional.h"
|
2019-04-10 13:48:24 +02:00
|
|
|
#include "api/network_state_predictor.h"
|
2018-10-08 11:00:50 +02:00
|
|
|
#include "api/units/data_rate.h"
|
2012-06-05 12:25:35 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
2015-07-09 17:27:48 +02:00
|
|
|
|
2022-07-25 14:57:55 +02:00
|
|
|
constexpr DataRate kCongestionControllerMinBitrate = DataRate::BitsPerSec(5000);
|
2016-11-07 04:17:14 -08:00
|
|
|
|
2015-07-09 17:27:48 +02:00
|
|
|
static const int64_t kBitrateWindowMs = 1000;
|
|
|
|
|
|
2017-08-08 10:48:15 -07:00
|
|
|
extern const char kBweTypeHistogram[];
|
2016-08-03 00:29:03 -07:00
|
|
|
|
|
|
|
|
enum BweNames {
|
|
|
|
|
kReceiverNoExtension = 0,
|
|
|
|
|
kReceiverTOffset = 1,
|
|
|
|
|
kReceiverAbsSendTime = 2,
|
|
|
|
|
kSendSideTransportSeqNum = 3,
|
|
|
|
|
kBweNamesMax = 4
|
|
|
|
|
};
|
|
|
|
|
|
2015-12-15 00:51:54 -08:00
|
|
|
struct RateControlInput {
|
|
|
|
|
RateControlInput(BandwidthUsage bw_state,
|
2018-11-19 18:02:20 +01:00
|
|
|
const absl::optional<DataRate>& estimated_throughput);
|
2017-05-31 02:24:52 -07:00
|
|
|
~RateControlInput();
|
2012-06-05 12:25:35 +00:00
|
|
|
|
2015-12-15 00:51:54 -08:00
|
|
|
BandwidthUsage bw_state;
|
2018-11-19 18:02:20 +01:00
|
|
|
absl::optional<DataRate> estimated_throughput;
|
2012-06-05 12:25:35 +00:00
|
|
|
};
|
2013-07-03 15:12:26 +00:00
|
|
|
} // namespace webrtc
|
2012-06-05 12:25:35 +00:00
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif // MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_BWE_DEFINES_H_
|