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 const double target_segment_duration_ = 0;
39 uint64_t total_size_in_bits_ = 0;
40 double total_duration_ = 0;
41 uint64_t max_bitrate_ = 0;
46 #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