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

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

Issue 1394103003: Make the nonlinear beamformer steerable (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@highfreq
Patch Set: Generalize interferer scenarios Created 5 years, 2 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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
(...skipping 14 matching lines...) Expand all
25 // into frequency bands inside the ChannelBuffer. The number of frames and 25 // into frequency bands inside the ChannelBuffer. The number of frames and
26 // channels must correspond to the constructor parameters. The same 26 // channels must correspond to the constructor parameters. The same
27 // ChannelBuffer can be passed in as |input| and |output|. 27 // ChannelBuffer can be passed in as |input| and |output|.
28 virtual void ProcessChunk(const ChannelBuffer<T>& input, 28 virtual void ProcessChunk(const ChannelBuffer<T>& input,
29 ChannelBuffer<T>* output) = 0; 29 ChannelBuffer<T>* output) = 0;
30 30
31 // Sample rate corresponds to the lower band. 31 // Sample rate corresponds to the lower band.
32 // Needs to be called before the the Beamformer can be used. 32 // Needs to be called before the the Beamformer can be used.
33 virtual void Initialize(int chunk_size_ms, int sample_rate_hz) = 0; 33 virtual void Initialize(int chunk_size_ms, int sample_rate_hz) = 0;
34 34
35 // Aim the beamformer at a point in space.
36 virtual void AimAt(const SphericalPointf& spherical_point) = 0;
37
35 // Indicates whether a given point is inside of the beam. 38 // Indicates whether a given point is inside of the beam.
36 virtual bool IsInBeam(const SphericalPointf& spherical_point) { return true; } 39 virtual bool IsInBeam(const SphericalPointf& spherical_point) { return true; }
37 40
38 // Returns true if the current data contains the target signal. 41 // Returns true if the current data contains the target signal.
39 // Which signals are considered "targets" is implementation dependent. 42 // Which signals are considered "targets" is implementation dependent.
40 virtual bool is_target_present() = 0; 43 virtual bool is_target_present() = 0;
41 }; 44 };
42 45
43 } // namespace webrtc 46 } // namespace webrtc
44 47
45 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_BEAMFORMER_H_ 48 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_BEAMFORMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698