| 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 /* | 11 /* |
| 12 * The core AEC algorithm, which is presented with time-aligned signals. | 12 * The core AEC algorithm, which is presented with time-aligned signals. |
| 13 */ | 13 */ |
| 14 | 14 |
| 15 #include "webrtc/modules/audio_processing/aec/aec_core.h" | 15 #include "webrtc/modules/audio_processing/aec/aec_core.h" |
| 16 | 16 |
| 17 #include <math.h> | 17 #include <math.h> |
| 18 | 18 |
| 19 extern "C" { | 19 extern "C" { |
| 20 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 20 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
| 21 } | 21 } |
| 22 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h" | 22 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h" |
| 23 extern "C" { | 23 extern "C" { |
| 24 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" | 24 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace webrtc { |
| 28 |
| 27 extern const float WebRtcAec_weightCurve[65]; | 29 extern const float WebRtcAec_weightCurve[65]; |
| 28 extern const float WebRtcAec_overDriveCurve[65]; | 30 extern const float WebRtcAec_overDriveCurve[65]; |
| 29 | 31 |
| 30 void WebRtcAec_ComfortNoise_mips(AecCore* aec, | 32 void WebRtcAec_ComfortNoise_mips(AecCore* aec, |
| 31 float efw[2][PART_LEN1], | 33 float efw[2][PART_LEN1], |
| 32 float comfortNoiseHband[2][PART_LEN1], | 34 float comfortNoiseHband[2][PART_LEN1], |
| 33 const float* noisePow, | 35 const float* noisePow, |
| 34 const float* lambda) { | 36 const float* lambda) { |
| 35 int i, num; | 37 int i, num; |
| 36 float rand[PART_LEN]; | 38 float rand[PART_LEN]; |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 : "memory"); | 776 : "memory"); |
| 775 } | 777 } |
| 776 | 778 |
| 777 void WebRtcAec_InitAec_mips(void) { | 779 void WebRtcAec_InitAec_mips(void) { |
| 778 WebRtcAec_FilterFar = WebRtcAec_FilterFar_mips; | 780 WebRtcAec_FilterFar = WebRtcAec_FilterFar_mips; |
| 779 WebRtcAec_FilterAdaptation = WebRtcAec_FilterAdaptation_mips; | 781 WebRtcAec_FilterAdaptation = WebRtcAec_FilterAdaptation_mips; |
| 780 WebRtcAec_ScaleErrorSignal = WebRtcAec_ScaleErrorSignal_mips; | 782 WebRtcAec_ScaleErrorSignal = WebRtcAec_ScaleErrorSignal_mips; |
| 781 WebRtcAec_ComfortNoise = WebRtcAec_ComfortNoise_mips; | 783 WebRtcAec_ComfortNoise = WebRtcAec_ComfortNoise_mips; |
| 782 WebRtcAec_OverdriveAndSuppress = WebRtcAec_OverdriveAndSuppress_mips; | 784 WebRtcAec_OverdriveAndSuppress = WebRtcAec_OverdriveAndSuppress_mips; |
| 783 } | 785 } |
| 786 } // namespace webrtc |
| OLD | NEW |