7 #ifndef MPD_BASE_BANDWIDTH_ESTIMATOR_H_
8 #define MPD_BASE_BANDWIDTH_ESTIMATOR_H_
24 void AddBlock(uint64_t size,
double duration);
29 uint64_t Estimate()
const;
31 static const int kUseAllBlocks;
34 const int num_blocks_for_estimation_;
35 double harmonic_mean_denominator_;
39 size_t num_blocks_added_;
40 std::list<double> history_;
43 #endif // MPD_BASE_BANDWIDTH_ESTIMATOR_H_
BandwidthEstimator(int num_blocks)