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

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

Issue 2321483002: Refactoring of the buffering of the output signal done inside the AEC (Closed)
Patch Set: New testvectors Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 int knownDelay; 127 int knownDelay;
128 int inSamples, outSamples; 128 int inSamples, outSamples;
129 int delayEstCtr; 129 int delayEstCtr;
130 130
131 // Nearend buffer used for changing from FRAME_LEN to PART_LEN sample block 131 // Nearend buffer used for changing from FRAME_LEN to PART_LEN sample block
132 // sizes. The buffer stores all the incoming bands and for each band a maximum 132 // sizes. The buffer stores all the incoming bands and for each band a maximum
133 // of PART_LEN - (FRAME_LEN - PART_LEN) values need to be buffered in order to 133 // of PART_LEN - (FRAME_LEN - PART_LEN) values need to be buffered in order to
134 // change the block size from FRAME_LEN to PART_LEN. 134 // change the block size from FRAME_LEN to PART_LEN.
135 float nearend_buffer[NUM_HIGH_BANDS_MAX + 1] 135 float nearend_buffer[NUM_HIGH_BANDS_MAX + 1]
136 [PART_LEN - (FRAME_LEN - PART_LEN)]; 136 [PART_LEN - (FRAME_LEN - PART_LEN)];
137 int nearend_buffer_size; 137 size_t nearend_buffer_size;
138 RingBuffer* outFrBuf; 138 float output_buffer[NUM_HIGH_BANDS_MAX + 1][2 * PART_LEN];
139 139 size_t output_buffer_size;
140 RingBuffer* outFrBufH[NUM_HIGH_BANDS_MAX];
141 140
142 float eBuf[PART_LEN2]; // error 141 float eBuf[PART_LEN2]; // error
143 142
144 float previous_nearend_block[NUM_HIGH_BANDS_MAX + 1][PART_LEN]; 143 float previous_nearend_block[NUM_HIGH_BANDS_MAX + 1][PART_LEN];
145 144
146 float xPow[PART_LEN1]; 145 float xPow[PART_LEN1];
147 float dPow[PART_LEN1]; 146 float dPow[PART_LEN1];
148 float dMinPow[PART_LEN1]; 147 float dMinPow[PART_LEN1];
149 float dInitMinPow[PART_LEN1]; 148 float dInitMinPow[PART_LEN1];
150 float* noisePow; 149 float* noisePow;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 int WebRtcAec_system_delay(AecCore* self); 316 int WebRtcAec_system_delay(AecCore* self);
318 317
319 // Sets the |system_delay| to |value|. Note that if the value is changed 318 // Sets the |system_delay| to |value|. Note that if the value is changed
320 // improperly, there can be a performance regression. So it should be used with 319 // improperly, there can be a performance regression. So it should be used with
321 // care. 320 // care.
322 void WebRtcAec_SetSystemDelay(AecCore* self, int delay); 321 void WebRtcAec_SetSystemDelay(AecCore* self, int delay);
323 322
324 } // namespace webrtc 323 } // namespace webrtc
325 324
326 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ 325 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_
OLDNEW
« no previous file with comments | « data/audio_processing/output_data_mac.pb ('k') | webrtc/modules/audio_processing/aec/aec_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698