Index: webrtc/modules/remote_bitrate_estimator/test/estimators/max_bandwidth_filter.h |
diff --git a/webrtc/modules/remote_bitrate_estimator/test/estimators/max_bandwidth_filter.h b/webrtc/modules/remote_bitrate_estimator/test/estimators/max_bandwidth_filter.h |
index 01c367cab79c90edead0ea91278da57b71ce5555..6930a7f69977b3f3b6a45b44e431c2501fea54ed 100644 |
--- a/webrtc/modules/remote_bitrate_estimator/test/estimators/max_bandwidth_filter.h |
+++ b/webrtc/modules/remote_bitrate_estimator/test/estimators/max_bandwidth_filter.h |
@@ -12,6 +12,7 @@ |
#ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MAX_BANDWIDTH_FILTER_H_ |
#define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MAX_BANDWIDTH_FILTER_H_ |
+#include <cstddef> |
#include <cstdint> |
namespace webrtc { |
@@ -22,21 +23,22 @@ class MaxBandwidthFilter { |
MaxBandwidthFilter(); |
~MaxBandwidthFilter(); |
- int64_t max_bandwidth_estimate() { return max_bandwidth_estimate_; } |
+ int64_t max_bandwidth_estimate() { |
+ return max_bandwidth_estimate_bytes_per_ms_; |
+ } |
- // Save bandwidth sample for the current round. |
- // We save bandwidth samples for past 10 rounds to |
- // provide better bandwidth estimate. |
- |
- void AddBandwidthSample(int64_t sample, int64_t round); |
+ // Save bandwidth sample for the current round. We save bandwidth samples for |
+ // past 10 rounds to provide better bandwidth estimate. |
+ void AddBandwidthSample(int64_t sample, int64_t round, size_t filter_size); |
// Check if bandwidth has grown by certain multiplier for past x rounds, |
// to decide whether or not full bandwidth was reached. |
bool FullBandwidthReached(float growth_target, int max_rounds_without_growth); |
private: |
- int64_t bandwidth_last_round_; |
- int64_t max_bandwidth_estimate_; |
+ int64_t bandwidth_last_round_bytes_per_ms_; |
+ uint64_t round_bandwidth_updated_; |
+ int64_t max_bandwidth_estimate_bytes_per_ms_; |
int64_t rounds_without_growth_; |
}; |
} // namespace bwe |