| Index: webrtc/modules/audio_processing/aec/aec_core_mips.c
|
| diff --git a/webrtc/modules/audio_processing/aec/aec_core_mips.c b/webrtc/modules/audio_processing/aec/aec_core_mips.c
|
| index 59d655d86606bac0c401c26ab1e9bf91ec25b208..b059e84fcc84a2c0b991f4f2576ddf6c35767a4e 100644
|
| --- a/webrtc/modules/audio_processing/aec/aec_core_mips.c
|
| +++ b/webrtc/modules/audio_processing/aec/aec_core_mips.c
|
| @@ -320,21 +320,26 @@ void WebRtcAec_ComfortNoise_mips(AecCore* aec,
|
| }
|
| }
|
|
|
| -void WebRtcAec_FilterFar_mips(AecCore* aec, float yf[2][PART_LEN1]) {
|
| +void WebRtcAec_FilterFar_mips(
|
| + int num_partitions,
|
| + int xfBufBlockPos,
|
| + float xfBuf[2][kExtendedNumPartitions * PART_LEN1],
|
| + float wfBuf[2][kExtendedNumPartitions * PART_LEN1],
|
| + float yf[2][PART_LEN1]) {
|
| int i;
|
| - for (i = 0; i < aec->num_partitions; i++) {
|
| - int xPos = (i + aec->xfBufBlockPos) * PART_LEN1;
|
| + for (i = 0; i < num_partitions; i++) {
|
| + int xPos = (i + xfBufBlockPos) * PART_LEN1;
|
| int pos = i * PART_LEN1;
|
| // Check for wrap
|
| - if (i + aec->xfBufBlockPos >= aec->num_partitions) {
|
| - xPos -= aec->num_partitions * (PART_LEN1);
|
| + if (i + xfBufBlockPos >= num_partitions) {
|
| + xPos -= num_partitions * (PART_LEN1);
|
| }
|
| float* yf0 = yf[0];
|
| float* yf1 = yf[1];
|
| - float* aRe = aec->xfBuf[0] + xPos;
|
| - float* aIm = aec->xfBuf[1] + xPos;
|
| - float* bRe = aec->wfBuf[0] + pos;
|
| - float* bIm = aec->wfBuf[1] + pos;
|
| + float* aRe = xfBuf[0] + xPos;
|
| + float* aIm = xfBuf[1] + xPos;
|
| + float* bRe = wfBuf[0] + pos;
|
| + float* bIm = wfBuf[1] + pos;
|
| float f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13;
|
| int len = PART_LEN1 >> 1;
|
|
|
|
|