Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Unified Diff: webrtc/modules/remote_bitrate_estimator/probing_interval_estimator.h

Issue 2380883003: Add interval estimator to remote bitrate estimator (Closed)
Patch Set: Response to an offline discussion. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/remote_bitrate_estimator/probing_interval_estimator.h
diff --git a/webrtc/modules/remote_bitrate_estimator/probing_interval_estimator.h b/webrtc/modules/remote_bitrate_estimator/probing_interval_estimator.h
new file mode 100644
index 0000000000000000000000000000000000000000..91512b933810f590ed3b05824ce08f18b968e495
--- /dev/null
+++ b/webrtc/modules/remote_bitrate_estimator/probing_interval_estimator.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+#ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_PROBING_INTERVAL_ESTIMATOR_H_
+#define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_PROBING_INTERVAL_ESTIMATOR_H_
+
+#include "webrtc/base/constructormagic.h"
+#include "webrtc/base/optional.h"
+#include "webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h"
+
+namespace webrtc {
+
+class ProbingIntervalEstimator {
+ public:
+ explicit ProbingIntervalEstimator(
+ const AimdRateControl* const aimd_rate_control);
+
+ ProbingIntervalEstimator(int min_interval_ms,
+ int max_interval_ms,
+ const AimdRateControl* const aimd_rate_control);
stefan-webrtc 2016/11/08 13:06:28 Do we need this constructor?
michaelt 2016/11/09 07:54:45 Yes, its used for testing.
+ rtc::Optional<int> GetIntervalMs() const;
+
+ private:
+ const int min_interval_ms_;
+ const int max_interval_ms_;
+ const AimdRateControl* const aimd_rate_control_;
+ RTC_DISALLOW_COPY_AND_ASSIGN(ProbingIntervalEstimator);
+};
+
+} // namespace webrtc
+#endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_PROBING_INTERVAL_ESTIMATOR_H_

Powered by Google App Engine
This is Rietveld 408576698