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

Side by Side Diff: webrtc/modules/audio_processing/aec3/echo_path_delay_estimator.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) 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 #include "webrtc/modules/audio_processing/aec3/echo_path_delay_estimator.h" 10 #include "webrtc/modules/audio_processing/aec3/echo_path_delay_estimator.h"
11 11
12 #include <algorithm> 12 #include <algorithm>
13 #include <array> 13 #include <array>
14 14
15 #include "webrtc/base/checks.h"
15 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" 16 #include "webrtc/modules/audio_processing/aec3/aec3_common.h"
16 #include "webrtc/modules/audio_processing/include/audio_processing.h" 17 #include "webrtc/modules/audio_processing/include/audio_processing.h"
17 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" 18 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h"
18 #include "webrtc/rtc_base/checks.h"
19 19
20 namespace webrtc { 20 namespace webrtc {
21 21
22 namespace { 22 namespace {
23 23
24 constexpr int kDownSamplingFactor = 4; 24 constexpr int kDownSamplingFactor = 4;
25 } // namespace 25 } // namespace
26 26
27 EchoPathDelayEstimator::EchoPathDelayEstimator(ApmDataDumper* data_dumper) 27 EchoPathDelayEstimator::EchoPathDelayEstimator(ApmDataDumper* data_dumper)
28 : data_dumper_(data_dumper), 28 : data_dumper_(data_dumper),
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // Return the detected delay in samples as the aggregated matched filter lag 67 // Return the detected delay in samples as the aggregated matched filter lag
68 // compensated by the down sampling factor for the signal being correlated. 68 // compensated by the down sampling factor for the signal being correlated.
69 return aggregated_matched_filter_lag 69 return aggregated_matched_filter_lag
70 ? rtc::Optional<size_t>(*aggregated_matched_filter_lag * 70 ? rtc::Optional<size_t>(*aggregated_matched_filter_lag *
71 kDownSamplingFactor) 71 kDownSamplingFactor)
72 : rtc::Optional<size_t>(); 72 : rtc::Optional<size_t>();
73 } 73 }
74 74
75 } // namespace webrtc 75 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698