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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
692 "swc1 %[temp4], -4(%[p_efw1]) \n\t" | 692 "swc1 %[temp4], -4(%[p_efw1]) \n\t" |
693 : [temp1] "=&f" (temp1), [temp2] "=&f" (temp2), [temp3] "=&f" (temp3), | 693 : [temp1] "=&f" (temp1), [temp2] "=&f" (temp2), [temp3] "=&f" (temp3), |
694 [temp4] "=&f" (temp4), [p_efw0] "+r" (p_efw0), [p_efw1] "+r" (p_efw1), | 694 [temp4] "=&f" (temp4), [p_efw0] "+r" (p_efw0), [p_efw1] "+r" (p_efw1), |
695 [p_hNl] "+r" (p_hNl) | 695 [p_hNl] "+r" (p_hNl) |
696 : | 696 : |
697 : "memory" | 697 : "memory" |
698 ); | 698 ); |
699 } | 699 } |
700 } | 700 } |
701 | 701 |
702 void WebRtcAec_ScaleErrorSignal_mips(AecCore* aec, float ef[2][PART_LEN1]) { | 702 void WebRtcAec_ScaleErrorSignal_mips(int extended_filter_enabled, |
703 const float mu = aec->extended_filter_enabled ? kExtendedMu : aec->normal_mu; | 703 float normal_mu, |
704 const float error_threshold = aec->extended_filter_enabled | 704 float normal_error_threshold, |
705 float *xPow, | |
hlundin-webrtc
2015/11/20 10:55:40
x_pow
peah-webrtc
2015/11/23 21:39:07
Done.
| |
706 float ef[2][PART_LEN1]) { | |
707 const float mu = extended_filter_enabled ? kExtendedMu : normal_mu; | |
708 const float error_threshold = extended_filter_enabled | |
705 ? kExtendedErrorThreshold | 709 ? kExtendedErrorThreshold |
706 : aec->normal_error_threshold; | 710 : normal_error_threshold; |
707 int len = (PART_LEN1); | 711 int len = (PART_LEN1); |
708 float* ef0 = ef[0]; | 712 float* ef0 = ef[0]; |
709 float* ef1 = ef[1]; | 713 float* ef1 = ef[1]; |
710 float* xPow = aec->xPow; | |
711 float fac1 = 1e-10f; | 714 float fac1 = 1e-10f; |
712 float err_th2 = error_threshold * error_threshold; | 715 float err_th2 = error_threshold * error_threshold; |
713 float f0, f1, f2; | 716 float f0, f1, f2; |
714 #if !defined(MIPS32_R2_LE) | 717 #if !defined(MIPS32_R2_LE) |
715 float f3; | 718 float f3; |
716 #endif | 719 #endif |
717 | 720 |
718 __asm __volatile ( | 721 __asm __volatile ( |
719 ".set push \n\t" | 722 ".set push \n\t" |
720 ".set noreorder \n\t" | 723 ".set noreorder \n\t" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
764 ); | 767 ); |
765 } | 768 } |
766 | 769 |
767 void WebRtcAec_InitAec_mips(void) { | 770 void WebRtcAec_InitAec_mips(void) { |
768 WebRtcAec_FilterFar = WebRtcAec_FilterFar_mips; | 771 WebRtcAec_FilterFar = WebRtcAec_FilterFar_mips; |
769 WebRtcAec_FilterAdaptation = WebRtcAec_FilterAdaptation_mips; | 772 WebRtcAec_FilterAdaptation = WebRtcAec_FilterAdaptation_mips; |
770 WebRtcAec_ScaleErrorSignal = WebRtcAec_ScaleErrorSignal_mips; | 773 WebRtcAec_ScaleErrorSignal = WebRtcAec_ScaleErrorSignal_mips; |
771 WebRtcAec_ComfortNoise = WebRtcAec_ComfortNoise_mips; | 774 WebRtcAec_ComfortNoise = WebRtcAec_ComfortNoise_mips; |
772 WebRtcAec_OverdriveAndSuppress = WebRtcAec_OverdriveAndSuppress_mips; | 775 WebRtcAec_OverdriveAndSuppress = WebRtcAec_OverdriveAndSuppress_mips; |
773 } | 776 } |
774 | |
OLD | NEW |