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

Unified Diff: webrtc/base/rate_statistics.cc

Issue 1660963002: Bitrate controller for VideoToolbox encoder. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Instant adjustments only for large rate changes. Created 4 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/base/rate_statistics.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/rate_statistics.cc b/webrtc/base/rate_statistics.cc
similarity index 93%
rename from webrtc/modules/remote_bitrate_estimator/rate_statistics.cc
rename to webrtc/base/rate_statistics.cc
index c1b4c80cc6c3eaa54cc9597e1e3e8748a9e08d6a..8db2851e682f3e152cced6a738eedb571d982c66 100644
--- a/webrtc/modules/remote_bitrate_estimator/rate_statistics.cc
+++ b/webrtc/base/rate_statistics.cc
@@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "webrtc/modules/remote_bitrate_estimator/rate_statistics.h"
+#include "webrtc/base/rate_statistics.h"
#include <assert.h>
@@ -20,11 +20,9 @@ RateStatistics::RateStatistics(uint32_t window_size_ms, float scale)
accumulated_count_(0),
oldest_time_(0),
oldest_index_(0),
- scale_(scale / (num_buckets_ - 1)) {
-}
+ scale_(scale / (num_buckets_ - 1)) {}
-RateStatistics::~RateStatistics() {
-}
+RateStatistics::~RateStatistics() {}
void RateStatistics::Reset() {
accumulated_count_ = 0;

Powered by Google App Engine
This is Rietveld 408576698