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

Unified Diff: webrtc/modules/audio_processing/aec/aec_core_internal.h

Issue 1984653002: Added support in the AEC for refined filter adaptation. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@50
Patch Set: One fix Created 4 years, 7 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/aec/aec_core_internal.h
diff --git a/webrtc/modules/audio_processing/aec/aec_core_internal.h b/webrtc/modules/audio_processing/aec/aec_core_internal.h
index b2e7301724d5f7dd886f300299f07bfa978a3e6d..0919b88143eea2751363a818a6c0c40de217c59e 100644
--- a/webrtc/modules/audio_processing/aec/aec_core_internal.h
+++ b/webrtc/modules/audio_processing/aec/aec_core_internal.h
@@ -32,11 +32,6 @@ enum {
kHistorySizeBlocks = 125
};
-// Extended filter adaptation parameters.
-// TODO(ajm): No narrowband tuning yet.
-static const float kExtendedMu = 0.4f;
-static const float kExtendedErrorThreshold = 1.0e-6f;
-
typedef struct PowerLevel {
float sfrsum;
int sfrcounter;
@@ -98,12 +93,12 @@ struct AecCore {
int system_delay; // Current system delay buffered in AEC.
int mult; // sampling frequency multiple
- int sampFreq;
+ int sampFreq = 16000;
size_t num_bands;
uint32_t seed;
- float normal_mu; // stepsize
- float normal_error_threshold; // error threshold
+ float filter_step_size; // stepsize
+ float error_threshold; // error threshold
int noiseEstCtr;
@@ -149,6 +144,7 @@ struct AecCore {
int extended_filter_enabled;
// 1 = next generation aec mode enabled, 0 = disabled.
int next_generation_aec_enabled;
+ int refined_adaptive_filter_enabled;
// Runtime selection of number of filter partitions.
int num_partitions;
@@ -181,9 +177,8 @@ typedef void (*WebRtcAecFilterFar)(
float h_fft_buf[2][kExtendedNumPartitions * PART_LEN1],
float y_fft[2][PART_LEN1]);
extern WebRtcAecFilterFar WebRtcAec_FilterFar;
-typedef void (*WebRtcAecScaleErrorSignal)(int extended_filter_enabled,
- float normal_mu,
- float normal_error_threshold,
+typedef void (*WebRtcAecScaleErrorSignal)(float mu,
+ float error_threshold,
float x_pow[PART_LEN1],
float ef[2][PART_LEN1]);
extern WebRtcAecScaleErrorSignal WebRtcAec_ScaleErrorSignal;
« no previous file with comments | « webrtc/modules/audio_processing/aec/aec_core.cc ('k') | webrtc/modules/audio_processing/aec/aec_core_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698