| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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_CORE_INTERNAL_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_INTERNAL_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_INTERNAL_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_INTERNAL_H_ |
| 13 | 13 |
| 14 #include "webrtc/common_audio/ring_buffer.h" | 14 #include "webrtc/common_audio/ring_buffer.h" |
| 15 #include "webrtc/common_audio/wav_file.h" | 15 #include "webrtc/common_audio/wav_file.h" |
| 16 #include "webrtc/modules/audio_processing/aec/aec_common.h" | 16 #include "webrtc/modules/audio_processing/aec/aec_common.h" |
| 17 #include "webrtc/modules/audio_processing/aec/aec_core.h" | 17 #include "webrtc/modules/audio_processing/aec/aec_core.h" |
| 18 #include "webrtc/typedefs.h" | 18 #include "webrtc/typedefs.h" |
| 19 | 19 |
| 20 // Number of partitions for the extended filter mode. The first one is an enum | 20 // Number of partitions for the extended filter mode. The first one is an enum |
| 21 // to be used in array declarations, as it represents the maximum filter length. | 21 // to be used in array declarations, as it represents the maximum filter length. |
| 22 enum { | 22 enum { kExtendedNumPartitions = 32 }; |
| 23 kExtendedNumPartitions = 32 | |
| 24 }; | |
| 25 static const int kNormalNumPartitions = 12; | 23 static const int kNormalNumPartitions = 12; |
| 26 | 24 |
| 27 // Delay estimator constants, used for logging and delay compensation if | 25 // Delay estimator constants, used for logging and delay compensation if |
| 28 // if reported delays are disabled. | 26 // if reported delays are disabled. |
| 29 enum { | 27 enum { kLookaheadBlocks = 15 }; |
| 30 kLookaheadBlocks = 15 | |
| 31 }; | |
| 32 enum { | 28 enum { |
| 33 // 500 ms for 16 kHz which is equivalent with the limit of reported delays. | 29 // 500 ms for 16 kHz which is equivalent with the limit of reported delays. |
| 34 kHistorySizeBlocks = 125 | 30 kHistorySizeBlocks = 125 |
| 35 }; | 31 }; |
| 36 | 32 |
| 37 // Extended filter adaptation parameters. | 33 // Extended filter adaptation parameters. |
| 38 // TODO(ajm): No narrowband tuning yet. | 34 // TODO(ajm): No narrowband tuning yet. |
| 39 static const float kExtendedMu = 0.4f; | 35 static const float kExtendedMu = 0.4f; |
| 40 static const float kExtendedErrorThreshold = 1.0e-6f; | 36 static const float kExtendedErrorThreshold = 1.0e-6f; |
| 41 | 37 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 extern WebRtcAecPartitionDelay WebRtcAec_PartitionDelay; | 216 extern WebRtcAecPartitionDelay WebRtcAec_PartitionDelay; |
| 221 | 217 |
| 222 typedef void (*WebRtcAecStoreAsComplex)(const float* data, | 218 typedef void (*WebRtcAecStoreAsComplex)(const float* data, |
| 223 float data_complex[2][PART_LEN1]); | 219 float data_complex[2][PART_LEN1]); |
| 224 extern WebRtcAecStoreAsComplex WebRtcAec_StoreAsComplex; | 220 extern WebRtcAecStoreAsComplex WebRtcAec_StoreAsComplex; |
| 225 | 221 |
| 226 typedef void (*WebRtcAecWindowData)(float* x_windowed, const float* x); | 222 typedef void (*WebRtcAecWindowData)(float* x_windowed, const float* x); |
| 227 extern WebRtcAecWindowData WebRtcAec_WindowData; | 223 extern WebRtcAecWindowData WebRtcAec_WindowData; |
| 228 | 224 |
| 229 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_INTERNAL_H_ | 225 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_CORE_INTERNAL_H_ |
| OLD | NEW |