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

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

Issue 1395453004: Make the high frequency correction range depend on the target angle (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@away
Patch Set: Rebasing 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) 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 int num_input_channels, 59 int num_input_channels,
60 size_t num_freq_bins, 60 size_t num_freq_bins,
61 int num_output_channels, 61 int num_output_channels,
62 complex<float>* const* output) override; 62 complex<float>* const* output) override;
63 63
64 private: 64 private:
65 typedef Matrix<float> MatrixF; 65 typedef Matrix<float> MatrixF;
66 typedef ComplexMatrix<float> ComplexMatrixF; 66 typedef ComplexMatrix<float> ComplexMatrixF;
67 typedef complex<float> complex_f; 67 typedef complex<float> complex_f;
68 68
69 void InitFrequencyCorrectionRanges();
69 void InitInterfAngles(); 70 void InitInterfAngles();
70 void InitDelaySumMasks(); 71 void InitDelaySumMasks();
71 void InitTargetCovMats(); 72 void InitTargetCovMats();
72 void InitInterfCovMats(); 73 void InitInterfCovMats();
73 74
74 // Calculates postfilter masks that minimize the mean squared error of our 75 // Calculates postfilter masks that minimize the mean squared error of our
75 // estimation of the desired signal. 76 // estimation of the desired signal.
76 float CalculatePostfilterMask(const ComplexMatrixF& interf_cov_mat, 77 float CalculatePostfilterMask(const ComplexMatrixF& interf_cov_mat,
77 float rpsiw, 78 float rpsiw,
78 float ratio_rxiw_rxim, 79 float ratio_rxiw_rxim,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // 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
169 // mask does not pass |kMaskSignalThreshold|. 170 // mask does not pass |kMaskSignalThreshold|.
170 size_t hold_target_blocks_; 171 size_t hold_target_blocks_;
171 // Number of blocks since the last mask that passed |kMaskSignalThreshold|. 172 // Number of blocks since the last mask that passed |kMaskSignalThreshold|.
172 size_t interference_blocks_count_; 173 size_t interference_blocks_count_;
173 }; 174 };
174 175
175 } // namespace webrtc 176 } // namespace webrtc
176 177
177 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_ 178 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698