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/beamformer.h" | 18 #include "webrtc/modules/audio_processing/beamformer/beamformer.h" |
19 #include "webrtc/modules/audio_processing/beamformer/complex_matrix.h" | 19 #include "webrtc/modules/audio_processing/beamformer/complex_matrix.h" |
20 #include "webrtc/system_wrappers/interface/scoped_vector.h" | 20 #include "webrtc/system_wrappers/include/scoped_vector.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 // Enhances sound sources coming directly in front of a uniform linear array | 24 // Enhances sound sources coming directly in front of a uniform linear array |
25 // and suppresses sound sources coming from all other directions. Operates on | 25 // and suppresses sound sources coming from all other directions. Operates on |
26 // multichannel signals and produces single-channel output. | 26 // multichannel signals and produces single-channel output. |
27 // | 27 // |
28 // The implemented nonlinear postfilter algorithm taken from "A Robust Nonlinear | 28 // The implemented nonlinear postfilter algorithm taken from "A Robust Nonlinear |
29 // Beamforming Postprocessor" by Bastiaan Kleijn. | 29 // Beamforming Postprocessor" by Bastiaan Kleijn. |
30 class NonlinearBeamformer | 30 class NonlinearBeamformer |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // Number of blocks after which the data is considered interference if the | 169 // Number of blocks after which the data is considered interference if the |
170 // mask does not pass |kMaskSignalThreshold|. | 170 // mask does not pass |kMaskSignalThreshold|. |
171 size_t hold_target_blocks_; | 171 size_t hold_target_blocks_; |
172 // Number of blocks since the last mask that passed |kMaskSignalThreshold|. | 172 // Number of blocks since the last mask that passed |kMaskSignalThreshold|. |
173 size_t interference_blocks_count_; | 173 size_t interference_blocks_count_; |
174 }; | 174 }; |
175 | 175 |
176 } // namespace webrtc | 176 } // namespace webrtc |
177 | 177 |
178 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_ | 178 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_ |
OLD | NEW |