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

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

Issue 1432553007: Rename Maybe to Optional (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 1 month 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
« no previous file with comments | « webrtc/modules/audio_processing/beamformer/array_util.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 size_t chunk_length_; 127 size_t chunk_length_;
128 rtc::scoped_ptr<LappedTransform> lapped_transform_; 128 rtc::scoped_ptr<LappedTransform> lapped_transform_;
129 float window_[kFftSize]; 129 float window_[kFftSize];
130 130
131 // Parameters exposed to the user. 131 // Parameters exposed to the user.
132 const int num_input_channels_; 132 const int num_input_channels_;
133 int sample_rate_hz_; 133 int sample_rate_hz_;
134 134
135 const std::vector<Point> array_geometry_; 135 const std::vector<Point> array_geometry_;
136 // The normal direction of the array if it has one and it is in the xy-plane. 136 // The normal direction of the array if it has one and it is in the xy-plane.
137 const rtc::Maybe<Point> array_normal_; 137 const rtc::Optional<Point> array_normal_;
138 138
139 // Minimum spacing between microphone pairs. 139 // Minimum spacing between microphone pairs.
140 const float min_mic_spacing_; 140 const float min_mic_spacing_;
141 141
142 // Calculated based on user-input and constants in the .cc file. 142 // Calculated based on user-input and constants in the .cc file.
143 size_t low_mean_start_bin_; 143 size_t low_mean_start_bin_;
144 size_t low_mean_end_bin_; 144 size_t low_mean_end_bin_;
145 size_t high_mean_start_bin_; 145 size_t high_mean_start_bin_;
146 size_t high_mean_end_bin_; 146 size_t high_mean_end_bin_;
147 147
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Number of blocks after which the data is considered interference if the 191 // Number of blocks after which the data is considered interference if the
192 // mask does not pass |kMaskSignalThreshold|. 192 // mask does not pass |kMaskSignalThreshold|.
193 size_t hold_target_blocks_; 193 size_t hold_target_blocks_;
194 // Number of blocks since the last mask that passed |kMaskSignalThreshold|. 194 // Number of blocks since the last mask that passed |kMaskSignalThreshold|.
195 size_t interference_blocks_count_; 195 size_t interference_blocks_count_;
196 }; 196 };
197 197
198 } // namespace webrtc 198 } // namespace webrtc
199 199
200 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_ 200 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_NONLINEAR_BEAMFORMER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/beamformer/array_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698