/external/chromium_org/third_party/webrtc/modules/audio_processing/aecm/ |
aecm_defines.h | 19 #define PART_LEN 64 /* Length of partition. */ 20 #define PART_LEN_SHIFT 7 /* Length of (PART_LEN * 2) in base 2. */ 22 #define PART_LEN1 (PART_LEN + 1) /* Unique fft coefficients. */ 23 #define PART_LEN2 (PART_LEN << 1) /* Length of partition * 2. */ 24 #define PART_LEN4 (PART_LEN << 2) /* Length of partition * 4. */
|
aecm_core_neon.c | 53 const int16_t* p_time_signal_offset = &time_signal[PART_LEN]; 73 for (i = 0; i < PART_LEN; i += 4) { 99 // Do forward FFT, then take only the first PART_LEN complex samples, 104 for (i = 0; i < PART_LEN; i += 8) { 139 for (i = 0, j = 0; i < PART_LEN; i += 4, j += 8) { 156 fft[PART_LEN2] = efw[PART_LEN].real; 157 fft[PART_LEN2 + 1] = -efw[PART_LEN].imag; 166 for (i = 0; i < PART_LEN; i += 4) { 194 // efw[PART_LEN + i].real, WebRtcAecm_kSqrtHanning[PART_LEN - i], 14) [all...] |
aecm_core_c.c | 73 for (i = 0; i < PART_LEN; i++) { 80 fft[PART_LEN + i] = (int16_t)WEBRTC_SPL_MUL_16_16_RSFT( 81 (time_signal[i + PART_LEN] << time_signal_scaling), 82 WebRtcAecm_kSqrtHanning[PART_LEN - i], 86 // Do forward FFT, then take only the first PART_LEN complex samples, 89 for (i = 0; i < PART_LEN; i++) { 107 for (i = 1, j = 2; i < PART_LEN; i += 1, j += 2) { 114 fft[PART_LEN2] = efw[PART_LEN].real; 115 fft[PART_LEN2 + 1] = -efw[PART_LEN].imag; 119 for (i = 0; i < PART_LEN; i++) [all...] |
aecm_core_mips.c | 216 const int16_t* pp_kSqrtHanning = &WebRtcAecm_kSqrtHanning[PART_LEN]; 281 fft[2] = efw[PART_LEN].real; 282 fft[3] = -efw[PART_LEN].imag; 424 memcpy(aecm->xBuf, aecm->xBuf + PART_LEN, sizeof(int16_t) * PART_LEN); 426 aecm->dBufNoisy + PART_LEN, 427 sizeof(int16_t) * PART_LEN); 430 aecm->dBufClean + PART_LEN, 431 sizeof(int16_t) * PART_LEN); 454 for (i = 0; i < PART_LEN; i+= 4) [all...] |
aecm_core.c | 219 aecm->farFrameBuf = WebRtc_CreateBuffer(FRAME_LEN + PART_LEN, 228 aecm->nearNoisyFrameBuf = WebRtc_CreateBuffer(FRAME_LEN + PART_LEN, 237 aecm->nearCleanFrameBuf = WebRtc_CreateBuffer(FRAME_LEN + PART_LEN, 246 aecm->outFrameBuf = WebRtc_CreateBuffer(FRAME_LEN + PART_LEN, 347 for (i = 0; i < PART_LEN; i += 4) 371 for (i = 0; i < PART_LEN; i += 4) 527 COMPILE_ASSERT(PART_LEN % 16 == 0); 587 int16_t outBlock_buf[PART_LEN + 8]; // Align buffer to 8-byte boundary. 609 while (WebRtc_available_read(aecm->farFrameBuf) >= PART_LEN) 611 int16_t far_block[PART_LEN]; [all...] |
aecm_core_neon.S | 42 mov r12, #(PART_LEN / 8) @ Loop counter, unrolled by 8. 101 mov r12, #(PART_LEN / 8) @ Loop counter, unrolled by 8. 130 mov r3, #(PART_LEN / 8) @ Loop counter, unrolled by 8.
|
aecm_core.h | 86 int16_t outBuf_buf[PART_LEN + 8];
|
/external/webrtc/src/modules/audio_processing/aecm/ |
aecm_core_neon.c | 46 for (i = 0, j = 0; i < PART_LEN; i += 4, j += 8) { 64 // (time_signal[PART_LEN + i] << time_signal_scaling), 65 // WebRtcAecm_kSqrtHanning[PART_LEN - i], 14); 66 __asm__("vld1.16 %P0, [%1, :64]" : "=w"(tmp16x4_0) : "r"(&time_signal[i + PART_LEN])); 98 for (i = 0, j = 0; i < PART_LEN; i += 4, j += 8) { 110 fft[PART_LEN2] = efw[PART_LEN].real; 111 fft[PART_LEN2 + 1] = -efw[PART_LEN].imag; 126 for (i = 0; i < PART_LEN; i += 4) { 154 // fft[PART_LEN + i], WebRtcAecm_kSqrtHanning[PART_LEN - i], 14) [all...] |
aecm_core.h | 28 #define PART_LEN 32 // Length of partition 29 #define PART_LEN_SHIFT 6 // Length of (PART_LEN * 2) in base 2 33 #define PART_LEN 64 // Length of partition 34 #define PART_LEN_SHIFT 7 // Length of (PART_LEN * 2) in base 2 38 #define PART_LEN1 (PART_LEN + 1) // Unique fft coefficients 39 #define PART_LEN2 (PART_LEN << 1) // Length of partition * 2 40 #define PART_LEN4 (PART_LEN << 2) // Length of partition * 4 158 WebRtc_Word16 outBuf_buf[PART_LEN + 8];
|
aecm_core.c | 283 if (WebRtc_CreateBuffer(&aecm->farFrameBuf, FRAME_LEN + PART_LEN, 291 if (WebRtc_CreateBuffer(&aecm->nearNoisyFrameBuf, FRAME_LEN + PART_LEN, 299 if (WebRtc_CreateBuffer(&aecm->nearCleanFrameBuf, FRAME_LEN + PART_LEN, 307 if (WebRtc_CreateBuffer(&aecm->outFrameBuf, FRAME_LEN + PART_LEN, 370 for (i = 0, j = 0; i < PART_LEN; i++, j += 2) 379 (time_signal[i + PART_LEN] << time_signal_scaling), 380 WebRtcAecm_kSqrtHanning[PART_LEN - i], 409 for (i = 1; i < PART_LEN; i++) 424 fft[PART_LEN2] = efw[PART_LEN].real; 425 fft[PART_LEN2 + 1] = -efw[PART_LEN].imag [all...] |
/external/webrtc/src/modules/audio_processing/aec/ |
aec_core.c | 43 static const int freqAvgIc = PART_LEN / 2; 156 FRAME_LEN + PART_LEN, 164 FRAME_LEN + PART_LEN, 172 FRAME_LEN + PART_LEN, 180 FRAME_LEN + PART_LEN, 202 sizeof(int16_t) * PART_LEN) == -1) { 323 for (j = 0; j < PART_LEN; j++) { 332 fft[1] = MulRe(aec->xfBuf[0][xPos + PART_LEN], 333 -aec->xfBuf[1][xPos + PART_LEN], 334 ef[0][PART_LEN], ef[1][PART_LEN]) [all...] |
aec_core.h | 24 #define PART_LEN 64 // Length of partition 25 #define PART_LEN1 (PART_LEN + 1) // Unique fft coefficients 26 #define PART_LEN2 (PART_LEN * 2) // Length of partition * 2 105 float outBuf[PART_LEN];
|
aec_core_sse2.c | 142 for (j = 0; j < PART_LEN; j+= 4) { 165 fft[1] = MulRe(aec->xfBuf[0][xPos + PART_LEN], 166 -aec->xfBuf[1][xPos + PART_LEN], 167 ef[0][PART_LEN], ef[1][PART_LEN]); 170 memset(fft + PART_LEN, 0, sizeof(float)*PART_LEN); 176 for (j = 0; j < PART_LEN; j+=4) { 186 aec->wfBuf[0][pos + PART_LEN] += fft[1]; 187 for (j = 0; j < PART_LEN; j+= 4) [all...] |
echo_cancellation.c | 235 WebRtc_MoveReadPtr(aecpc->far_pre_buf, -PART_LEN); // Start overlap. 285 WebRtc_MoveReadPtr(aecpc->far_pre_buf_s16, -PART_LEN); // Start overlap. 358 // Rewind |far_pre_buf| PART_LEN samples for overlap before continuing. 359 WebRtc_MoveReadPtr(aecpc->far_pre_buf, -PART_LEN); 363 WebRtc_WriteBuffer(aecpc->aec->far_time_buf, &farend_ptr[PART_LEN], 1); 364 WebRtc_MoveReadPtr(aecpc->far_pre_buf_s16, -PART_LEN); 498 // PART_LEN samples. Use 75% of the average value of the system 501 aecpc->aec->mult * 8) / (4 * aecpc->counter * PART_LEN), 522 int overhead_elements = aecpc->aec->system_delay / PART_LEN - 539 aecpc->aec->system_delay -= overhead_elements * PART_LEN; [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_processing/aec/ |
aec_core.c | 48 static const int freqAvgIc = PART_LEN / 2; 229 for (j = 0; j < PART_LEN; j++) { 240 fft[1] = MulRe(aec->xfBuf[0][xPos + PART_LEN], 241 -aec->xfBuf[1][xPos + PART_LEN], 242 ef[0][PART_LEN], 243 ef[1][PART_LEN]); 246 memset(fft + PART_LEN, 0, sizeof(float) * PART_LEN); 251 for (j = 0; j < PART_LEN; j++) { 258 aec->wfBuf[0][pos + PART_LEN] += fft[1] [all...] |
aec_core.h | 21 #define PART_LEN 64 // Length of partition 22 #define PART_LEN1 (PART_LEN + 1) // Unique fft coefficients 23 #define PART_LEN2 (PART_LEN * 2) // Length of partition * 2
|
aec_core_mips.c | 33 float rand[PART_LEN]; 35 int16_t randW16[PART_LEN]; 42 WebRtcSpl_RandUArray(randW16, PART_LEN, &aec->seed); 48 for (i = 0; i < PART_LEN; i+=4) { 150 u[PART_LEN][1] = 0; 151 noisePow -= PART_LEN; 154 float* u_ptr_end = &u[PART_LEN][0]; 266 lambda -= PART_LEN; 267 tmp = sqrtf(WEBRTC_SPL_MAX(1 - lambda[PART_LEN] * lambda[PART_LEN], 0)) [all...] |
aec_core_neon.c | 193 for (j = 0; j < PART_LEN; j += 4) { 213 fft[1] = MulRe(aec->xfBuf[0][xPos + PART_LEN], 214 -aec->xfBuf[1][xPos + PART_LEN], 215 ef[0][PART_LEN], 216 ef[1][PART_LEN]); 219 memset(fft + PART_LEN, 0, sizeof(float) * PART_LEN); 225 for (j = 0; j < PART_LEN; j += 4) { 235 aec->wfBuf[0][pos + PART_LEN] += fft[1]; 236 for (j = 0; j < PART_LEN; j += 4) [all...] |
aec_core_sse2.c | 156 for (j = 0; j < PART_LEN; j += 4) { 179 fft[1] = MulRe(aec->xfBuf[0][xPos + PART_LEN], 180 -aec->xfBuf[1][xPos + PART_LEN], 181 ef[0][PART_LEN], 182 ef[1][PART_LEN]); 185 memset(fft + PART_LEN, 0, sizeof(float) * PART_LEN); 191 for (j = 0; j < PART_LEN; j += 4) { 201 aec->wfBuf[0][pos + PART_LEN] += fft[1]; 202 for (j = 0; j < PART_LEN; j += 4) [all...] |
echo_cancellation.c | 229 WebRtc_MoveReadPtr(aecpc->far_pre_buf, -PART_LEN); // Start overlap. 332 WebRtcAec_far_time_buf(aecpc->aec), &ptmp[PART_LEN], 1); 336 // Rewind |far_pre_buf| PART_LEN samples for overlap before continuing. 337 WebRtc_MoveReadPtr(aecpc->far_pre_buf, -PART_LEN); 693 // PART_LEN samples. Use 75% of the average value of the system 697 (4 * aecpc->counter * PART_LEN), 720 WebRtcAec_system_delay(aecpc->aec) / PART_LEN - aecpc->bufSizeStart; 810 PART_LEN; 857 if (current_delay < PART_LEN) { 858 current_delay += WebRtcAec_MoveFarReadPtr(aecpc->aec, 1) * PART_LEN; [all...] |
aec_core_internal.h | 91 float outBuf[PART_LEN];
|