Home
last modified time | relevance | path

Searched refs:WEBRTC_SPL_RSHIFT_W32 (Results 1 – 17 of 17) sorted by relevance

/external/webrtc/src/common_audio/signal_processing/
Dlevinson_durbin.c48 R_hi[i] = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(temp1W32, 16); in WebRtcSpl_LevinsonDurbin()
49 R_low[i] = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32((temp1W32 in WebRtcSpl_LevinsonDurbin()
66 K_hi = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(temp1W32, 16); in WebRtcSpl_LevinsonDurbin()
67 K_low = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32((temp1W32 in WebRtcSpl_LevinsonDurbin()
73 temp1W32 = WEBRTC_SPL_RSHIFT_W32(temp1W32, 4); // A[1] in Q27 in WebRtcSpl_LevinsonDurbin()
76 A_hi[1] = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(temp1W32, 16); in WebRtcSpl_LevinsonDurbin()
77 A_low[1] = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32((temp1W32 in WebRtcSpl_LevinsonDurbin()
89 tmp_hi = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(temp1W32, 16); in WebRtcSpl_LevinsonDurbin()
90 tmp_low = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32((temp1W32 in WebRtcSpl_LevinsonDurbin()
102 Alpha_hi = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(temp1W32, 16); in WebRtcSpl_LevinsonDurbin()
[all …]
Dcomplex_fft.c198 tr32 = WEBRTC_SPL_RSHIFT_W32((WEBRTC_SPL_MUL_16_16(wr, frfi[2 * j]) in WebRtcSpl_ComplexFFT()
201 ti32 = WEBRTC_SPL_RSHIFT_W32((WEBRTC_SPL_MUL_16_16(wr, frfi[2 * j + 1]) in WebRtcSpl_ComplexFFT()
206 frfi[2 * j] = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(qr32 - tr32, 1); in WebRtcSpl_ComplexFFT()
207 frfi[2 * j + 1] = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(qi32 - ti32, 1); in WebRtcSpl_ComplexFFT()
208 frfi[2 * i] = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(qr32 + tr32, 1); in WebRtcSpl_ComplexFFT()
209 frfi[2 * i + 1] = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(qi32 + ti32, 1); in WebRtcSpl_ComplexFFT()
263 tr32 = WEBRTC_SPL_RSHIFT_W32(tr32, 15 - CFFTSFT); in WebRtcSpl_ComplexFFT()
264 ti32 = WEBRTC_SPL_RSHIFT_W32(ti32, 15 - CFFTSFT); in WebRtcSpl_ComplexFFT()
269 frfi[2 * j] = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32( in WebRtcSpl_ComplexFFT()
271 frfi[2 * j + 1] = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32( in WebRtcSpl_ComplexFFT()
[all …]
Dspl_sqrt.c38 B = WEBRTC_SPL_RSHIFT_W32(B, 1); // B = in/2 in WebRtcSpl_SqrtLocal()
40 x_half = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(B, 16);// x_half = x/2 = (in-1)/2 in WebRtcSpl_SqrtLocal()
48 A = WEBRTC_SPL_RSHIFT_W32(A, 16); in WebRtcSpl_SqrtLocal()
50 t16 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(A, 16); in WebRtcSpl_SqrtLocal()
54 t16 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(A, 16); in WebRtcSpl_SqrtLocal()
56 t16 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(A, 16); in WebRtcSpl_SqrtLocal()
60 t16 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(x2, 16); in WebRtcSpl_SqrtLocal()
155 x_norm = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(A, 16); // x_norm = AH in WebRtcSpl_Sqrt()
167 t16 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(A, 16); // t16 = AH in WebRtcSpl_Sqrt()
173 A = WEBRTC_SPL_RSHIFT_W32(A, 15); // A = A>>16 in WebRtcSpl_Sqrt()
[all …]
Ddivision_operations.c117 tmp_hi = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(tmpW32, 16); in WebRtcSpl_DivW32HiLow()
118 tmp_low = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32((tmpW32 in WebRtcSpl_DivW32HiLow()
126 tmp_hi = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(tmpW32, 16); in WebRtcSpl_DivW32HiLow()
127 tmp_low = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32((tmpW32 in WebRtcSpl_DivW32HiLow()
131 num_hi = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(num, 16); in WebRtcSpl_DivW32HiLow()
132 num_low = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32((num in WebRtcSpl_DivW32HiLow()
Dsplitting_filter.c149 tmp = WEBRTC_SPL_RSHIFT_W32(tmp, 11); in WebRtcSpl_AnalysisQMF()
153 tmp = WEBRTC_SPL_RSHIFT_W32(tmp, 11); in WebRtcSpl_AnalysisQMF()
191 tmp = WEBRTC_SPL_RSHIFT_W32(filter2[i] + 512, 10); in WebRtcSpl_SynthesisQMF()
194 tmp = WEBRTC_SPL_RSHIFT_W32(filter1[i] + 512, 10); in WebRtcSpl_SynthesisQMF()
Dlpc_to_refl_coef.c35 tmp_inv_denom16 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(tmp_inv_denom32, 15); in WebRtcSpl_LpcToReflCoef()
50 a16[k] = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(tmp32[k], 1); //Q13>>1 => Q12 in WebRtcSpl_LpcToReflCoef()
Ddownsample_fast.c51 o = WEBRTC_SPL_RSHIFT_W32(o, 12); in WebRtcSpl_DownsampleFast()
Dsignal_processing_unittest.cc96 EXPECT_EQ(8191, WEBRTC_SPL_RSHIFT_W32(a, 1)); in TEST_F()
/external/webrtc/src/modules/audio_processing/agc/
Ddigital_agc.c208 numFIX -= WEBRTC_SPL_RSHIFT_W32(tmp32no1, 1); in WebRtcAgc_CalculateGainTable()
211 numFIX += WEBRTC_SPL_RSHIFT_W32(tmp32no1, 1); in WebRtcAgc_CalculateGainTable()
223 tmp32 = WEBRTC_SPL_RSHIFT_W32(tmp32, 13); // in Q14 in WebRtcAgc_CalculateGainTable()
227 tmp32 = WEBRTC_SPL_RSHIFT_W32(tmp32, 14); // in Q14 in WebRtcAgc_CalculateGainTable()
234 intPart = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(tmp32, 14); in WebRtcAgc_CalculateGainTable()
236 if (WEBRTC_SPL_RSHIFT_W32(fracPart, 13)) in WebRtcAgc_CalculateGainTable()
241 tmp32no2 = WEBRTC_SPL_RSHIFT_W32(tmp32no2, 13); in WebRtcAgc_CalculateGainTable()
247 tmp32no2 = WEBRTC_SPL_RSHIFT_W32(tmp32no2, 13); in WebRtcAgc_CalculateGainTable()
362 logratio = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(tmp32 - stt->vadFarend.logRatio, 2); in WebRtcAgc_ProcessDigital()
383 decay = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(tmp32, 10); in WebRtcAgc_ProcessDigital()
[all …]
Danalog_agc.c232 sample = WEBRTC_SPL_RSHIFT_W32(tmp32, 12); in WebRtcAgc_AddMic()
248 sample = WEBRTC_SPL_RSHIFT_W32(tmp32, 12); in WebRtcAgc_AddMic()
485 tmpFlt = WEBRTC_SPL_RSHIFT_W32(WEBRTC_SPL_MUL_16_U16(in_near[ii], gain), 10); in WebRtcAgc_VirtualMic()
514 tmpFlt = WEBRTC_SPL_RSHIFT_W32(tmpFlt, 10); in WebRtcAgc_VirtualMic()
529 *micLevelOut = WEBRTC_SPL_RSHIFT_W32(stt->micGainIdx, stt->scale); in WebRtcAgc_VirtualMic()
597 tmpW16 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(env[i], 20); in WebRtcAgc_SaturationCtrl()
648 midVal = WEBRTC_SPL_RSHIFT_W32(stt->maxAnalog + stt->minLevel + 1, 1); in WebRtcAgc_ZeroCtrl()
653 *inMicLevel = WEBRTC_SPL_RSHIFT_W32(tmp32, 10); in WebRtcAgc_ZeroCtrl()
703 stt->vadThreshold = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(tmp32, 5); in WebRtcAgc_SpeakerInactiveCtrl()
790 tmp32 = WEBRTC_SPL_RSHIFT_W32((stt->maxLevel - stt->minLevel) * (WebRtc_Word32)51, 9); in WebRtcAgc_ProcessAnalog()
[all …]
/external/webrtc/src/modules/audio_processing/ns/
Dnsx_core.c458 tmp16 = (WebRtc_Word16) WEBRTC_SPL_RSHIFT_W32(tmp32no2, 21); in UpdateNoiseEstimate()
462 tmp32no1 = WEBRTC_SPL_RSHIFT_W32(tmp32no1, -tmp16); in UpdateNoiseEstimate()
712 tmp32no2 = WEBRTC_SPL_RSHIFT_W32(tmp32no2, 15); // Q11 in WebRtcNsx_CalcParametricNoiseEstimate()
719 int_part = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(tmp32no1, 11); in WebRtcNsx_CalcParametricNoiseEstimate()
727 tmp32no2 = 2048 - WEBRTC_SPL_RSHIFT_W32(tmp32no2, 10); in WebRtcNsx_CalcParametricNoiseEstimate()
730 tmp32no2 = WEBRTC_SPL_RSHIFT_W32(WEBRTC_SPL_MUL_16_16(frac_part, 804), 10); in WebRtcNsx_CalcParametricNoiseEstimate()
1176 intPart = -(WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(logCurSpectralFlatness, 17); in WebRtcNsx_ComputeSpectralFlatness()
1179 currentSpectralFlatness = WEBRTC_SPL_RSHIFT_W32(tmp32, intPart); in WebRtcNsx_ComputeSpectralFlatness()
1188 + WEBRTC_SPL_RSHIFT_W32(tmp32, 14)); // Q10 in WebRtcNsx_ComputeSpectralFlatness()
1223 avgPauseFX = WEBRTC_SPL_RSHIFT_W32(avgPauseFX, inst->stages - 1); in WebRtcNsx_ComputeSpectralDifference()
[all …]
Dnsx_core_neon.c83 tmp16 = (int16_t) WEBRTC_SPL_RSHIFT_W32(tmp32no2, 21); in UpdateNoiseEstimateNeon()
87 tmp32no1 = WEBRTC_SPL_RSHIFT_W32(tmp32no1, -tmp16); in UpdateNoiseEstimateNeon()
/external/webrtc/src/common_audio/vad/
Dvad_core.c407 h0 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(h0test, 12); // Q15 in WebRtcVad_GmmProbability()
417 h1 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(h1test, 12); // Q15 in WebRtcVad_GmmProbability()
500 tmp16_1 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(nmid, 6); // Q8 in WebRtcVad_GmmProbability()
578 tmp32_2 = WEBRTC_SPL_RSHIFT_W32(tmp32_1, 4); // Q20 in WebRtcVad_GmmProbability()
605 tmp32_1 = WEBRTC_SPL_RSHIFT_W32(tmp32_2, 14); in WebRtcVad_GmmProbability()
636 diff = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(smid, 9); in WebRtcVad_GmmProbability()
637 tmp16 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(nmid, 9); in WebRtcVad_GmmProbability()
674 tmp16_2 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(smid, 7); in WebRtcVad_GmmProbability()
683 tmp16_2 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(nmid, 7); in WebRtcVad_GmmProbability()
Dvad_filterbank.c68 filter_state[2] = (int16_t) WEBRTC_SPL_RSHIFT_W32 (tmp32, 14); in WebRtcVad_HpOutput()
91 tmp16 = (int16_t) WEBRTC_SPL_RSHIFT_W32(tmp32, 16); in WebRtcVad_Allpass()
99 *filter_state = (int16_t) WEBRTC_SPL_RSHIFT_W32(state32, 16); in WebRtcVad_Allpass()
/external/webrtc/src/modules/audio_processing/aecm/
Daecm_core.c1121 WEBRTC_SPL_RSHIFT_W32(aecm->channelAdapt32[i], shiftChFar), in WebRtcAecm_UpdateChannel()
1182 WEBRTC_SPL_RSHIFT_W32(tmp32no1, shiftNum), in WebRtcAecm_UpdateChannel()
1187 WEBRTC_SPL_RSHIFT_W32(-tmp32no1, shiftNum), in WebRtcAecm_UpdateChannel()
1210 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(aecm->channelAdapt32[i], 16); in WebRtcAecm_UpdateChannel()
1705 aecm->echoFilt[i] += WEBRTC_SPL_RSHIFT_W32(WEBRTC_SPL_MUL_32_16(tmp32no1, 50), 8); in WebRtcAecm_ProcessBlock()
1731 (WebRtc_UWord32)WEBRTC_SPL_RSHIFT_W32(aecm->echoFilt[i], tmp16no1), in WebRtcAecm_ProcessBlock()
1750 tmp16no2 = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(tmp32no1, 4); in WebRtcAecm_ProcessBlock()
2012 tmp32 = WEBRTC_SPL_RSHIFT_W32(aecm->noiseEst[i], shiftFromNearToNoise); in ComfortNoise()
/external/webrtc/src/modules/audio_processing/
Dhigh_pass_filter_impl.cc98 data[i] = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(tmp_int32, 12); in Filter()
/external/webrtc/src/common_audio/signal_processing/include/
Dsignal_processing_library.h150 #define WEBRTC_SPL_RSHIFT_W32(x, c) ((x) >> (c)) macro