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

Side by Side Diff: webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.h

Issue 1846903004: Moved ring-buffer related files from common_audio to audio_processing (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 4 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) 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 // MSVC++ requires this to be set before any other includes to get M_PI. 14 // MSVC++ requires this to be set before any other includes to get M_PI.
15 #define _USE_MATH_DEFINES 15 #define _USE_MATH_DEFINES
16 16
17 #include <math.h> 17 #include <math.h>
18 18
19 #include <memory> 19 #include <memory>
20 #include <vector> 20 #include <vector>
21 21
22 #include "webrtc/common_audio/lapped_transform.h"
23 #include "webrtc/common_audio/channel_buffer.h" 22 #include "webrtc/common_audio/channel_buffer.h"
24 #include "webrtc/modules/audio_processing/beamformer/beamformer.h" 23 #include "webrtc/modules/audio_processing/beamformer/beamformer.h"
25 #include "webrtc/modules/audio_processing/beamformer/complex_matrix.h" 24 #include "webrtc/modules/audio_processing/beamformer/complex_matrix.h"
26 25 #include "webrtc/modules/audio_processing/utility/lapped_transform.h"
27 namespace webrtc { 26 namespace webrtc {
28 27
29 // Enhances sound sources coming directly in front of a uniform linear array 28 // Enhances sound sources coming directly in front of a uniform linear array
30 // and suppresses sound sources coming from all other directions. Operates on 29 // and suppresses sound sources coming from all other directions. Operates on
31 // multichannel signals and produces single-channel output. 30 // multichannel signals and produces single-channel output.
32 // 31 //
33 // The implemented nonlinear postfilter algorithm taken from "A Robust Nonlinear 32 // The implemented nonlinear postfilter algorithm taken from "A Robust Nonlinear
34 // Beamforming Postprocessor" by Bastiaan Kleijn. 33 // Beamforming Postprocessor" by Bastiaan Kleijn.
35 class NonlinearBeamformer 34 class NonlinearBeamformer
36 : public Beamformer<float>, 35 : public Beamformer<float>,
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Number of blocks after which the data is considered interference if the 191 // Number of blocks after which the data is considered interference if the
193 // mask does not pass |kMaskSignalThreshold|. 192 // mask does not pass |kMaskSignalThreshold|.
194 size_t hold_target_blocks_; 193 size_t hold_target_blocks_;
195 // Number of blocks since the last mask that passed |kMaskSignalThreshold|. 194 // Number of blocks since the last mask that passed |kMaskSignalThreshold|.
196 size_t interference_blocks_count_; 195 size_t interference_blocks_count_;
197 }; 196 };
198 197
199 } // namespace webrtc 198 } // namespace webrtc
200 199
201 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_ 200 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698