OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | |
3 * | |
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 | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SUBTRACTOR_OUTPUT_H_ | |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SUBTRACTOR_OUTPUT_H_ | |
13 | |
14 #include <array> | |
15 | |
16 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" | |
17 #include "webrtc/modules/audio_processing/aec3/fft_data.h" | |
18 | |
19 namespace webrtc { | |
20 | |
21 // Stores the values being returned from the echo subtractor. | |
22 struct SubtractorOutput { | |
hlundin-webrtc
2017/02/22 21:17:29
You could just as well include this as a struct in
peah-webrtc
2017/02/22 23:51:40
I don't think that works, since SubtractorOutput i
hlundin-webrtc
2017/02/23 07:42:09
Acknowledged.
peah-webrtc
2017/02/23 11:18:33
Acknowledged.
| |
23 std::array<float, kBlockSize> e_main; | |
24 std::array<float, kBlockSize> e_shadow; | |
25 FftData E_main; | |
26 FftData E_shadow; | |
27 std::array<float, kFftLengthBy2Plus1> E2_main; | |
28 std::array<float, kFftLengthBy2Plus1> E2_shadow; | |
29 | |
30 void Reset() { | |
31 e_main.fill(0.f); | |
32 e_shadow.fill(0.f); | |
33 E_main.re.fill(0.f); | |
34 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); | |
38 E2_shadow.fill(0.f); | |
39 } | |
40 }; | |
41 | |
42 } // namespace webrtc | |
43 | |
44 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SUBTRACTOR_OUTPUT_H_ | |
OLD | NEW |