webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | Static Public Attributes | List of all members
webrtc::RateStatistics Class Reference

#include <rate_statistics.h>

Public Member Functions

 RateStatistics (int64_t max_window_size_ms, float scale)
 
 ~RateStatistics ()
 
void Reset ()
 
void Update (size_t count, int64_t now_ms)
 
rtc::Optional< uint32_tRate (int64_t now_ms) const
 
bool SetWindowSize (int64_t window_size_ms, int64_t now_ms)
 
 RateStatistics (int64_t max_window_size_ms, float scale)
 
 ~RateStatistics ()
 
void Reset ()
 
void Update (size_t count, int64_t now_ms)
 
rtc::Optional< uint32_tRate (int64_t now_ms) const
 
bool SetWindowSize (int64_t window_size_ms, int64_t now_ms)
 

Static Public Attributes

static constexpr float kBpsScale = 8000.0f
 

Constructor & Destructor Documentation

◆ RateStatistics() [1/2]

webrtc::RateStatistics::RateStatistics ( int64_t  max_window_size_ms,
float  scale 
)

◆ ~RateStatistics() [1/2]

webrtc::RateStatistics::~RateStatistics ( )

◆ RateStatistics() [2/2]

webrtc::RateStatistics::RateStatistics ( int64_t  max_window_size_ms,
float  scale 
)

◆ ~RateStatistics() [2/2]

webrtc::RateStatistics::~RateStatistics ( )

Member Function Documentation

◆ Rate() [1/2]

rtc::Optional< uint32_t > webrtc::RateStatistics::Rate ( int64_t  now_ms) const

◆ Rate() [2/2]

rtc::Optional<uint32_t> webrtc::RateStatistics::Rate ( int64_t  now_ms) const

◆ Reset() [1/2]

void webrtc::RateStatistics::Reset ( )

◆ Reset() [2/2]

void webrtc::RateStatistics::Reset ( )

◆ SetWindowSize() [1/2]

bool webrtc::RateStatistics::SetWindowSize ( int64_t  window_size_ms,
int64_t  now_ms 
)

◆ SetWindowSize() [2/2]

bool webrtc::RateStatistics::SetWindowSize ( int64_t  window_size_ms,
int64_t  now_ms 
)

◆ Update() [1/2]

void webrtc::RateStatistics::Update ( size_t  count,
int64_t  now_ms 
)

◆ Update() [2/2]

void webrtc::RateStatistics::Update ( size_t  count,
int64_t  now_ms 
)

Member Data Documentation

◆ kBpsScale

static constexpr float webrtc::RateStatistics::kBpsScale = 8000.0f
static

The documentation for this class was generated from the following files: