Reland of "Change TWCC send interval to reduce overhead on low BW situations."
"Change TWCC send interval to reduce overhead on low BW situations." was first committed in https://codereview.webrtc.org/2381833003/
but was reverted in https://codereview.webrtc.org/2468413009/ due to "float-cast-overflow".
BUG=webrtc:6442, webrtc:6669
Review-Url: https://codereview.webrtc.org/2482823002
Cr-Commit-Position: refs/heads/master@{#14954}
diff --git a/webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h b/webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h
index 1278863..71099bf 100644
--- a/webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h
+++ b/webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h
@@ -47,8 +47,11 @@
void SetMinBitrate(int min_bitrate_bps) override {}
int64_t TimeUntilNextProcess() override;
void Process() override;
+ void OnBitrateChanged(int bitrate);
- static const int kDefaultProcessIntervalMs;
+ static const int kMinSendIntervalMs;
+ static const int kMaxSendIntervalMs;
+ static const int kDefaultSendIntervalMs;
static const int kBackWindowMs;
private:
@@ -68,6 +71,7 @@
int64_t window_start_seq_ GUARDED_BY(&lock_);
// Map unwrapped seq -> time.
std::map<int64_t, int64_t> packet_arrival_times_ GUARDED_BY(&lock_);
+ int64_t send_interval_ms_ GUARDED_BY(&lock_);
};
} // namespace webrtc