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

Side by Side Diff: webrtc/modules/audio_processing/agc/agc_manager_direct.cc

Issue 2964773002: Revert "Update includes for webrtc/{base => rtc_base} rename (1/3)" (Closed)
Patch Set: Created 3 years, 5 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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
11 #include "webrtc/modules/audio_processing/agc/agc_manager_direct.h" 11 #include "webrtc/modules/audio_processing/agc/agc_manager_direct.h"
12 12
13 #include <cmath> 13 #include <cmath>
14 14
15 #ifdef WEBRTC_AGC_DEBUG_DUMP 15 #ifdef WEBRTC_AGC_DEBUG_DUMP
16 #include <cstdio> 16 #include <cstdio>
17 #endif 17 #endif
18 18
19 #include "webrtc/base/checks.h"
20 #include "webrtc/base/logging.h"
21 #include "webrtc/base/safe_minmax.h"
19 #include "webrtc/modules/audio_processing/agc/gain_map_internal.h" 22 #include "webrtc/modules/audio_processing/agc/gain_map_internal.h"
20 #include "webrtc/modules/audio_processing/gain_control_impl.h" 23 #include "webrtc/modules/audio_processing/gain_control_impl.h"
21 #include "webrtc/modules/include/module_common_types.h" 24 #include "webrtc/modules/include/module_common_types.h"
22 #include "webrtc/rtc_base/checks.h"
23 #include "webrtc/rtc_base/logging.h"
24 #include "webrtc/rtc_base/safe_minmax.h"
25 #include "webrtc/system_wrappers/include/metrics.h" 25 #include "webrtc/system_wrappers/include/metrics.h"
26 26
27 namespace webrtc { 27 namespace webrtc {
28 28
29 namespace { 29 namespace {
30 30
31 // Amount the microphone level is lowered with every clipping event. 31 // Amount the microphone level is lowered with every clipping event.
32 const int kClippedLevelStep = 15; 32 const int kClippedLevelStep = 15;
33 // Proportion of clipped samples required to declare a clipping event. 33 // Proportion of clipped samples required to declare a clipping event.
34 const float kClippedRatioThreshold = 0.1f; 34 const float kClippedRatioThreshold = 0.1f;
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 compression_ = new_compression; 448 compression_ = new_compression;
449 compression_accumulator_ = new_compression; 449 compression_accumulator_ = new_compression;
450 if (gctrl_->set_compression_gain_db(compression_) != 0) { 450 if (gctrl_->set_compression_gain_db(compression_) != 0) {
451 LOG(LS_ERROR) << "set_compression_gain_db(" << compression_ 451 LOG(LS_ERROR) << "set_compression_gain_db(" << compression_
452 << ") failed."; 452 << ") failed.";
453 } 453 }
454 } 454 }
455 } 455 }
456 456
457 } // namespace webrtc 457 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/agc/agc_manager_direct.h ('k') | webrtc/modules/audio_processing/agc/loudness_histogram.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698