| 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 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 float max; | 44 float max; |
| 45 float sum; | 45 float sum; |
| 46 float hisum; | 46 float hisum; |
| 47 float himean; | 47 float himean; |
| 48 int counter; | 48 int counter; |
| 49 int hicounter; | 49 int hicounter; |
| 50 } Stats; | 50 } Stats; |
| 51 | 51 |
| 52 typedef struct AecCore AecCore; | 52 typedef struct AecCore AecCore; |
| 53 | 53 |
| 54 int WebRtcAec_CreateAec(AecCore** aec); | 54 AecCore* WebRtcAec_CreateAec(); // Returns NULL on error. |
| 55 void WebRtcAec_FreeAec(AecCore* aec); | 55 void WebRtcAec_FreeAec(AecCore* aec); |
| 56 int WebRtcAec_InitAec(AecCore* aec, int sampFreq); | 56 int WebRtcAec_InitAec(AecCore* aec, int sampFreq); |
| 57 void WebRtcAec_InitAec_SSE2(void); | 57 void WebRtcAec_InitAec_SSE2(void); |
| 58 #if defined(MIPS_FPU_LE) | 58 #if defined(MIPS_FPU_LE) |
| 59 void WebRtcAec_InitAec_mips(void); | 59 void WebRtcAec_InitAec_mips(void); |
| 60 #endif | 60 #endif |
| 61 #if defined(WEBRTC_DETECT_NEON) || defined(WEBRTC_HAS_NEON) | 61 #if defined(WEBRTC_DETECT_NEON) || defined(WEBRTC_HAS_NEON) |
| 62 void WebRtcAec_InitAec_neon(void); | 62 void WebRtcAec_InitAec_neon(void); |
| 63 #endif | 63 #endif |
| 64 | 64 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // Returns the current |system_delay|, i.e., the buffered difference between | 117 // Returns the current |system_delay|, i.e., the buffered difference between |
| 118 // far-end and near-end. | 118 // far-end and near-end. |
| 119 int WebRtcAec_system_delay(AecCore* self); | 119 int WebRtcAec_system_delay(AecCore* self); |
| 120 | 120 |
| 121 // Sets the |system_delay| to |value|. Note that if the value is changed | 121 // Sets the |system_delay| to |value|. Note that if the value is changed |
| 122 // improperly, there can be a performance regression. So it should be used with | 122 // improperly, there can be a performance regression. So it should be used with |
| 123 // care. | 123 // care. |
| 124 void WebRtcAec_SetSystemDelay(AecCore* self, int delay); | 124 void WebRtcAec_SetSystemDelay(AecCore* self, int delay); |
| 125 | 125 |
| 126 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ | 126 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_H_ |
| OLD | NEW |