bwe_defines.h (1404B)
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 <optional> 17 18 #include "api/transport/bandwidth_usage.h" 19 #include "api/units/data_rate.h" 20 #include "api/units/time_delta.h" 21 22 namespace webrtc { 23 24 inline constexpr DataRate kCongestionControllerMinBitrate = 25 DataRate::BitsPerSec(5'000); 26 inline constexpr TimeDelta kBitrateWindow = TimeDelta::Seconds(1); 27 28 extern const char kBweTypeHistogram[]; 29 30 enum BweNames { 31 kReceiverNoExtension = 0, 32 kReceiverTOffset = 1, 33 kReceiverAbsSendTime = 2, 34 kSendSideTransportSeqNum = 3, 35 kBweNamesMax = 4 36 }; 37 38 struct RateControlInput { 39 RateControlInput(BandwidthUsage bw_state, 40 const std::optional<DataRate>& estimated_throughput); 41 ~RateControlInput(); 42 43 BandwidthUsage bw_state; 44 std::optional<DataRate> estimated_throughput; 45 }; 46 } // namespace webrtc 47 48 #endif // MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_BWE_DEFINES_H_