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

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

Issue 2974583004: Transparency improvements in the echo canceller 3 (Closed)
Patch Set: Corrected wrong echo estimate vector in unittest Created 3 years, 5 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> s_main;
23 std::array<float, kBlockSize> e_main; 24 std::array<float, kBlockSize> e_main;
24 std::array<float, kBlockSize> e_shadow; 25 std::array<float, kBlockSize> e_shadow;
25 FftData E_main; 26 FftData E_main;
26 std::array<float, kFftLengthBy2Plus1> E2_main; 27 std::array<float, kFftLengthBy2Plus1> E2_main;
27 std::array<float, kFftLengthBy2Plus1> E2_shadow; 28 std::array<float, kFftLengthBy2Plus1> E2_shadow;
28 29
29 void Reset() { 30 void Reset() {
31 s_main.fill(0.f);
30 e_main.fill(0.f); 32 e_main.fill(0.f);
31 e_shadow.fill(0.f); 33 e_shadow.fill(0.f);
32 E_main.re.fill(0.f); 34 E_main.re.fill(0.f);
33 E_main.im.fill(0.f); 35 E_main.im.fill(0.f);
34 E2_main.fill(0.f); 36 E2_main.fill(0.f);
35 E2_shadow.fill(0.f); 37 E2_shadow.fill(0.f);
36 } 38 }
37 }; 39 };
38 40
39 } // namespace webrtc 41 } // namespace webrtc
40 42
41 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SUBTRACTOR_OUTPUT_H_ 43 #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