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

Unified Diff: webrtc/modules/remote_bitrate_estimator/overuse_estimator.cc

Issue 2800633004: Resolve dependency between rtc_event_log_api and remote_bitrate_estimator (Closed)
Patch Set: Rebased 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/overuse_estimator.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/overuse_estimator.cc b/webrtc/modules/remote_bitrate_estimator/overuse_estimator.cc
index 85efecd02c199f6e7b41484e28587ab8e53897ed..0beab30945f796894cf5e4a763d898f9642e5107 100644
--- a/webrtc/modules/remote_bitrate_estimator/overuse_estimator.cc
+++ b/webrtc/modules/remote_bitrate_estimator/overuse_estimator.cc
@@ -65,8 +65,10 @@ void OveruseEstimator::Update(int64_t t_delta,
E_[0][0] += process_noise_[0];
E_[1][1] += process_noise_[1];
- if ((current_hypothesis == kBwOverusing && offset_ < prev_offset_) ||
- (current_hypothesis == kBwUnderusing && offset_ > prev_offset_)) {
+ if ((current_hypothesis == BandwidthUsage::kBwOverusing &&
+ offset_ < prev_offset_) ||
+ (current_hypothesis == BandwidthUsage::kBwUnderusing &&
+ offset_ > prev_offset_)) {
E_[1][1] += 10 * process_noise_[1];
}
@@ -78,7 +80,8 @@ void OveruseEstimator::Update(int64_t t_delta,
const double residual = t_ts_delta - slope_*h[0] - offset_;
- const bool in_stable_state = (current_hypothesis == kBwNormal);
+ const bool in_stable_state =
+ (current_hypothesis == BandwidthUsage::kBwNormal);
const double max_residual = 3.0 * sqrt(var_noise_);
// We try to filter out very late frames. For instance periodic key
// frames doesn't fit the Gaussian model well.

Powered by Google App Engine
This is Rietveld 408576698