| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 * Specifies the interface for the AEC core. | 12 * Specifies the interface for the AEC core. |
| 13 */ | 13 */ |
| 14 | 14 |
| 15 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ | 15 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ |
| 16 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ | 16 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ |
| 17 | 17 |
| 18 #include <stddef.h> | 18 #include <stddef.h> |
| 19 | 19 |
| 20 #include "webrtc/typedefs.h" | 20 #include "webrtc/typedefs.h" |
| 21 | 21 |
| 22 namespace webrtc { |
| 23 |
| 22 #define FRAME_LEN 80 | 24 #define FRAME_LEN 80 |
| 23 #define PART_LEN 64 // Length of partition | 25 #define PART_LEN 64 // Length of partition |
| 24 #define PART_LEN1 (PART_LEN + 1) // Unique fft coefficients | 26 #define PART_LEN1 (PART_LEN + 1) // Unique fft coefficients |
| 25 #define PART_LEN2 (PART_LEN * 2) // Length of partition * 2 | 27 #define PART_LEN2 (PART_LEN * 2) // Length of partition * 2 |
| 26 #define NUM_HIGH_BANDS_MAX 2 // Max number of high bands | 28 #define NUM_HIGH_BANDS_MAX 2 // Max number of high bands |
| 27 | 29 |
| 28 typedef float complex_t[2]; | 30 typedef float complex_t[2]; |
| 29 // For performance reasons, some arrays of complex numbers are replaced by twice | 31 // For performance reasons, some arrays of complex numbers are replaced by twice |
| 30 // as long arrays of float, all the real parts followed by all the imaginary | 32 // as long arrays of float, all the real parts followed by all the imaginary |
| 31 // ones (complex_t[SIZE] -> float[2][SIZE]). This allows SIMD optimizations and | 33 // ones (complex_t[SIZE] -> float[2][SIZE]). This allows SIMD optimizations and |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 127 |
| 126 // Returns the current |system_delay|, i.e., the buffered difference between | 128 // Returns the current |system_delay|, i.e., the buffered difference between |
| 127 // far-end and near-end. | 129 // far-end and near-end. |
| 128 int WebRtcAec_system_delay(AecCore* self); | 130 int WebRtcAec_system_delay(AecCore* self); |
| 129 | 131 |
| 130 // Sets the |system_delay| to |value|. Note that if the value is changed | 132 // Sets the |system_delay| to |value|. Note that if the value is changed |
| 131 // improperly, there can be a performance regression. So it should be used with | 133 // improperly, there can be a performance regression. So it should be used with |
| 132 // care. | 134 // care. |
| 133 void WebRtcAec_SetSystemDelay(AecCore* self, int delay); | 135 void WebRtcAec_SetSystemDelay(AecCore* self, int delay); |
| 134 | 136 |
| 137 } // namespace webrtc |
| 138 |
| 135 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ | 139 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ |
| OLD | NEW |