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

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

Issue 2969653002: Update includes for webrtc/{base => rtc_base} rename (1/3) (Closed)
Patch Set: Rebased onto 89c4a7e57d524b13fbe0c823a83a4c10c2e63bd0 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/decimator_by_4.h" 10 #include "webrtc/modules/audio_processing/aec3/decimator_by_4.h"
11 11
12 #include "webrtc/base/checks.h" 12 #include "webrtc/rtc_base/checks.h"
13 13
14 namespace webrtc { 14 namespace webrtc {
15 namespace { 15 namespace {
16 16
17 // [B,A] = butter(2,1500/16000) which are the same as [B,A] = 17 // [B,A] = butter(2,1500/16000) which are the same as [B,A] =
18 // butter(2,750/8000). 18 // butter(2,750/8000).
19 const CascadedBiQuadFilter::BiQuadCoefficients kLowPassFilterCoefficients = { 19 const CascadedBiQuadFilter::BiQuadCoefficients kLowPassFilterCoefficients = {
20 {0.0179f, 0.0357f, 0.0179f}, 20 {0.0179f, 0.0357f, 0.0179f},
21 {-1.5879f, 0.6594f}}; 21 {-1.5879f, 0.6594f}};
22 22
(...skipping 12 matching lines...) Expand all
35 low_pass_filter_.Process(in, x); 35 low_pass_filter_.Process(in, x);
36 36
37 // Downsample the signal. 37 // Downsample the signal.
38 for (size_t j = 0, k = 0; j < out.size(); ++j, k += 4) { 38 for (size_t j = 0, k = 0; j < out.size(); ++j, k += 4) {
39 RTC_DCHECK_GT(kBlockSize, k); 39 RTC_DCHECK_GT(kBlockSize, k);
40 out[j] = x[k]; 40 out[j] = x[k];
41 } 41 }
42 } 42 }
43 43
44 } // namespace webrtc 44 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec3/decimator_by_4.h ('k') | webrtc/modules/audio_processing/aec3/echo_canceller3.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698