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

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

Issue 2684353004: Reduce the BWE with 50% when feedback is received too late. (Closed)
Patch Set: cleanup. Created 3 years, 10 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 b3c5928e054af3ab1657ff84258214a234a45f73..f5a9707282b24376be89dcafe3cbc7e021d41105 100644
--- a/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h
+++ b/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h
@@ -61,6 +61,8 @@ class AimdRateControl {
uint32_t ChangeBitrate(uint32_t current_bit_rate,
uint32_t incoming_bit_rate,
int64_t now_ms);
+ uint32_t ClampBitrate(uint32_t new_bitrate_bps,
nisse-webrtc 2017/02/13 09:55:35 I think this method deserves a comment.
stefan-webrtc 2017/02/13 14:41:13 Done.
+ uint32_t incoming_bitrate_bps) const;
uint32_t MultiplicativeRateIncrease(int64_t now_ms, int64_t last_ms,
uint32_t current_bitrate_bps) const;
uint32_t AdditiveRateIncrease(int64_t now_ms, int64_t last_ms) const;

Powered by Google App Engine
This is Rietveld 408576698