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

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

Issue 1454983006: Ducking fix #2: Removed the aec state as an input parameter to the FilterFar function. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@Aec_Code_Cleanup_CL
Patch Set: Corrected line alignment 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 RingBuffer* far_time_buf; 164 RingBuffer* far_time_buf;
165 rtc_WavWriter* farFile; 165 rtc_WavWriter* farFile;
166 rtc_WavWriter* nearFile; 166 rtc_WavWriter* nearFile;
167 rtc_WavWriter* outFile; 167 rtc_WavWriter* outFile;
168 rtc_WavWriter* outLinearFile; 168 rtc_WavWriter* outLinearFile;
169 FILE* e_fft_file; 169 FILE* e_fft_file;
170 #endif 170 #endif
171 }; 171 };
172 172
173 typedef void (*WebRtcAecFilterFar)(AecCore* aec, float yf[2][PART_LEN1]); 173 typedef void (*WebRtcAecFilterFar)(
174 int num_partitions,
175 int x_fft_buffer_block_pos,
176 float x_fft_buffer[2][kExtendedNumPartitions * PART_LEN1],
177 float h_fft_buffer[2][kExtendedNumPartitions * PART_LEN1],
178 float y_fft[2][PART_LEN1]);
174 extern WebRtcAecFilterFar WebRtcAec_FilterFar; 179 extern WebRtcAecFilterFar WebRtcAec_FilterFar;
175 typedef void (*WebRtcAecScaleErrorSignal)(int extended_filter_enabled, 180 typedef void (*WebRtcAecScaleErrorSignal)(int extended_filter_enabled,
176 float normal_mu, 181 float normal_mu,
177 float normal_error_threshold, 182 float normal_error_threshold,
178 float* xPow, 183 float* xPow,
179 float ef[2][PART_LEN1]); 184 float ef[2][PART_LEN1]);
180 extern WebRtcAecScaleErrorSignal WebRtcAec_ScaleErrorSignal; 185 extern WebRtcAecScaleErrorSignal WebRtcAec_ScaleErrorSignal;
181 typedef void (*WebRtcAecFilterAdaptation)(AecCore* aec, 186 typedef void (*WebRtcAecFilterAdaptation)(AecCore* aec,
182 float* fft, 187 float* fft,
183 float ef[2][PART_LEN1]); 188 float ef[2][PART_LEN1]);
(...skipping 13 matching lines...) Expand all
197 202
198 typedef void (*WebRtcAecSubBandCoherence)(AecCore* aec, 203 typedef void (*WebRtcAecSubBandCoherence)(AecCore* aec,
199 float efw[2][PART_LEN1], 204 float efw[2][PART_LEN1],
200 float xfw[2][PART_LEN1], 205 float xfw[2][PART_LEN1],
201 float* fft, 206 float* fft,
202 float* cohde, 207 float* cohde,
203 float* cohxd); 208 float* cohxd);
204 extern WebRtcAecSubBandCoherence WebRtcAec_SubbandCoherence; 209 extern WebRtcAecSubBandCoherence WebRtcAec_SubbandCoherence;
205 210
206 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_INTERNAL_H_ 211 #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_mips.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698