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

Side by Side Diff: webrtc/modules/audio_processing/aec/aec_core_sse2.cc

Issue 1766663002: Added namespaces in the newly C++ified AEC code (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase with latest master Created 4 years, 9 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) 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" { 24 extern "C" {
25 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" 25 #include "webrtc/modules/audio_processing/aec/aec_rdft.h"
26 } 26 }
27 27
28 namespace webrtc {
29
28 __inline static float MulRe(float aRe, float aIm, float bRe, float bIm) { 30 __inline static float MulRe(float aRe, float aIm, float bRe, float bIm) {
29 return aRe * bRe - aIm * bIm; 31 return aRe * bRe - aIm * bIm;
30 } 32 }
31 33
32 __inline static float MulIm(float aRe, float aIm, float bRe, float bIm) { 34 __inline static float MulIm(float aRe, float aIm, float bRe, float bIm) {
33 return aRe * bIm + aIm * bRe; 35 return aRe * bIm + aIm * bRe;
34 } 36 }
35 37
36 static void FilterFarSSE2(int num_partitions, 38 static void FilterFarSSE2(int num_partitions,
37 int x_fft_buf_block_pos, 39 int x_fft_buf_block_pos,
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 void WebRtcAec_InitAec_SSE2(void) { 737 void WebRtcAec_InitAec_SSE2(void) {
736 WebRtcAec_FilterFar = FilterFarSSE2; 738 WebRtcAec_FilterFar = FilterFarSSE2;
737 WebRtcAec_ScaleErrorSignal = ScaleErrorSignalSSE2; 739 WebRtcAec_ScaleErrorSignal = ScaleErrorSignalSSE2;
738 WebRtcAec_FilterAdaptation = FilterAdaptationSSE2; 740 WebRtcAec_FilterAdaptation = FilterAdaptationSSE2;
739 WebRtcAec_OverdriveAndSuppress = OverdriveAndSuppressSSE2; 741 WebRtcAec_OverdriveAndSuppress = OverdriveAndSuppressSSE2;
740 WebRtcAec_SubbandCoherence = SubbandCoherenceSSE2; 742 WebRtcAec_SubbandCoherence = SubbandCoherenceSSE2;
741 WebRtcAec_StoreAsComplex = StoreAsComplexSSE2; 743 WebRtcAec_StoreAsComplex = StoreAsComplexSSE2;
742 WebRtcAec_PartitionDelay = PartitionDelaySSE2; 744 WebRtcAec_PartitionDelay = PartitionDelaySSE2;
743 WebRtcAec_WindowData = WindowDataSSE2; 745 WebRtcAec_WindowData = WindowDataSSE2;
744 } 746 }
747 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec/aec_core_neon.cc ('k') | webrtc/modules/audio_processing/aec/aec_resampler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698