7 #ifndef MPD_BASE_BANDWIDTH_ESTIMATOR_H_ 8 #define MPD_BASE_BANDWIDTH_ESTIMATOR_H_ 21 void AddBlock(uint64_t size_in_bytes,
double duration);
38 uint64_t total_size_in_bits_ = 0;
39 double total_duration_ = 0;
40 uint64_t max_bitrate_ = 0;
45 #endif // MPD_BASE_BANDWIDTH_ESTIMATOR_H_ All the methods that are virtual are virtual for mocking.
void AddBlock(uint64_t size_in_bytes, double duration)
uint64_t Estimate() const