LeviLamina
Loading...
Searching...
No Matches
SendSideBandwidthEstimation.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/BandwidthUsage.h"
7#include "mc/external/webrtc/LossBasedState.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace webrtc { class DataRate; }
12namespace webrtc { class FieldTrialsView; }
13namespace webrtc { class RtcEventLog; }
14namespace webrtc { class TimeDelta; }
15namespace webrtc { class Timestamp; }
16namespace webrtc { struct SentPacket; }
17namespace webrtc { struct TransportPacketsFeedback; }
18// clang-format on
19
20namespace webrtc {
21
22class SendSideBandwidthEstimation {
23public:
24 // SendSideBandwidthEstimation inner types define
25 enum class UmaState : int {
26 KNoUpdate = 0,
27 KFirstDone = 1,
28 KDone = 2,
29 };
30
31public:
32 // member variables
33 // NOLINTBEGIN
68 // NOLINTEND
69
70public:
71 // prevent constructor by default
72 SendSideBandwidthEstimation& operator=(SendSideBandwidthEstimation const&);
73 SendSideBandwidthEstimation(SendSideBandwidthEstimation const&);
74 SendSideBandwidthEstimation();
75
76public:
77 // member functions
78 // NOLINTBEGIN
79 MCNAPI int GetMinBitrate() const;
80
81 MCNAPI bool IsRttAboveLimit() const;
82
84
85 MCNAPI void OnRouteChange();
86
87 MCNAPI void OnSentPacket(::webrtc::SentPacket const& sent_packet);
88
89 MCNAPI
91
92 MCNAPI void SetAcknowledgedRate(::std::optional<::webrtc::DataRate> acknowledged_rate, ::webrtc::Timestamp at_time);
93
94 MCNAPI void SetBitrates(
95 ::std::optional<::webrtc::DataRate> send_bitrate,
96 ::webrtc::DataRate min_bitrate,
97 ::webrtc::DataRate max_bitrate,
99 );
100
101 MCNAPI void SetMinMaxBitrate(::webrtc::DataRate min_bitrate, ::webrtc::DataRate max_bitrate);
102
104
106
108
111 ::webrtc::BandwidthUsage,
112 ::std::optional<::webrtc::DataRate>,
113 bool in_alr
114 );
115
116 MCNAPI void UpdatePacketsLost(int64 packets_lost, int64 number_of_packets, ::webrtc::Timestamp at_time);
117
118 MCNAPI void UpdatePropagationRtt(::webrtc::Timestamp at_time, ::webrtc::TimeDelta propagation_rtt);
119
121
123
125
126 MCNAPI void UpdateUmaStatsPacketsLost(::webrtc::Timestamp at_time, int packets_lost);
127
128 MCNAPI ::webrtc::LossBasedState loss_based_state() const;
129
130 MCNAPI ::webrtc::DataRate target_rate() const;
131
133 // NOLINTEND
134
135public:
136 // constructor thunks
137 // NOLINTBEGIN
138 MCNAPI void* $ctor(::webrtc::FieldTrialsView const* key_value_config, ::webrtc::RtcEventLog* event_log);
139 // NOLINTEND
140
141public:
142 // destructor thunk
143 // NOLINTBEGIN
144 MCNAPI void $dtor();
145 // NOLINTEND
146};
147
148} // namespace webrtc
Definition DataRate.h:10
Definition FieldTrialsView.h:7
Definition RtcEventLog.h:13
MCAPI void UpdateReceiverEstimate(::webrtc::Timestamp at_time, ::webrtc::DataRate bandwidth)
MCAPI void UpdateRtt(::webrtc::TimeDelta rtt, ::webrtc::Timestamp at_time)
MCAPI void OnSentPacket(::webrtc::SentPacket const &sent_packet)
MCAPI void UpdateTargetBitrate(::webrtc::DataRate new_bitrate, ::webrtc::Timestamp at_time)
MCAPI void * $ctor(::webrtc::FieldTrialsView const *key_value_config, ::webrtc::RtcEventLog *event_log)
MCAPI SendSideBandwidthEstimation(::webrtc::FieldTrialsView const *key_value_config, ::webrtc::RtcEventLog *event_log)
MCAPI void UpdateEstimate(::webrtc::Timestamp at_time)
MCAPI void UpdatePropagationRtt(::webrtc::Timestamp at_time, ::webrtc::TimeDelta propagation_rtt)
MCAPI void MaybeLogLowBitrateWarning(::webrtc::DataRate bitrate, ::webrtc::Timestamp at_time)
MCAPI void UpdateDelayBasedEstimate(::webrtc::Timestamp at_time, ::webrtc::DataRate bitrate)
MCAPI void SetBitrates(::std::optional<::webrtc::DataRate > send_bitrate, ::webrtc::DataRate min_bitrate, ::webrtc::DataRate max_bitrate, ::webrtc::Timestamp at_time)
MCAPI void SetMinMaxBitrate(::webrtc::DataRate min_bitrate, ::webrtc::DataRate max_bitrate)
MCAPI::webrtc::DataRate target_rate() const
MCAPI void SetSendBitrate(::webrtc::DataRate bitrate, ::webrtc::Timestamp at_time)
MCAPI void UpdatePacketsLost(int64 packets_lost, int64 number_of_packets, ::webrtc::Timestamp at_time)
MCAPI void UpdateLossBasedEstimator(::webrtc::TransportPacketsFeedback const &report, ::webrtc::BandwidthUsage, ::std::optional<::webrtc::DataRate >, bool in_alr)
MCAPI void UpdateUmaStatsPacketsLost(::webrtc::Timestamp at_time, int packets_lost)
MCAPI::webrtc::LossBasedState loss_based_state() const
MCAPI void SetAcknowledgedRate(::std::optional<::webrtc::DataRate > acknowledged_rate, ::webrtc::Timestamp at_time)
Definition TimeDelta.h:10
Definition Timestamp.h:15
Definition Alias.h:14
Definition SentPacket.h:7
Definition TransportPacketsFeedback.h:12