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

Side by Side Diff: webrtc/modules/audio_processing/aec/aec_core_internal.h

Issue 1499573003: Some minor (bitexact) AEC echo suppressor refactoring (#2) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@ESUP_refactoring_CL
Patch Set: Corrected the positions of the pointer indicators Created 5 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 int frame_count; 145 int frame_count;
146 146
147 // 0 = delay agnostic mode (signal based delay correction) disabled. 147 // 0 = delay agnostic mode (signal based delay correction) disabled.
148 // Otherwise enabled. 148 // Otherwise enabled.
149 int delay_agnostic_enabled; 149 int delay_agnostic_enabled;
150 // 1 = extended filter mode enabled, 0 = disabled. 150 // 1 = extended filter mode enabled, 0 = disabled.
151 int extended_filter_enabled; 151 int extended_filter_enabled;
152 // Runtime selection of number of filter partitions. 152 // Runtime selection of number of filter partitions.
153 int num_partitions; 153 int num_partitions;
154 154
155 // Flag that extreme filter divergence has been detected by the Echo
156 // Suppressor.
157 int extreme_filter_divergence;
158
155 #ifdef WEBRTC_AEC_DEBUG_DUMP 159 #ifdef WEBRTC_AEC_DEBUG_DUMP
156 // Sequence number of this AEC instance, so that different instances can 160 // Sequence number of this AEC instance, so that different instances can
157 // choose different dump file names. 161 // choose different dump file names.
158 int instance_index; 162 int instance_index;
159 163
160 // Number of times we've restarted dumping; used to pick new dump file names 164 // Number of times we've restarted dumping; used to pick new dump file names
161 // each time. 165 // each time.
162 int debug_dump_count; 166 int debug_dump_count;
163 167
164 RingBuffer* far_time_buf; 168 RingBuffer* far_time_buf;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 const float* noisePow, 206 const float* noisePow,
203 const float* lambda); 207 const float* lambda);
204 extern WebRtcAecComfortNoise WebRtcAec_ComfortNoise; 208 extern WebRtcAecComfortNoise WebRtcAec_ComfortNoise;
205 209
206 typedef void (*WebRtcAecSubBandCoherence)(AecCore* aec, 210 typedef void (*WebRtcAecSubBandCoherence)(AecCore* aec,
207 float efw[2][PART_LEN1], 211 float efw[2][PART_LEN1],
208 float dfw[2][PART_LEN1], 212 float dfw[2][PART_LEN1],
209 float xfw[2][PART_LEN1], 213 float xfw[2][PART_LEN1],
210 float* fft, 214 float* fft,
211 float* cohde, 215 float* cohde,
212 float* cohxd); 216 float* cohxd,
217 int* extreme_filter_divergence);
213 extern WebRtcAecSubBandCoherence WebRtcAec_SubbandCoherence; 218 extern WebRtcAecSubBandCoherence WebRtcAec_SubbandCoherence;
214 219
215 typedef int (*WebRtcAecPartitionDelay)(const AecCore* aec); 220 typedef int (*WebRtcAecPartitionDelay)(const AecCore* aec);
216 extern WebRtcAecPartitionDelay WebRtcAec_PartitionDelay; 221 extern WebRtcAecPartitionDelay WebRtcAec_PartitionDelay;
217 222
218 typedef void (*WebRtcAecStoreAsComplex)(const float* data, 223 typedef void (*WebRtcAecStoreAsComplex)(const float* data,
219 float data_complex[2][PART_LEN1]); 224 float data_complex[2][PART_LEN1]);
220 extern WebRtcAecStoreAsComplex WebRtcAec_StoreAsComplex; 225 extern WebRtcAecStoreAsComplex WebRtcAec_StoreAsComplex;
221 226
222 typedef void (*WebRtcAecWindowData)(float* x_windowed, const float* x); 227 typedef void (*WebRtcAecWindowData)(float* x_windowed, const float* x);
223 extern WebRtcAecWindowData WebRtcAec_WindowData; 228 extern WebRtcAecWindowData WebRtcAec_WindowData;
224 229
225 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_INTERNAL_H_ 230 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_INTERNAL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec/aec_core.c ('k') | webrtc/modules/audio_processing/aec/aec_core_neon.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698