1 /* 2 * Copyright (c) 2012 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 #ifndef MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_BWE_DEFINES_H_ 12 #define MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_BWE_DEFINES_H_ 13 14 #include <stdint.h> 15 16 #include "absl/types/optional.h" 17 #include "api/network_state_predictor.h" 18 #include "api/units/data_rate.h" 19 20 namespace webrtc { 21 22 constexpr DataRate kCongestionControllerMinBitrate = DataRate::BitsPerSec(5000); 23 24 static const int64_t kBitrateWindowMs = 1000; 25 26 extern const char kBweTypeHistogram[]; 27 28 enum BweNames { 29 kReceiverNoExtension = 0, 30 kReceiverTOffset = 1, 31 kReceiverAbsSendTime = 2, 32 kSendSideTransportSeqNum = 3, 33 kBweNamesMax = 4 34 }; 35 36 struct RateControlInput { 37 RateControlInput(BandwidthUsage bw_state, 38 const absl::optional<DataRate>& estimated_throughput); 39 ~RateControlInput(); 40 41 BandwidthUsage bw_state; 42 absl::optional<DataRate> estimated_throughput; 43 }; 44 } // namespace webrtc 45 46 #endif // MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_BWE_DEFINES_H_ 47