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

Unified Diff: webrtc/modules/audio_processing/include/audio_processing.h

Issue 2629563003: Added a new echo likelihood stat that reports the maximum value from a previous time period. (Closed)
Patch Set: Small bugfix. Created 3 years, 11 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/audio_processing/include/audio_processing.h
diff --git a/webrtc/modules/audio_processing/include/audio_processing.h b/webrtc/modules/audio_processing/include/audio_processing.h
index d1a711dfa6a3d38f02d87622ee07849c5db43f85..db443137cb72819245ac80a2e06c57d4e3fe4ca4 100644
--- a/webrtc/modules/audio_processing/include/audio_processing.h
+++ b/webrtc/modules/audio_processing/include/audio_processing.h
@@ -514,12 +514,9 @@ class AudioProcessing {
};
struct AudioProcessingStatistics {
- AudioProcessingStatistics() {
- residual_echo_return_loss.Set(-100.0f, -100.0f, -100.0f, -100.0f);
- echo_return_loss.Set(-100.0f, -100.0f, -100.0f, -100.0f);
- echo_return_loss_enhancement.Set(-100.0f, -100.0f, -100.0f, -100.0f);
- a_nlp.Set(-100.0f, -100.0f, -100.0f, -100.0f);
- }
+ AudioProcessingStatistics();
+ AudioProcessingStatistics(const AudioProcessingStatistics& other);
+ ~AudioProcessingStatistics();
// AEC Statistics.
// RERL = ERL + ERLE
@@ -545,10 +542,10 @@ class AudioProcessing {
int delay_standard_deviation = -1;
float fraction_poor_delays = -1.0f;
- // Residual echo detector likelihood. This value is not yet calculated and
- // is currently always set to zero.
- // TODO(ivoc): Implement this stat.
+ // Residual echo detector likelihood.
float residual_echo_likelihood = -1.0f;
+ // Maximum residual echo likelihood from the last time period.
+ float residual_echo_likelihood_recent_max = -1.0f;
};
// TODO(ivoc): Make this pure virtual when all subclasses have been updated.

Powered by Google App Engine
This is Rietveld 408576698