|
void | AddBlock (uint64_t size_in_bytes, double duration) |
|
uint64_t | Estimate () const |
|
uint64_t | Max () const |
|
Definition at line 15 of file bandwidth_estimator.h.
◆ AddBlock()
void shaka::BandwidthEstimator::AddBlock |
( |
uint64_t |
size_in_bytes, |
|
|
double |
duration |
|
) |
| |
- Parameters
-
size | is the size of the block in bytes. Should be positive. |
duration | is the length in seconds. Should be positive. |
Definition at line 24 of file bandwidth_estimator.cc.
◆ Estimate()
uint64_t shaka::BandwidthEstimator::Estimate |
( |
| ) |
const |
- Returns
- The estimate bandwidth, in bits per second, calculated from the sum of the sizes of every block, divided by the sum of durations of every block, of the number of blocks specified in the constructor. The value is rounded up to the nearest integer.
Definition at line 56 of file bandwidth_estimator.cc.
◆ Max()
uint64_t shaka::BandwidthEstimator::Max |
( |
| ) |
const |
- Returns
- The max bandwidth, in bits per second, of the number of blocks specified in the constructor. The value is rounded up to the nearest integer. Note that small blocks w.r.t. |target_block_duration| are not counted.
Definition at line 62 of file bandwidth_estimator.cc.
The documentation for this class was generated from the following files: