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

Unified Diff: webrtc/video/send_statistics_proxy.cc

Issue 1279433006: Add a rate tracker that tracks rate over a given interval split up into buckets that accumulate uni… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix type issues on win64. Created 5 years, 4 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
« webrtc/base/bucketratetracker.cc ('K') | « webrtc/video/send_statistics_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/send_statistics_proxy.cc
diff --git a/webrtc/video/send_statistics_proxy.cc b/webrtc/video/send_statistics_proxy.cc
index 551b4b562a43904f6cfe1105d65455b2610126b9..c16c226f471ae2f0899b8433e942584224762e8c 100644
--- a/webrtc/video/send_statistics_proxy.cc
+++ b/webrtc/video/send_statistics_proxy.cc
@@ -22,11 +22,15 @@
namespace webrtc {
const int SendStatisticsProxy::kStatsTimeoutMs = 5000;
+const size_t SendStatisticsProxy::kFrameRateTrackerInterval = 15u;
noahric 2015/08/07 23:56:38 I think you'll want this to be configurable, since
tpsiaki 2015/08/11 18:33:27 I switched this to be based on the kStatsTimeoutMs
SendStatisticsProxy::SendStatisticsProxy(Clock* clock,
const VideoSendStream::Config& config)
: clock_(clock),
config_(config),
+ input_frame_rate_tracker_(kFrameRateTrackerInterval),
+ input_frame_rate_tracker_total_(kFrameRateTrackerInterval),
+ sent_frame_rate_tracker_total_(kFrameRateTrackerInterval),
last_sent_frame_timestamp_(0),
max_sent_width_per_timestamp_(0),
max_sent_height_per_timestamp_(0) {
« webrtc/base/bucketratetracker.cc ('K') | « webrtc/video/send_statistics_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698