OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 /* | 11 /* |
12 * The core AEC algorithm, SSE2 version of speed-critical functions. | 12 * The core AEC algorithm, SSE2 version of speed-critical functions. |
13 */ | 13 */ |
14 | 14 |
15 #include <emmintrin.h> | 15 #include <emmintrin.h> |
16 #include <math.h> | 16 #include <math.h> |
17 #include <string.h> // memset | 17 #include <string.h> // memset |
18 | 18 |
19 extern "C" { | 19 extern "C" { |
20 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 20 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
21 } | 21 } |
22 #include "webrtc/modules/audio_processing/aec/aec_common.h" | 22 #include "webrtc/modules/audio_processing/aec/aec_common.h" |
23 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h" | 23 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h" |
24 extern "C" { | |
25 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" | 24 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" |
26 } | |
27 | 25 |
28 namespace webrtc { | 26 namespace webrtc { |
29 | 27 |
30 __inline static float MulRe(float aRe, float aIm, float bRe, float bIm) { | 28 __inline static float MulRe(float aRe, float aIm, float bRe, float bIm) { |
31 return aRe * bRe - aIm * bIm; | 29 return aRe * bRe - aIm * bIm; |
32 } | 30 } |
33 | 31 |
34 __inline static float MulIm(float aRe, float aIm, float bRe, float bIm) { | 32 __inline static float MulIm(float aRe, float aIm, float bRe, float bIm) { |
35 return aRe * bIm + aIm * bRe; | 33 return aRe * bIm + aIm * bRe; |
36 } | 34 } |
(...skipping 701 matching lines...) Loading... |
738 WebRtcAec_FilterFar = FilterFarSSE2; | 736 WebRtcAec_FilterFar = FilterFarSSE2; |
739 WebRtcAec_ScaleErrorSignal = ScaleErrorSignalSSE2; | 737 WebRtcAec_ScaleErrorSignal = ScaleErrorSignalSSE2; |
740 WebRtcAec_FilterAdaptation = FilterAdaptationSSE2; | 738 WebRtcAec_FilterAdaptation = FilterAdaptationSSE2; |
741 WebRtcAec_OverdriveAndSuppress = OverdriveAndSuppressSSE2; | 739 WebRtcAec_OverdriveAndSuppress = OverdriveAndSuppressSSE2; |
742 WebRtcAec_SubbandCoherence = SubbandCoherenceSSE2; | 740 WebRtcAec_SubbandCoherence = SubbandCoherenceSSE2; |
743 WebRtcAec_StoreAsComplex = StoreAsComplexSSE2; | 741 WebRtcAec_StoreAsComplex = StoreAsComplexSSE2; |
744 WebRtcAec_PartitionDelay = PartitionDelaySSE2; | 742 WebRtcAec_PartitionDelay = PartitionDelaySSE2; |
745 WebRtcAec_WindowData = WindowDataSSE2; | 743 WebRtcAec_WindowData = WindowDataSSE2; |
746 } | 744 } |
747 } // namespace webrtc | 745 } // namespace webrtc |
OLD | NEW |