OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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_BEAMFORMER_NONLINEAR_BEAMFORMER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_ |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_ |
13 | 13 |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "webrtc/common_audio/lapped_transform.h" | 16 #include "webrtc/common_audio/lapped_transform.h" |
17 #include "webrtc/common_audio/channel_buffer.h" | 17 #include "webrtc/common_audio/channel_buffer.h" |
18 #include "webrtc/modules/audio_processing/beamformer/array_util.h" | |
19 #include "webrtc/modules/audio_processing/beamformer/beamformer.h" | 18 #include "webrtc/modules/audio_processing/beamformer/beamformer.h" |
20 #include "webrtc/modules/audio_processing/beamformer/complex_matrix.h" | 19 #include "webrtc/modules/audio_processing/beamformer/complex_matrix.h" |
21 | 20 |
22 namespace webrtc { | 21 namespace webrtc { |
23 | 22 |
24 // Enhances sound sources coming directly in front of a uniform linear array | 23 // Enhances sound sources coming directly in front of a uniform linear array |
25 // and suppresses sound sources coming from all other directions. Operates on | 24 // and suppresses sound sources coming from all other directions. Operates on |
26 // multichannel signals and produces single-channel output. | 25 // multichannel signals and produces single-channel output. |
27 // | 26 // |
28 // The implemented nonlinear postfilter algorithm taken from "A Robust Nonlinear | 27 // The implemented nonlinear postfilter algorithm taken from "A Robust Nonlinear |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // Number of blocks after which the data is considered interference if the | 168 // Number of blocks after which the data is considered interference if the |
170 // mask does not pass |kMaskSignalThreshold|. | 169 // mask does not pass |kMaskSignalThreshold|. |
171 int hold_target_blocks_; | 170 int hold_target_blocks_; |
172 // Number of blocks since the last mask that passed |kMaskSignalThreshold|. | 171 // Number of blocks since the last mask that passed |kMaskSignalThreshold|. |
173 int interference_blocks_count_; | 172 int interference_blocks_count_; |
174 }; | 173 }; |
175 | 174 |
176 } // namespace webrtc | 175 } // namespace webrtc |
177 | 176 |
178 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_ | 177 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_ |
OLD | NEW |