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

Side by Side Diff: webrtc/modules/audio_processing/aec3/vector_math.h

Issue 3007763002: Move array_view.h to webrtc/api/ (Closed)
Patch Set: rebase Created 3 years, 3 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 10
11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_VECTOR_MATH_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_VECTOR_MATH_H_
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_VECTOR_MATH_H_ 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_VECTOR_MATH_H_
13 13
14 #include "webrtc/typedefs.h" 14 #include "webrtc/typedefs.h"
15 #if defined(WEBRTC_HAS_NEON) 15 #if defined(WEBRTC_HAS_NEON)
16 #include <arm_neon.h> 16 #include <arm_neon.h>
17 #endif 17 #endif
18 #if defined(WEBRTC_ARCH_X86_FAMILY) 18 #if defined(WEBRTC_ARCH_X86_FAMILY)
19 #include <emmintrin.h> 19 #include <emmintrin.h>
20 #endif 20 #endif
21 #include <math.h> 21 #include <math.h>
22 #include <algorithm> 22 #include <algorithm>
23 #include <array> 23 #include <array>
24 #include <functional> 24 #include <functional>
25 25
26 #include "webrtc/api/array_view.h"
26 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" 27 #include "webrtc/modules/audio_processing/aec3/aec3_common.h"
27 #include "webrtc/rtc_base/array_view.h"
28 #include "webrtc/rtc_base/checks.h" 28 #include "webrtc/rtc_base/checks.h"
29 29
30 namespace webrtc { 30 namespace webrtc {
31 namespace aec3 { 31 namespace aec3 {
32 32
33 // Provides optimizations for mathematical operations based on vectors. 33 // Provides optimizations for mathematical operations based on vectors.
34 class VectorMath { 34 class VectorMath {
35 public: 35 public:
36 explicit VectorMath(Aec3Optimization optimization) 36 explicit VectorMath(Aec3Optimization optimization)
37 : optimization_(optimization) {} 37 : optimization_(optimization) {}
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 private: 204 private:
205 Aec3Optimization optimization_; 205 Aec3Optimization optimization_;
206 }; 206 };
207 207
208 } // namespace aec3 208 } // namespace aec3
209 209
210 } // namespace webrtc 210 } // namespace webrtc
211 211
212 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_VECTOR_MATH_H_ 212 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_VECTOR_MATH_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec3/subtractor.cc ('k') | webrtc/modules/audio_processing/agc2/digital_gain_applier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698