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

Unified Diff: webrtc/modules/audio_processing/aec3/echo_path_delay_estimator.h

Issue 2784023002: Major AEC3 render pipeline changes (Closed)
Patch Set: Disabled one more DEATH test that caused issues due to bug on bots 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/audio_processing/aec3/echo_path_delay_estimator.h
diff --git a/webrtc/modules/audio_processing/aec3/echo_path_delay_estimator.h b/webrtc/modules/audio_processing/aec3/echo_path_delay_estimator.h
index bbe9a7c32a6719cd9fc0d610dd992fee113d1541..1129838f703e033f5223e342ccd28f16dcea15bd 100644
--- a/webrtc/modules/audio_processing/aec3/echo_path_delay_estimator.h
+++ b/webrtc/modules/audio_processing/aec3/echo_path_delay_estimator.h
@@ -15,9 +15,10 @@
#include "webrtc/base/constructormagic.h"
#include "webrtc/base/optional.h"
+#include "webrtc/modules/audio_processing/aec3/decimator_by_4.h"
+#include "webrtc/modules/audio_processing/aec3/downsampled_render_buffer.h"
#include "webrtc/modules/audio_processing/aec3/matched_filter.h"
#include "webrtc/modules/audio_processing/aec3/matched_filter_lag_aggregator.h"
-#include "webrtc/modules/audio_processing/aec3/decimator_by_4.h"
namespace webrtc {
@@ -29,13 +30,16 @@ class EchoPathDelayEstimator {
explicit EchoPathDelayEstimator(ApmDataDumper* data_dumper);
~EchoPathDelayEstimator();
+ // Resets the estimation.
+ void Reset();
+
// Produce a delay estimate if such is avaliable.
- rtc::Optional<size_t> EstimateDelay(rtc::ArrayView<const float> render,
- rtc::ArrayView<const float> capture);
+ rtc::Optional<size_t> EstimateDelay(
+ const DownsampledRenderBuffer& render_buffer,
+ rtc::ArrayView<const float> capture);
private:
ApmDataDumper* const data_dumper_;
- DecimatorBy4 render_decimator_;
DecimatorBy4 capture_decimator_;
MatchedFilter matched_filter_;
MatchedFilterLagAggregator matched_filter_lag_aggregator_;

Powered by Google App Engine
This is Rietveld 408576698