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

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

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

Powered by Google App Engine
This is Rietveld 408576698