| OLD | NEW |
| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 size_t chunk_length_; | 109 size_t chunk_length_; |
| 110 rtc::scoped_ptr<LappedTransform> lapped_transform_; | 110 rtc::scoped_ptr<LappedTransform> lapped_transform_; |
| 111 float window_[kFftSize]; | 111 float window_[kFftSize]; |
| 112 | 112 |
| 113 // Parameters exposed to the user. | 113 // Parameters exposed to the user. |
| 114 const int num_input_channels_; | 114 const int num_input_channels_; |
| 115 int sample_rate_hz_; | 115 int sample_rate_hz_; |
| 116 | 116 |
| 117 const std::vector<Point> array_geometry_; | 117 const std::vector<Point> array_geometry_; |
| 118 | 118 |
| 119 // Minimum spacing between microphone pairs. |
| 120 const float min_mic_spacing_; |
| 121 |
| 119 // Calculated based on user-input and constants in the .cc file. | 122 // Calculated based on user-input and constants in the .cc file. |
| 120 size_t low_mean_start_bin_; | 123 size_t low_mean_start_bin_; |
| 121 size_t low_mean_end_bin_; | 124 size_t low_mean_end_bin_; |
| 122 size_t high_mean_start_bin_; | 125 size_t high_mean_start_bin_; |
| 123 size_t high_mean_end_bin_; | 126 size_t high_mean_end_bin_; |
| 124 | 127 |
| 125 // Quickly varying mask updated every block. | 128 // Quickly varying mask updated every block. |
| 126 float new_mask_[kNumFreqBins]; | 129 float new_mask_[kNumFreqBins]; |
| 127 // Time smoothed mask. | 130 // Time smoothed mask. |
| 128 float time_smooth_mask_[kNumFreqBins]; | 131 float time_smooth_mask_[kNumFreqBins]; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // Number of blocks after which the data is considered interference if the | 168 // Number of blocks after which the data is considered interference if the |
| 166 // mask does not pass |kMaskSignalThreshold|. | 169 // mask does not pass |kMaskSignalThreshold|. |
| 167 size_t hold_target_blocks_; | 170 size_t hold_target_blocks_; |
| 168 // Number of blocks since the last mask that passed |kMaskSignalThreshold|. | 171 // Number of blocks since the last mask that passed |kMaskSignalThreshold|. |
| 169 size_t interference_blocks_count_; | 172 size_t interference_blocks_count_; |
| 170 }; | 173 }; |
| 171 | 174 |
| 172 } // namespace webrtc | 175 } // namespace webrtc |
| 173 | 176 |
| 174 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_ | 177 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_ |
| OLD | NEW |