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

Side by Side Diff: webrtc/modules/audio_processing/aec3/echo_remover_metrics.cc

Issue 2782423003: Major updates to the echo removal functionality in AEC3 (Closed)
Patch Set: Added initialization of uninitialized vector Created 3 years, 8 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) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 "WebRTC.Audio.EchoCanceller.SuppressorGainBand1.Min", 215 "WebRTC.Audio.EchoCanceller.SuppressorGainBand1.Min",
216 aec3::TransformDbMetricForReporting( 216 aec3::TransformDbMetricForReporting(
217 true, 0.f, 59.f, 0.f, 1.f, suppressor_gain_[1].floor_value), 217 true, 0.f, 59.f, 0.f, 1.f, suppressor_gain_[1].floor_value),
218 0, 59, 30); 218 0, 59, 30);
219 break; 219 break;
220 case kMetricsCollectionBlocks + 9: 220 case kMetricsCollectionBlocks + 9:
221 RTC_HISTOGRAM_BOOLEAN( 221 RTC_HISTOGRAM_BOOLEAN(
222 "WebRTC.Audio.EchoCanceller.UsableLinearEstimate", 222 "WebRTC.Audio.EchoCanceller.UsableLinearEstimate",
223 static_cast<int>(aec_state.UsableLinearEstimate() ? 1 : 0)); 223 static_cast<int>(aec_state.UsableLinearEstimate() ? 1 : 0));
224 RTC_HISTOGRAM_BOOLEAN( 224 RTC_HISTOGRAM_BOOLEAN(
225 "WebRTC.Audio.EchoCanceller.ModelBasedAecFeasible",
226 static_cast<int>(aec_state.ModelBasedAecFeasible() ? 1 : 0));
227 RTC_HISTOGRAM_BOOLEAN(
228 "WebRTC.Audio.EchoCanceller.ActiveRender", 225 "WebRTC.Audio.EchoCanceller.ActiveRender",
229 static_cast<int>( 226 static_cast<int>(
230 active_render_count_ > kMetricsCollectionBlocksBy2 ? 1 : 0)); 227 active_render_count_ > kMetricsCollectionBlocksBy2 ? 1 : 0));
231 RTC_HISTOGRAM_COUNTS_LINEAR( 228 RTC_HISTOGRAM_COUNTS_LINEAR(
232 "WebRTC.Audio.EchoCanceller.FilterDelay", 229 "WebRTC.Audio.EchoCanceller.FilterDelay",
233 aec_state.FilterDelay() ? *aec_state.FilterDelay() + 1 : 0, 0, 30, 230 aec_state.FilterDelay() ? *aec_state.FilterDelay() + 1 : 0, 0, 30,
234 31); 231 31);
235 RTC_HISTOGRAM_BOOLEAN("WebRTC.Audio.EchoCanceller.CaptureSaturation", 232 RTC_HISTOGRAM_BOOLEAN("WebRTC.Audio.EchoCanceller.CaptureSaturation",
236 static_cast<int>(saturated_capture_ ? 1 : 0)); 233 static_cast<int>(saturated_capture_ ? 1 : 0));
237 metrics_reported_ = true; 234 metrics_reported_ = true;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 float new_value = 10.f * log10(value * scaling + 1e-10f) + offset; 272 float new_value = 10.f * log10(value * scaling + 1e-10f) + offset;
276 if (negate) { 273 if (negate) {
277 new_value = -new_value; 274 new_value = -new_value;
278 } 275 }
279 return static_cast<int>(std::max(min_value, std::min(max_value, new_value))); 276 return static_cast<int>(std::max(min_value, std::min(max_value, new_value)));
280 } 277 }
281 278
282 } // namespace aec3 279 } // namespace aec3
283 280
284 } // namespace webrtc 281 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec3/echo_remover.cc ('k') | webrtc/modules/audio_processing/aec3/main_filter_update_gain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698