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

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

Issue 1512573003: Moving FFT on farend signal to where it is used in AEC (bit exact). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebasing 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 float overDrive, overDriveSm; 88 float overDrive, overDriveSm;
89 int nlp_mode; 89 int nlp_mode;
90 float outBuf[PART_LEN]; 90 float outBuf[PART_LEN];
91 int delayIdx; 91 int delayIdx;
92 92
93 short stNearState, echoState; 93 short stNearState, echoState;
94 short divergeState; 94 short divergeState;
95 95
96 int xfBufBlockPos; 96 int xfBufBlockPos;
97 97
98 RingBuffer* far_buf; 98 RingBuffer* far_time_buf;
99 RingBuffer* far_buf_windowed; 99
100 int system_delay; // Current system delay buffered in AEC. 100 int system_delay; // Current system delay buffered in AEC.
101 101
102 int mult; // sampling frequency multiple 102 int mult; // sampling frequency multiple
103 int sampFreq; 103 int sampFreq;
104 size_t num_bands; 104 size_t num_bands;
105 uint32_t seed; 105 uint32_t seed;
106 106
107 float normal_mu; // stepsize 107 float normal_mu; // stepsize
108 float normal_error_threshold; // error threshold 108 float normal_error_threshold; // error threshold
109 109
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 #ifdef WEBRTC_AEC_DEBUG_DUMP 159 #ifdef WEBRTC_AEC_DEBUG_DUMP
160 // Sequence number of this AEC instance, so that different instances can 160 // Sequence number of this AEC instance, so that different instances can
161 // choose different dump file names. 161 // choose different dump file names.
162 int instance_index; 162 int instance_index;
163 163
164 // 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
165 // each time. 165 // each time.
166 int debug_dump_count; 166 int debug_dump_count;
167 167
168 RingBuffer* far_time_buf;
169 rtc_WavWriter* farFile; 168 rtc_WavWriter* farFile;
170 rtc_WavWriter* nearFile; 169 rtc_WavWriter* nearFile;
171 rtc_WavWriter* outFile; 170 rtc_WavWriter* outFile;
172 rtc_WavWriter* outLinearFile; 171 rtc_WavWriter* outLinearFile;
173 FILE* e_fft_file; 172 FILE* e_fft_file;
174 #endif 173 #endif
175 }; 174 };
176 175
177 typedef void (*WebRtcAecFilterFar)( 176 typedef void (*WebRtcAecFilterFar)(
178 int num_partitions, 177 int num_partitions,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 extern WebRtcAecPartitionDelay WebRtcAec_PartitionDelay; 220 extern WebRtcAecPartitionDelay WebRtcAec_PartitionDelay;
222 221
223 typedef void (*WebRtcAecStoreAsComplex)(const float* data, 222 typedef void (*WebRtcAecStoreAsComplex)(const float* data,
224 float data_complex[2][PART_LEN1]); 223 float data_complex[2][PART_LEN1]);
225 extern WebRtcAecStoreAsComplex WebRtcAec_StoreAsComplex; 224 extern WebRtcAecStoreAsComplex WebRtcAec_StoreAsComplex;
226 225
227 typedef void (*WebRtcAecWindowData)(float* x_windowed, const float* x); 226 typedef void (*WebRtcAecWindowData)(float* x_windowed, const float* x);
228 extern WebRtcAecWindowData WebRtcAec_WindowData; 227 extern WebRtcAecWindowData WebRtcAec_WindowData;
229 228
230 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_INTERNAL_H_ 229 #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/echo_cancellation.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698