| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |