| 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 |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 "swc1 %[temp2], -4(%[p_efw0]) \n\t" | 702 "swc1 %[temp2], -4(%[p_efw0]) \n\t" |
| 703 "swc1 %[temp4], -4(%[p_efw1]) \n\t" | 703 "swc1 %[temp4], -4(%[p_efw1]) \n\t" |
| 704 : [temp1] "=&f" (temp1), [temp2] "=&f" (temp2), [temp3] "=&f" (temp3), | 704 : [temp1] "=&f" (temp1), [temp2] "=&f" (temp2), [temp3] "=&f" (temp3), |
| 705 [temp4] "=&f" (temp4), [p_efw0] "+r" (p_efw0), [p_efw1] "+r" (p_efw1), | 705 [temp4] "=&f" (temp4), [p_efw0] "+r" (p_efw0), [p_efw1] "+r" (p_efw1), |
| 706 [p_hNl] "+r" (p_hNl) | 706 [p_hNl] "+r" (p_hNl) |
| 707 : | 707 : |
| 708 : "memory"); | 708 : "memory"); |
| 709 } | 709 } |
| 710 } | 710 } |
| 711 | 711 |
| 712 void WebRtcAec_ScaleErrorSignal_mips(int extended_filter_enabled, | 712 void WebRtcAec_ScaleErrorSignal_mips(float mu, |
| 713 float normal_mu, | 713 float error_threshold, |
| 714 float normal_error_threshold, | |
| 715 float x_pow[PART_LEN1], | 714 float x_pow[PART_LEN1], |
| 716 float ef[2][PART_LEN1]) { | 715 float ef[2][PART_LEN1]) { |
| 717 const float mu = extended_filter_enabled ? kExtendedMu : normal_mu; | |
| 718 const float error_threshold = extended_filter_enabled | |
| 719 ? kExtendedErrorThreshold | |
| 720 : normal_error_threshold; | |
| 721 int len = (PART_LEN1); | 716 int len = (PART_LEN1); |
| 722 float* ef0 = ef[0]; | 717 float* ef0 = ef[0]; |
| 723 float* ef1 = ef[1]; | 718 float* ef1 = ef[1]; |
| 724 float fac1 = 1e-10f; | 719 float fac1 = 1e-10f; |
| 725 float err_th2 = error_threshold * error_threshold; | 720 float err_th2 = error_threshold * error_threshold; |
| 726 float f0, f1, f2; | 721 float f0, f1, f2; |
| 727 #if !defined(MIPS32_R2_LE) | 722 #if !defined(MIPS32_R2_LE) |
| 728 float f3; | 723 float f3; |
| 729 #endif | 724 #endif |
| 730 | 725 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 } | 772 } |
| 778 | 773 |
| 779 void WebRtcAec_InitAec_mips(void) { | 774 void WebRtcAec_InitAec_mips(void) { |
| 780 WebRtcAec_FilterFar = WebRtcAec_FilterFar_mips; | 775 WebRtcAec_FilterFar = WebRtcAec_FilterFar_mips; |
| 781 WebRtcAec_FilterAdaptation = WebRtcAec_FilterAdaptation_mips; | 776 WebRtcAec_FilterAdaptation = WebRtcAec_FilterAdaptation_mips; |
| 782 WebRtcAec_ScaleErrorSignal = WebRtcAec_ScaleErrorSignal_mips; | 777 WebRtcAec_ScaleErrorSignal = WebRtcAec_ScaleErrorSignal_mips; |
| 783 WebRtcAec_ComfortNoise = WebRtcAec_ComfortNoise_mips; | 778 WebRtcAec_ComfortNoise = WebRtcAec_ComfortNoise_mips; |
| 784 WebRtcAec_OverdriveAndSuppress = WebRtcAec_OverdriveAndSuppress_mips; | 779 WebRtcAec_OverdriveAndSuppress = WebRtcAec_OverdriveAndSuppress_mips; |
| 785 } | 780 } |
| 786 } // namespace webrtc | 781 } // namespace webrtc |
| OLD | NEW |