Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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_AEC_AEC_COMMON_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_COMMON_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_COMMON_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_COMMON_H_ |
| 13 | 13 |
| 14 #include "webrtc/typedefs.h" | 14 #include "webrtc/typedefs.h" |
| 15 | 15 |
| 16 #ifdef _MSC_VER /* visual c++ */ | 16 #ifdef _MSC_VER /* visual c++ */ |
| 17 #define ALIGN16_BEG __declspec(align(16)) | 17 #define ALIGN16_BEG __declspec(align(16)) |
| 18 #define ALIGN16_END | 18 #define ALIGN16_END |
| 19 #else /* gcc or icc */ | 19 #else /* gcc or icc */ |
| 20 #define ALIGN16_BEG | 20 #define ALIGN16_BEG |
| 21 #define ALIGN16_END __attribute__((aligned(16))) | 21 #define ALIGN16_END __attribute__((aligned(16))) |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 #ifdef __cplusplus | |
|
the sun
2016/03/04 12:49:46
So we're still using this from C code? Does it mak
peah-webrtc
2016/03/04 13:11:02
That is a very good point. It was discussed, and t
| |
| 25 namespace webrtc { | |
| 26 #endif | |
| 27 | |
| 24 extern ALIGN16_BEG const float ALIGN16_END WebRtcAec_sqrtHanning[65]; | 28 extern ALIGN16_BEG const float ALIGN16_END WebRtcAec_sqrtHanning[65]; |
| 25 extern ALIGN16_BEG const float ALIGN16_END WebRtcAec_weightCurve[65]; | 29 extern ALIGN16_BEG const float ALIGN16_END WebRtcAec_weightCurve[65]; |
| 26 extern ALIGN16_BEG const float ALIGN16_END WebRtcAec_overDriveCurve[65]; | 30 extern ALIGN16_BEG const float ALIGN16_END WebRtcAec_overDriveCurve[65]; |
| 27 extern const float WebRtcAec_kExtendedSmoothingCoefficients[2][2]; | 31 extern const float WebRtcAec_kExtendedSmoothingCoefficients[2][2]; |
| 28 extern const float WebRtcAec_kNormalSmoothingCoefficients[2][2]; | 32 extern const float WebRtcAec_kNormalSmoothingCoefficients[2][2]; |
| 29 extern const float WebRtcAec_kMinFarendPSD; | 33 extern const float WebRtcAec_kMinFarendPSD; |
| 30 | 34 |
| 35 #ifdef __cplusplus | |
| 36 } // namespace webrtc | |
| 37 #endif | |
| 38 | |
| 31 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_COMMON_H_ | 39 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_COMMON_H_ |
| OLD | NEW |