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

Side by Side Diff: webrtc/common_audio/resampler/sinc_resampler.cc

Issue 2969623003: Update includes for webrtc/{base => rtc_base} rename (2/3) (Closed)
Patch Set: Rebased onto 224e65939af87443addfc5bb500fbf434728bd1c and restored sorting in clock.cc 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
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // MSVC++ requires this to be set before any other includes to get M_PI. 85 // MSVC++ requires this to be set before any other includes to get M_PI.
86 #define _USE_MATH_DEFINES 86 #define _USE_MATH_DEFINES
87 87
88 #include "webrtc/common_audio/resampler/sinc_resampler.h" 88 #include "webrtc/common_audio/resampler/sinc_resampler.h"
89 89
90 #include <math.h> 90 #include <math.h>
91 #include <string.h> 91 #include <string.h>
92 92
93 #include <limits> 93 #include <limits>
94 94
95 #include "webrtc/base/checks.h" 95 #include "webrtc/rtc_base/checks.h"
96 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" 96 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h"
97 #include "webrtc/typedefs.h" 97 #include "webrtc/typedefs.h"
98 98
99 namespace webrtc { 99 namespace webrtc {
100 100
101 namespace { 101 namespace {
102 102
103 double SincScaleFactor(double io_ratio) { 103 double SincScaleFactor(double io_ratio) {
104 // |sinc_scale_factor| is basically the normalized cutoff frequency of the 104 // |sinc_scale_factor| is basically the normalized cutoff frequency of the
105 // low-pass filter. 105 // low-pass filter.
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 sum1 += *input_ptr * *k1++; 365 sum1 += *input_ptr * *k1++;
366 sum2 += *input_ptr++ * *k2++; 366 sum2 += *input_ptr++ * *k2++;
367 } 367 }
368 368
369 // Linearly interpolate the two "convolutions". 369 // Linearly interpolate the two "convolutions".
370 return static_cast<float>((1.0 - kernel_interpolation_factor) * sum1 + 370 return static_cast<float>((1.0 - kernel_interpolation_factor) * sum1 +
371 kernel_interpolation_factor * sum2); 371 kernel_interpolation_factor * sum2);
372 } 372 }
373 373
374 } // namespace webrtc 374 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/common_audio/resampler/sinc_resampler.h ('k') | webrtc/common_audio/resampler/sinc_resampler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698