OLD | NEW |
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/base/array_view.h" |
| 27 #include "webrtc/base/checks.h" |
26 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" | 28 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" |
27 #include "webrtc/rtc_base/array_view.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) {} |
38 | 38 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |