Chromium Code Reviews| 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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 701 "swc1 %[temp4], -4(%[p_efw1]) \n\t" | 701 "swc1 %[temp4], -4(%[p_efw1]) \n\t" |
| 702 : [temp1] "=&f" (temp1), [temp2] "=&f" (temp2), [temp3] "=&f" (temp3), | 702 : [temp1] "=&f" (temp1), [temp2] "=&f" (temp2), [temp3] "=&f" (temp3), |
| 703 [temp4] "=&f" (temp4), [p_efw0] "+r" (p_efw0), [p_efw1] "+r" (p_efw1), | 703 [temp4] "=&f" (temp4), [p_efw0] "+r" (p_efw0), [p_efw1] "+r" (p_efw1), |
| 704 [p_hNl] "+r" (p_hNl) | 704 [p_hNl] "+r" (p_hNl) |
| 705 : | 705 : |
| 706 : "memory"); | 706 : "memory"); |
| 707 } | 707 } |
| 708 } | 708 } |
| 709 | 709 |
| 710 void WebRtcAec_ScaleErrorSignal_mips(int extended_filter_enabled, | 710 void WebRtcAec_ScaleErrorSignal_mips(int extended_filter_enabled, |
| 711 float normal_mu, | 711 float mu, |
| 712 float normal_error_threshold, | 712 float normal_error_threshold, |
| 713 float x_pow[PART_LEN1], | 713 float x_pow[PART_LEN1], |
| 714 float ef[2][PART_LEN1]) { | 714 float ef[2][PART_LEN1]) { |
|
tlegrand-webrtc
2016/04/14 14:32:42
Same comments as for the main function.
peah-webrtc
2016/04/14 22:12:41
Done.
| |
| 715 const float mu = extended_filter_enabled ? kExtendedMu : normal_mu; | |
| 716 const float error_threshold = extended_filter_enabled | 715 const float error_threshold = extended_filter_enabled |
| 717 ? kExtendedErrorThreshold | 716 ? kExtendedErrorThreshold |
| 718 : normal_error_threshold; | 717 : normal_error_threshold; |
| 719 int len = (PART_LEN1); | 718 int len = (PART_LEN1); |
| 720 float* ef0 = ef[0]; | 719 float* ef0 = ef[0]; |
| 721 float* ef1 = ef[1]; | 720 float* ef1 = ef[1]; |
| 722 float fac1 = 1e-10f; | 721 float fac1 = 1e-10f; |
| 723 float err_th2 = error_threshold * error_threshold; | 722 float err_th2 = error_threshold * error_threshold; |
| 724 float f0, f1, f2; | 723 float f0, f1, f2; |
| 725 #if !defined(MIPS32_R2_LE) | 724 #if !defined(MIPS32_R2_LE) |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 775 } | 774 } |
| 776 | 775 |
| 777 void WebRtcAec_InitAec_mips(void) { | 776 void WebRtcAec_InitAec_mips(void) { |
| 778 WebRtcAec_FilterFar = WebRtcAec_FilterFar_mips; | 777 WebRtcAec_FilterFar = WebRtcAec_FilterFar_mips; |
| 779 WebRtcAec_FilterAdaptation = WebRtcAec_FilterAdaptation_mips; | 778 WebRtcAec_FilterAdaptation = WebRtcAec_FilterAdaptation_mips; |
| 780 WebRtcAec_ScaleErrorSignal = WebRtcAec_ScaleErrorSignal_mips; | 779 WebRtcAec_ScaleErrorSignal = WebRtcAec_ScaleErrorSignal_mips; |
| 781 WebRtcAec_ComfortNoise = WebRtcAec_ComfortNoise_mips; | 780 WebRtcAec_ComfortNoise = WebRtcAec_ComfortNoise_mips; |
| 782 WebRtcAec_OverdriveAndSuppress = WebRtcAec_OverdriveAndSuppress_mips; | 781 WebRtcAec_OverdriveAndSuppress = WebRtcAec_OverdriveAndSuppress_mips; |
| 783 } | 782 } |
| 784 } // namespace webrtc | 783 } // namespace webrtc |
| OLD | NEW |