Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: webrtc/modules/audio_processing/aec/aec_core_mips.cc

Issue 1887003002: Added support in the AEC for refined filter adaptation. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added experiment string for the refined adaptive filter experiment in the aecdump Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 "swc1 %[temp2], -4(%[p_efw0]) \n\t" 700 "swc1 %[temp2], -4(%[p_efw0]) \n\t"
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(float mu,
711 float normal_mu, 711 float error_threshold,
712 float normal_error_threshold,
713 float x_pow[PART_LEN1], 712 float x_pow[PART_LEN1],
714 float ef[2][PART_LEN1]) { 713 float ef[2][PART_LEN1]) {
715 const float mu = extended_filter_enabled ? kExtendedMu : normal_mu;
716 const float error_threshold = extended_filter_enabled
717 ? kExtendedErrorThreshold
718 : normal_error_threshold;
719 int len = (PART_LEN1); 714 int len = (PART_LEN1);
720 float* ef0 = ef[0]; 715 float* ef0 = ef[0];
721 float* ef1 = ef[1]; 716 float* ef1 = ef[1];
722 float fac1 = 1e-10f; 717 float fac1 = 1e-10f;
723 float err_th2 = error_threshold * error_threshold; 718 float err_th2 = error_threshold * error_threshold;
724 float f0, f1, f2; 719 float f0, f1, f2;
725 #if !defined(MIPS32_R2_LE) 720 #if !defined(MIPS32_R2_LE)
726 float f3; 721 float f3;
727 #endif 722 #endif
728 723
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 } 770 }
776 771
777 void WebRtcAec_InitAec_mips(void) { 772 void WebRtcAec_InitAec_mips(void) {
778 WebRtcAec_FilterFar = WebRtcAec_FilterFar_mips; 773 WebRtcAec_FilterFar = WebRtcAec_FilterFar_mips;
779 WebRtcAec_FilterAdaptation = WebRtcAec_FilterAdaptation_mips; 774 WebRtcAec_FilterAdaptation = WebRtcAec_FilterAdaptation_mips;
780 WebRtcAec_ScaleErrorSignal = WebRtcAec_ScaleErrorSignal_mips; 775 WebRtcAec_ScaleErrorSignal = WebRtcAec_ScaleErrorSignal_mips;
781 WebRtcAec_ComfortNoise = WebRtcAec_ComfortNoise_mips; 776 WebRtcAec_ComfortNoise = WebRtcAec_ComfortNoise_mips;
782 WebRtcAec_OverdriveAndSuppress = WebRtcAec_OverdriveAndSuppress_mips; 777 WebRtcAec_OverdriveAndSuppress = WebRtcAec_OverdriveAndSuppress_mips;
783 } 778 }
784 } // namespace webrtc 779 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698