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

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

Issue 2862573002: Reland of Added ARM Neon SIMD optimizations for AEC3 (Closed)
Patch Set: Created 3 years, 7 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) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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_AEC3_COMMON_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_AEC3_COMMON_H_
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_AEC3_COMMON_H_ 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_AEC3_COMMON_H_
13 13
14 #include <stddef.h> 14 #include <stddef.h>
15 #include "webrtc/typedefs.h" 15 #include "webrtc/typedefs.h"
16 16
17 namespace webrtc { 17 namespace webrtc {
18 18
19 #ifdef _MSC_VER /* visual c++ */ 19 #ifdef _MSC_VER /* visual c++ */
20 #define ALIGN16_BEG __declspec(align(16)) 20 #define ALIGN16_BEG __declspec(align(16))
21 #define ALIGN16_END 21 #define ALIGN16_END
22 #else /* gcc or icc */ 22 #else /* gcc or icc */
23 #define ALIGN16_BEG 23 #define ALIGN16_BEG
24 #define ALIGN16_END __attribute__((aligned(16))) 24 #define ALIGN16_END __attribute__((aligned(16)))
25 #endif 25 #endif
26 26
27 enum class Aec3Optimization { kNone, kSse2 }; 27 enum class Aec3Optimization { kNone, kSse2, kNeon };
28 28
29 constexpr int kNumBlocksPerSecond = 250; 29 constexpr int kNumBlocksPerSecond = 250;
30 30
31 constexpr int kMetricsReportingIntervalBlocks = 10 * kNumBlocksPerSecond; 31 constexpr int kMetricsReportingIntervalBlocks = 10 * kNumBlocksPerSecond;
32 constexpr int kMetricsComputationBlocks = 9; 32 constexpr int kMetricsComputationBlocks = 9;
33 constexpr int kMetricsCollectionBlocks = 33 constexpr int kMetricsCollectionBlocks =
34 kMetricsReportingIntervalBlocks - kMetricsComputationBlocks; 34 kMetricsReportingIntervalBlocks - kMetricsComputationBlocks;
35 35
36 constexpr int kAdaptiveFilterLength = 12; 36 constexpr int kAdaptiveFilterLength = 12;
37 constexpr int kResidualEchoPowerRenderWindowSize = 30; 37 constexpr int kResidualEchoPowerRenderWindowSize = 30;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 static_assert(ValidFullBandRate(32000), 105 static_assert(ValidFullBandRate(32000),
106 "Test that 32 kHz is a valid sample rate"); 106 "Test that 32 kHz is a valid sample rate");
107 static_assert(ValidFullBandRate(48000), 107 static_assert(ValidFullBandRate(48000),
108 "Test that 48 kHz is a valid sample rate"); 108 "Test that 48 kHz is a valid sample rate");
109 static_assert(!ValidFullBandRate(8001), 109 static_assert(!ValidFullBandRate(8001),
110 "Test that 8001 Hz is not a valid sample rate"); 110 "Test that 8001 Hz is not a valid sample rate");
111 111
112 } // namespace webrtc 112 } // namespace webrtc
113 113
114 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_AEC3_COMMON_H_ 114 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_AEC3_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698