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

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

Issue 2789233005: Move BWE period calculation from ProbingIntervalEstimator to AimdRateControl. (Closed)
Patch Set: Remove unused include. Created 3 years, 8 months 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/aimd_rate_control.h
diff --git a/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h b/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h
index 5a0a34584f7520c60ce4d4797ae33b5595d9d3af..02f45c6f3156d2f751dade37b13f12261a08d726 100644
--- a/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h
+++ b/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h
@@ -24,7 +24,7 @@ namespace webrtc {
class AimdRateControl {
public:
AimdRateControl();
- virtual ~AimdRateControl();
+ ~AimdRateControl();
// Returns true if there is a valid estimate of the incoming bitrate, false
// otherwise.
@@ -43,11 +43,9 @@ class AimdRateControl {
uint32_t Update(const RateControlInput* input, int64_t now_ms);
void SetEstimate(int bitrate_bps, int64_t now_ms);
- // Returns the increase rate which is used when used bandwidth is near the
michaelt 2017/04/05 07:06:02 Was the comment to obvious ?
terelius 2017/04/05 10:58:03 Initially I tried to remove the entire function an
- // maximal available bandwidth.
- virtual int GetNearMaxIncreaseRateBps() const;
-
- virtual rtc::Optional<int> GetLastBitrateDecreaseBps() const;
+ int GetNearMaxIncreaseRateBps() const;
michaelt 2017/04/05 07:06:02 This function could be made private, but I'm not s
stefan-webrtc 2017/04/05 07:20:42 I prefer making it private. There should be other
terelius 2017/04/05 10:58:03 In principle I agree, but as I don't see a clean w
+ // Returns the expected time until the next overuse (assuming steady state).
+ int GetExpectedBandwidthPeriodMs() const;
private:
// Update the target bitrate according based on, among other things,

Powered by Google App Engine
This is Rietveld 408576698