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

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

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 3 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
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 // A uniform covariance matrix with a gap at the target location. WARNING: 24 // A uniform covariance matrix with a gap at the target location. WARNING:
25 // The target angle is assumed to be 0. 25 // The target angle is assumed to be 0.
26 static void UniformCovarianceMatrix(float wave_number, 26 static void UniformCovarianceMatrix(float wave_number,
27 const std::vector<Point>& geometry, 27 const std::vector<Point>& geometry,
28 ComplexMatrix<float>* mat); 28 ComplexMatrix<float>* mat);
29 29
30 // The covariance matrix of a source at the given angle. 30 // The covariance matrix of a source at the given angle.
31 static void AngledCovarianceMatrix(float sound_speed, 31 static void AngledCovarianceMatrix(float sound_speed,
32 float angle, 32 float angle,
33 int frequency_bin, 33 size_t frequency_bin,
34 int fft_size, 34 size_t fft_size,
35 int num_freq_bins, 35 size_t num_freq_bins,
36 int sample_rate, 36 int sample_rate,
37 const std::vector<Point>& geometry, 37 const std::vector<Point>& geometry,
38 ComplexMatrix<float>* mat); 38 ComplexMatrix<float>* mat);
39 39
40 // Calculates phase shifts that, when applied to a multichannel signal and 40 // Calculates phase shifts that, when applied to a multichannel signal and
41 // added together, cause constructive interferernce for sources located at 41 // added together, cause constructive interferernce for sources located at
42 // the given angle. 42 // the given angle.
43 static void PhaseAlignmentMasks(int frequency_bin, 43 static void PhaseAlignmentMasks(size_t frequency_bin,
44 int fft_size, 44 size_t fft_size,
45 int sample_rate, 45 int sample_rate,
46 float sound_speed, 46 float sound_speed,
47 const std::vector<Point>& geometry, 47 const std::vector<Point>& geometry,
48 float angle, 48 float angle,
49 ComplexMatrix<float>* mat); 49 ComplexMatrix<float>* mat);
50 }; 50 };
51 51
52 } // namespace webrtc 52 } // namespace webrtc
53 53
54 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_BF_HELPERS_H_ 54 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_BF_HELPERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698