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

Side by Side Diff: webrtc/modules/audio_processing/aec3/subtractor_output.h

Issue 2782423003: Major updates to the echo removal functionality in AEC3 (Closed)
Patch Set: Added initialization of uninitialized vector Created 3 years, 8 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) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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
11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SUBTRACTOR_OUTPUT_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SUBTRACTOR_OUTPUT_H_
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SUBTRACTOR_OUTPUT_H_ 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SUBTRACTOR_OUTPUT_H_
13 13
14 #include <array> 14 #include <array>
15 15
16 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" 16 #include "webrtc/modules/audio_processing/aec3/aec3_common.h"
17 #include "webrtc/modules/audio_processing/aec3/fft_data.h" 17 #include "webrtc/modules/audio_processing/aec3/fft_data.h"
18 18
19 namespace webrtc { 19 namespace webrtc {
20 20
21 // Stores the values being returned from the echo subtractor. 21 // Stores the values being returned from the echo subtractor.
22 struct SubtractorOutput { 22 struct SubtractorOutput {
23 std::array<float, kBlockSize> e_main; 23 std::array<float, kBlockSize> e_main;
24 std::array<float, kBlockSize> e_shadow; 24 std::array<float, kBlockSize> e_shadow;
25 FftData E_main; 25 FftData E_main;
26 FftData E_shadow;
27 std::array<float, kFftLengthBy2Plus1> E2_main; 26 std::array<float, kFftLengthBy2Plus1> E2_main;
28 std::array<float, kFftLengthBy2Plus1> E2_shadow; 27 std::array<float, kFftLengthBy2Plus1> E2_shadow;
29 28
30 void Reset() { 29 void Reset() {
31 e_main.fill(0.f); 30 e_main.fill(0.f);
32 e_shadow.fill(0.f); 31 e_shadow.fill(0.f);
33 E_main.re.fill(0.f); 32 E_main.re.fill(0.f);
34 E_main.im.fill(0.f); 33 E_main.im.fill(0.f);
35 E_shadow.re.fill(0.f);
36 E_shadow.im.fill(0.f);
37 E2_main.fill(0.f); 34 E2_main.fill(0.f);
38 E2_shadow.fill(0.f); 35 E2_shadow.fill(0.f);
39 } 36 }
40 }; 37 };
41 38
42 } // namespace webrtc 39 } // namespace webrtc
43 40
44 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SUBTRACTOR_OUTPUT_H_ 41 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SUBTRACTOR_OUTPUT_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec3/subtractor.cc ('k') | webrtc/modules/audio_processing/aec3/subtractor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698