/external/chromium_org/third_party/webrtc/modules/audio_processing/ns/ |
D | nsx_core_c.c | 29 int32_t invLrtFX, indPriorFX, tmp32, tmp32no1, tmp32no2, besselTmpFX32; in WebRtcNsx_SpeechNoiseProb() local 67 tmp32no1 = WEBRTC_SPL_RSHIFT_W32(logTmp + inst->logLrtTimeAvgW32[i], 1); in WebRtcNsx_SpeechNoiseProb() 69 inst->logLrtTimeAvgW32[i] += (besselTmpFX32 - tmp32no1); // Q12 in WebRtcNsx_SpeechNoiseProb() 87 tmp32no1 = logLrtTimeAvgKsumFX - inst->thresholdLogLrt; // Q12 in WebRtcNsx_SpeechNoiseProb() 90 if (tmp32no1 < 0) { in WebRtcNsx_SpeechNoiseProb() 92 tmp32no1 = -tmp32no1; in WebRtcNsx_SpeechNoiseProb() 96 tmp32no1 = WEBRTC_SPL_SHIFT_W32(tmp32no1, nShifts); // Q14 in WebRtcNsx_SpeechNoiseProb() 98 tableIndex = (int16_t)WEBRTC_SPL_RSHIFT_W32(tmp32no1, 14); in WebRtcNsx_SpeechNoiseProb() 102 frac = (int16_t)(tmp32no1 & 0x00003fff); // Q14 in WebRtcNsx_SpeechNoiseProb() 125 tmp32no1 = (int32_t)WebRtcSpl_DivU32U16(WEBRTC_SPL_LSHIFT_U32(tmpU32no2, in WebRtcNsx_SpeechNoiseProb() [all …]
|
D | nsx_core_mips.c | 29 int32_t indPriorFX, tmp32no1; in WebRtcNsx_SpeechNoiseProb() local 119 tmp32no1 = logLrtTimeAvgKsumFX - inst->thresholdLogLrt; // Q12 in WebRtcNsx_SpeechNoiseProb() 122 if (tmp32no1 < 0) { in WebRtcNsx_SpeechNoiseProb() 124 tmp32no1 = -tmp32no1; in WebRtcNsx_SpeechNoiseProb() 128 tmp32no1 = WEBRTC_SPL_SHIFT_W32(tmp32no1, nShifts); // Q14 in WebRtcNsx_SpeechNoiseProb() 130 tableIndex = (int16_t)WEBRTC_SPL_RSHIFT_W32(tmp32no1, 14); in WebRtcNsx_SpeechNoiseProb() 134 frac = (int16_t)(tmp32no1 & 0x00003fff); // Q14 in WebRtcNsx_SpeechNoiseProb() 157 tmp32no1 = (int32_t)WebRtcSpl_DivU32U16(WEBRTC_SPL_LSHIFT_U32(tmpU32no2, in WebRtcNsx_SpeechNoiseProb()
|
D | nsx_core.c | 304 int32_t tmp32no1 = 0; in UpdateNoiseEstimate() local 321 tmp32no1 = (0x00200000 | (tmp32no2 & 0x001FFFFF)); // 2^21 + frac in UpdateNoiseEstimate() 326 tmp32no1 = WEBRTC_SPL_RSHIFT_W32(tmp32no1, -tmp16); in UpdateNoiseEstimate() 328 tmp32no1 = WEBRTC_SPL_LSHIFT_W32(tmp32no1, tmp16); in UpdateNoiseEstimate() 330 inst->noiseEstQuantile[i] = WebRtcSpl_SatW32ToW16(tmp32no1); in UpdateNoiseEstimate() 590 int32_t tmp32no1 = 0; in WebRtcNsx_CalcParametricNoiseEstimate() local 602 tmp32no1 = pink_noise_num_avg - tmp32no2; // Q11 in WebRtcNsx_CalcParametricNoiseEstimate() 606 tmp32no1 += WEBRTC_SPL_LSHIFT_W32((int32_t)(inst->minNorm - inst->stages), 11); in WebRtcNsx_CalcParametricNoiseEstimate() 607 if (tmp32no1 > 0) { in WebRtcNsx_CalcParametricNoiseEstimate() 608 int_part = (int16_t)WEBRTC_SPL_RSHIFT_W32(tmp32no1, 11); in WebRtcNsx_CalcParametricNoiseEstimate() [all …]
|
D | nsx_core_neon.c | 122 int32_t tmp32no1 = (0x00200000 | (tmp32no2 & 0x001FFFFF)); // 2^21 + frac in UpdateNoiseEstimateNeon() local 128 tmp32no1 = WEBRTC_SPL_RSHIFT_W32(tmp32no1, -tmp16); in UpdateNoiseEstimateNeon() 130 tmp32no1 = WEBRTC_SPL_LSHIFT_W32(tmp32no1, tmp16); in UpdateNoiseEstimateNeon() 132 *ptr_noiseEstQuantile = WebRtcSpl_SatW32ToW16(tmp32no1); in UpdateNoiseEstimateNeon()
|
D | nsx_core_neon.S | 418 bfi r12, r3, #0, #21 @ tmp32no1 = 0x00200000 | (tmp32no2 & 0x001FFFFF);
|
/external/chromium_org/third_party/webrtc/modules/audio_processing/aecm/ |
D | aecm_core_c.c | 101 int32_t tmp32no1; in InverseFFTAndWindow() local 122 tmp32no1 = WEBRTC_SPL_SHIFT_W32((int32_t)ifft_out[i], in InverseFFTAndWindow() 125 tmp32no1 + aecm->outBuf[i], in InverseFFTAndWindow() 128 tmp32no1 = WEBRTC_SPL_MUL_16_16_RSFT(ifft_out[PART_LEN + i], in InverseFFTAndWindow() 131 tmp32no1 = WEBRTC_SPL_SHIFT_W32(tmp32no1, in InverseFFTAndWindow() 134 tmp32no1, in InverseFFTAndWindow() 174 int32_t tmp32no1 = 0; in TimeToFrequencyDomain() local 263 :[tmp32no1]"+&r"(tmp32no1), in TimeToFrequencyDomain() 271 tmp32no1 = WEBRTC_SPL_MUL_16_16(tmp16no1, tmp16no1); in TimeToFrequencyDomain() 273 tmp32no2 = WEBRTC_SPL_ADD_SAT_W32(tmp32no1, tmp32no2); in TimeToFrequencyDomain() [all …]
|
D | aecm_core.c | 957 int32_t tmp32no1, tmp32no2; in WebRtcAecm_UpdateChannel() local 1016 tmp32no1 = (int32_t)tmpU32no2 - (int32_t)tmpU32no1; in WebRtcAecm_UpdateChannel() 1017 zerosNum = WebRtcSpl_NormW32(tmp32no1); in WebRtcAecm_UpdateChannel() 1018 if ((tmp32no1) && (far_spectrum[i] > (CHANNEL_VAD << far_q))) in WebRtcAecm_UpdateChannel() 1034 if (tmp32no1 > 0) in WebRtcAecm_UpdateChannel() 1036 tmp32no2 = (int32_t)WEBRTC_SPL_UMUL_32_16(tmp32no1, in WebRtcAecm_UpdateChannel() 1040 tmp32no2 = -(int32_t)WEBRTC_SPL_UMUL_32_16(-tmp32no1, in WebRtcAecm_UpdateChannel() 1047 if (tmp32no1 > 0) in WebRtcAecm_UpdateChannel() 1050 WEBRTC_SPL_RSHIFT_W32(tmp32no1, shiftNum), in WebRtcAecm_UpdateChannel() 1055 WEBRTC_SPL_RSHIFT_W32(-tmp32no1, shiftNum), in WebRtcAecm_UpdateChannel() [all …]
|
D | aecm_core_mips.c | 643 int32_t tmp32no1; in TimeToFrequencyDomain() local 694 tmp32no1 = WEBRTC_SPL_MUL_16_16(tmp16no1, tmp16no1); in TimeToFrequencyDomain() 696 tmp32no2 = WEBRTC_SPL_ADD_SAT_W32(tmp32no1, tmp32no2); in TimeToFrequencyDomain() 697 tmp32no1 = WebRtcSpl_SqrtFloor(tmp32no2); in TimeToFrequencyDomain() 699 freq_signal_abs[i] = (uint16_t)tmp32no1; in TimeToFrequencyDomain() 810 int32_t tmp32no1; in WebRtcAecm_ProcessBlock() local 972 tmp32no1 = echoEst32[i] - aecm->echoFilt[i]; in WebRtcAecm_ProcessBlock() 974 WEBRTC_SPL_MUL_32_16(tmp32no1, 50), 8); in WebRtcAecm_ProcessBlock() 1018 tmp32no1 = (int32_t)(tmp16no2 - tmp16no1); in WebRtcAecm_ProcessBlock() 1019 tmp16no2 = (int16_t)WEBRTC_SPL_RSHIFT_W32(tmp32no1, 4); in WebRtcAecm_ProcessBlock() [all …]
|
/external/webrtc/src/modules/audio_processing/aecm/ |
D | aecm_core.c | 406 WebRtc_Word32 tmp32no1; in InverseFFTAndWindowC() local 444 tmp32no1 = WEBRTC_SPL_SHIFT_W32((WebRtc_Word32)fft[i], in InverseFFTAndWindowC() 447 tmp32no1 + aecm->outBuf[i], in InverseFFTAndWindowC() 451 tmp32no1 = WEBRTC_SPL_MUL_16_16_RSFT( in InverseFFTAndWindowC() 455 tmp32no1 = WEBRTC_SPL_SHIFT_W32(tmp32no1, in InverseFFTAndWindowC() 459 tmp32no1, in InverseFFTAndWindowC() 1089 WebRtc_Word32 tmp32no1, tmp32no2; in WebRtcAecm_UpdateChannel() local 1148 tmp32no1 = (WebRtc_Word32)tmpU32no2 - (WebRtc_Word32)tmpU32no1; in WebRtcAecm_UpdateChannel() 1149 zerosNum = WebRtcSpl_NormW32(tmp32no1); in WebRtcAecm_UpdateChannel() 1150 if ((tmp32no1) && (far_spectrum[i] > (CHANNEL_VAD << far_q))) in WebRtcAecm_UpdateChannel() [all …]
|
D | aecm_core_neon.c | 95 WebRtc_Word32 tmp32no1; in InverseFFTAndWindowNeon() local
|
/external/webrtc/src/modules/audio_processing/ns/ |
D | nsx_core.c | 440 WebRtc_Word32 tmp32no1 = 0; in UpdateNoiseEstimate() local 457 tmp32no1 = (0x00200000 | (tmp32no2 & 0x001FFFFF)); // 2^21 + frac in UpdateNoiseEstimate() 462 tmp32no1 = WEBRTC_SPL_RSHIFT_W32(tmp32no1, -tmp16); in UpdateNoiseEstimate() 464 tmp32no1 = WEBRTC_SPL_LSHIFT_W32(tmp32no1, tmp16); in UpdateNoiseEstimate() 466 inst->noiseEstQuantile[i] = WebRtcSpl_SatW32ToW16(tmp32no1); in UpdateNoiseEstimate() 701 WebRtc_Word32 tmp32no1 = 0; in WebRtcNsx_CalcParametricNoiseEstimate() local 713 tmp32no1 = pink_noise_num_avg - tmp32no2; // Q11 in WebRtcNsx_CalcParametricNoiseEstimate() 717 tmp32no1 += WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)(inst->minNorm - inst->stages), 11); in WebRtcNsx_CalcParametricNoiseEstimate() 718 if (tmp32no1 > 0) { in WebRtcNsx_CalcParametricNoiseEstimate() 719 int_part = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(tmp32no1, 11); in WebRtcNsx_CalcParametricNoiseEstimate() [all …]
|
D | nsx_core_neon.c | 81 int32_t tmp32no1 = (0x00200000 | (tmp32no2 & 0x001FFFFF)); // 2^21 + frac in UpdateNoiseEstimateNeon() local 87 tmp32no1 = WEBRTC_SPL_RSHIFT_W32(tmp32no1, -tmp16); in UpdateNoiseEstimateNeon() 89 tmp32no1 = WEBRTC_SPL_LSHIFT_W32(tmp32no1, tmp16); in UpdateNoiseEstimateNeon() 91 *ptr_noiseEstQuantile = WebRtcSpl_SatW32ToW16(tmp32no1); in UpdateNoiseEstimateNeon()
|
/external/webrtc/src/modules/audio_processing/agc/ |
D | digital_agc.c | 70 WebRtc_Word32 tmp32, tmp32no1, tmp32no2, numFIX, den, y32; in WebRtcAgc_CalculateGainTable() local 90 tmp32no1 = WEBRTC_SPL_MUL_16_16(digCompGaindB - analogTarget, kCompRatio - 1); in WebRtcAgc_CalculateGainTable() 92 tmp16no1 += WebRtcSpl_DivW32W16ResW16(tmp32no1 + (kCompRatio >> 1), kCompRatio); in WebRtcAgc_CalculateGainTable() 94 tmp32no1 = WEBRTC_SPL_MUL_16_16(maxGain, kCompRatio); in WebRtcAgc_CalculateGainTable() 96 zeroGainLvl -= WebRtcSpl_DivW32W16ResW16(tmp32no1 + ((kCompRatio - 1) >> 1), in WebRtcAgc_CalculateGainTable() 107 tmp32no1 = WEBRTC_SPL_MUL_16_16(digCompGaindB, kCompRatio - 1); in WebRtcAgc_CalculateGainTable() 108 diffGain = WebRtcSpl_DivW32W16ResW16(tmp32no1 + (kCompRatio >> 1), kCompRatio); in WebRtcAgc_CalculateGainTable() 205 tmp32no1 = WEBRTC_SPL_SHIFT_W32(den, zeros - 8); // Q(zeros) in WebRtcAgc_CalculateGainTable() 208 numFIX -= WEBRTC_SPL_RSHIFT_W32(tmp32no1, 1); in WebRtcAgc_CalculateGainTable() 211 numFIX += WEBRTC_SPL_RSHIFT_W32(tmp32no1, 1); in WebRtcAgc_CalculateGainTable() [all …]
|
/external/chromium_org/third_party/webrtc/modules/audio_processing/agc/ |
D | digital_agc.c | 70 int32_t tmp32, tmp32no1, tmp32no2, numFIX, den, y32; in WebRtcAgc_CalculateGainTable() local 90 tmp32no1 = WEBRTC_SPL_MUL_16_16(digCompGaindB - analogTarget, kCompRatio - 1); in WebRtcAgc_CalculateGainTable() 92 tmp16no1 += WebRtcSpl_DivW32W16ResW16(tmp32no1 + (kCompRatio >> 1), kCompRatio); in WebRtcAgc_CalculateGainTable() 94 tmp32no1 = WEBRTC_SPL_MUL_16_16(maxGain, kCompRatio); in WebRtcAgc_CalculateGainTable() 96 zeroGainLvl -= WebRtcSpl_DivW32W16ResW16(tmp32no1 + ((kCompRatio - 1) >> 1), in WebRtcAgc_CalculateGainTable() 107 tmp32no1 = WEBRTC_SPL_MUL_16_16(digCompGaindB, kCompRatio - 1); in WebRtcAgc_CalculateGainTable() 108 diffGain = WebRtcSpl_DivW32W16ResW16(tmp32no1 + (kCompRatio >> 1), kCompRatio); in WebRtcAgc_CalculateGainTable() 205 tmp32no1 = WEBRTC_SPL_SHIFT_W32(den, zeros - 8); // Q(zeros) in WebRtcAgc_CalculateGainTable() 208 numFIX -= WEBRTC_SPL_RSHIFT_W32(tmp32no1, 1); in WebRtcAgc_CalculateGainTable() 211 numFIX += WEBRTC_SPL_RSHIFT_W32(tmp32no1, 1); in WebRtcAgc_CalculateGainTable() [all …]
|