/external/webrtc/src/common_audio/signal_processing/ |
D | levinson_durbin.c | 82 temp1W32 = (((WEBRTC_SPL_MUL_16_16(K_hi, K_low) >> 14) + WEBRTC_SPL_MUL_16_16(K_hi, K_hi)) in WebRtcSpl_LevinsonDurbin() 94 temp1W32 = ((WEBRTC_SPL_MUL_16_16(R_hi[0], tmp_hi) in WebRtcSpl_LevinsonDurbin() 95 + (WEBRTC_SPL_MUL_16_16(R_hi[0], tmp_low) >> 15) in WebRtcSpl_LevinsonDurbin() 96 + (WEBRTC_SPL_MUL_16_16(R_low[0], tmp_hi) >> 15)) << 1); in WebRtcSpl_LevinsonDurbin() 122 temp1W32 += ((WEBRTC_SPL_MUL_16_16(R_hi[j], A_hi[i-j]) << 1) in WebRtcSpl_LevinsonDurbin() 123 + (((WEBRTC_SPL_MUL_16_16(R_hi[j], A_low[i-j]) >> 15) in WebRtcSpl_LevinsonDurbin() 124 + (WEBRTC_SPL_MUL_16_16(R_low[j], A_hi[i-j]) >> 15)) << 1)); in WebRtcSpl_LevinsonDurbin() 186 temp1W32 += ((WEBRTC_SPL_MUL_16_16(K_hi, A_hi[i-j]) in WebRtcSpl_LevinsonDurbin() 187 + (WEBRTC_SPL_MUL_16_16(K_hi, A_low[i-j]) >> 15) in WebRtcSpl_LevinsonDurbin() 188 + (WEBRTC_SPL_MUL_16_16(K_low, A_hi[i-j]) >> 15)) << 1); in WebRtcSpl_LevinsonDurbin() [all …]
|
D | division_operations.c | 110 tmpW32 = (WEBRTC_SPL_MUL_16_16(den_hi, approx) << 1) in WebRtcSpl_DivW32HiLow() 111 + ((WEBRTC_SPL_MUL_16_16(den_low, approx) >> 15) << 1); in WebRtcSpl_DivW32HiLow() 122 tmpW32 = ((WEBRTC_SPL_MUL_16_16(tmp_hi, approx) + (WEBRTC_SPL_MUL_16_16(tmp_low, approx) in WebRtcSpl_DivW32HiLow() 137 tmpW32 = (WEBRTC_SPL_MUL_16_16(num_hi, tmp_hi) + (WEBRTC_SPL_MUL_16_16(num_hi, tmp_low) in WebRtcSpl_DivW32HiLow() 138 >> 15) + (WEBRTC_SPL_MUL_16_16(num_low, tmp_hi) >> 15)); in WebRtcSpl_DivW32HiLow()
|
D | complex_fft.c | 198 tr32 = WEBRTC_SPL_RSHIFT_W32((WEBRTC_SPL_MUL_16_16(wr, frfi[2 * j]) in WebRtcSpl_ComplexFFT() 199 - WEBRTC_SPL_MUL_16_16(wi, frfi[2 * j + 1])), 15); in WebRtcSpl_ComplexFFT() 201 ti32 = WEBRTC_SPL_RSHIFT_W32((WEBRTC_SPL_MUL_16_16(wr, frfi[2 * j + 1]) in WebRtcSpl_ComplexFFT() 202 + WEBRTC_SPL_MUL_16_16(wi, frfi[2 * j])), 15); in WebRtcSpl_ComplexFFT() 256 tr32 = WEBRTC_SPL_MUL_16_16(wr, frfi[2 * j]) in WebRtcSpl_ComplexFFT() 257 - WEBRTC_SPL_MUL_16_16(wi, frfi[2 * j + 1]) + CFFTRND; in WebRtcSpl_ComplexFFT() 259 ti32 = WEBRTC_SPL_MUL_16_16(wr, frfi[2 * j + 1]) in WebRtcSpl_ComplexFFT() 260 + WEBRTC_SPL_MUL_16_16(wi, frfi[2 * j]) + CFFTRND; in WebRtcSpl_ComplexFFT() 397 tr32 = WEBRTC_SPL_MUL_16_16(wr, frfi[2 * j]) in WebRtcSpl_ComplexIFFT() 398 - WEBRTC_SPL_MUL_16_16(wi, frfi[2 * j + 1]) + CIFFTRND; in WebRtcSpl_ComplexIFFT() [all …]
|
D | cross_correlation.c | 182 (*CrossCorrPtr) += WEBRTC_SPL_MUL_16_16((*seq1Ptr), (*seq2Ptr)); in WebRtcSpl_CrossCorrelation() 185 (*CrossCorrPtr) += WEBRTC_SPL_MUL_16_16((*seq1Ptr), (*seq2Ptr)); in WebRtcSpl_CrossCorrelation() 188 (*CrossCorrPtr) += WEBRTC_SPL_MUL_16_16((*seq1Ptr), (*seq2Ptr)); in WebRtcSpl_CrossCorrelation() 191 (*CrossCorrPtr) += WEBRTC_SPL_MUL_16_16((*seq1Ptr), (*seq2Ptr)); in WebRtcSpl_CrossCorrelation() 194 (*CrossCorrPtr) += WEBRTC_SPL_MUL_16_16((*seq1Ptr), (*seq2Ptr)); in WebRtcSpl_CrossCorrelation() 197 (*CrossCorrPtr) += WEBRTC_SPL_MUL_16_16((*seq1Ptr), (*seq2Ptr)); in WebRtcSpl_CrossCorrelation() 200 (*CrossCorrPtr) += WEBRTC_SPL_MUL_16_16((*seq1Ptr), (*seq2Ptr)); in WebRtcSpl_CrossCorrelation() 203 (*CrossCorrPtr) += WEBRTC_SPL_MUL_16_16((*seq1Ptr), (*seq2Ptr)); in WebRtcSpl_CrossCorrelation() 210 (*CrossCorrPtr) += WEBRTC_SPL_MUL_16_16((*seq1Ptr), (*seq2Ptr)); in WebRtcSpl_CrossCorrelation()
|
D | dot_product_with_scale.c | 42 sum += WEBRTC_SPL_MUL_16_16(*vector1, *vector2); in WebRtcSpl_DotProductWithScale() 45 sum += WEBRTC_SPL_MUL_16_16(*vector1, *vector2); in WebRtcSpl_DotProductWithScale() 48 sum += WEBRTC_SPL_MUL_16_16(*vector1, *vector2); in WebRtcSpl_DotProductWithScale() 51 sum += WEBRTC_SPL_MUL_16_16(*vector1, *vector2); in WebRtcSpl_DotProductWithScale() 58 sum += WEBRTC_SPL_MUL_16_16(*vector1, *vector2); in WebRtcSpl_DotProductWithScale()
|
D | spl_sqrt.c | 51 B = B + WEBRTC_SPL_MUL_16_16(-20480, t16) * 2; // B = B - 0.625*A in WebRtcSpl_SqrtLocal() 55 A = WEBRTC_SPL_MUL_16_16(x_half, t16) * 2; // A = (x/2)^5 in WebRtcSpl_SqrtLocal() 57 B = B + WEBRTC_SPL_MUL_16_16(28672, t16) * 2; // B = B + 0.875*A in WebRtcSpl_SqrtLocal() 61 A = WEBRTC_SPL_MUL_16_16(x_half, t16) * 2; // A = x/2^3 in WebRtcSpl_SqrtLocal() 169 A = WEBRTC_SPL_MUL_16_16(k_sqrt_2, t16) * 2; // A = 1/sqrt(2)*t16 in WebRtcSpl_Sqrt()
|
D | auto_correlation.c | 87 sum += WEBRTC_SPL_MUL_16_16(*xptr1, *xptr2); in WebRtcSpl_AutoCorrelation() 90 sum += WEBRTC_SPL_MUL_16_16(*xptr1, *xptr2); in WebRtcSpl_AutoCorrelation() 93 sum += WEBRTC_SPL_MUL_16_16(*xptr1, *xptr2); in WebRtcSpl_AutoCorrelation() 96 sum += WEBRTC_SPL_MUL_16_16(*xptr1, *xptr2); in WebRtcSpl_AutoCorrelation() 103 sum += WEBRTC_SPL_MUL_16_16(*xptr1, *xptr2); in WebRtcSpl_AutoCorrelation()
|
D | filter_ar.c | 54 o -= WEBRTC_SPL_MUL_16_16(*a_ptr, *filtered_ptr--); in WebRtcSpl_FilterAR() 55 oLOW -= WEBRTC_SPL_MUL_16_16(*a_ptr++, *filtered_low_ptr--); in WebRtcSpl_FilterAR() 59 o -= WEBRTC_SPL_MUL_16_16(*a_ptr, *state_ptr--); in WebRtcSpl_FilterAR() 60 oLOW -= WEBRTC_SPL_MUL_16_16(*a_ptr++, *state_low_ptr--); in WebRtcSpl_FilterAR()
|
D | ilbc_specific_functions.c | 38 out[i] = (WebRtc_Word16)((WEBRTC_SPL_MUL_16_16(vector1[i], scale1) in WebRtcSpl_ScaleAndAddVectorsWithRound() 39 + WEBRTC_SPL_MUL_16_16(vector2[i], scale2) + roundVal) >> right_shifts); in WebRtcSpl_ScaleAndAddVectorsWithRound() 100 (*outPtr++) += (WebRtc_Word16)((WEBRTC_SPL_MUL_16_16((*inPtr++), gain) in WebRtcSpl_AddAffineVectorToVector() 117 (*outPtr++) = (WebRtc_Word16)((WEBRTC_SPL_MUL_16_16((*inPtr++), gain) in WebRtcSpl_AffineTransformVector()
|
D | filter_ar_fast_q12.c | 35 o = WEBRTC_SPL_MUL_16_16(*x_ptr++, *a_ptr++); in WebRtcSpl_FilterARFastQ12() 39 o -= WEBRTC_SPL_MUL_16_16(*a_ptr++,*state_ptr--); in WebRtcSpl_FilterARFastQ12()
|
D | downsample_fast.c | 32 + (WebRtc_Word16)WEBRTC_SPL_MUL_16_16(factor, (out_length - 1)) + 1; in WebRtcSpl_DownsampleFast() 48 o += WEBRTC_SPL_MUL_16_16(*b_ptr++, *x_ptr--); in WebRtcSpl_DownsampleFast()
|
D | lpc_to_refl_coef.c | 33 tmp_inv_denom32 = ((WebRtc_Word32)1073741823) - WEBRTC_SPL_MUL_16_16(k16[m], k16[m]); in WebRtcSpl_LpcToReflCoef() 43 - WEBRTC_SPL_LSHIFT_W32(WEBRTC_SPL_MUL_16_16(k16[m], a16[m-k+1]), 1); in WebRtcSpl_LpcToReflCoef()
|
D | sqrt_of_one_minus_x_squared.c | 30 sq = WEBRTC_SPL_MUL_16_16(tmp, tmp); // x^2 in Q30 in WebRtcSpl_SqrtOfOneMinusXSquared()
|
D | filter_ma_fast_q12.c | 37 o += WEBRTC_SPL_MUL_16_16(*b_ptr++, *x_ptr--); in WebRtcSpl_FilterMAFastQ12()
|
/external/webrtc/src/modules/audio_processing/ |
D | high_pass_filter_impl.cc | 64 WEBRTC_SPL_MUL_16_16(y[1], ba[3]); // -a[1] * y[i-1] (low part) in Filter() 66 WEBRTC_SPL_MUL_16_16(y[3], ba[4]); // -a[2] * y[i-2] (low part) in Filter() 69 WEBRTC_SPL_MUL_16_16(y[0], ba[3]); // -a[1] * y[i-1] (high part) in Filter() 71 WEBRTC_SPL_MUL_16_16(y[2], ba[4]); // -a[2] * y[i-2] (high part) in Filter() 74 tmp_int32 += WEBRTC_SPL_MUL_16_16(data[i], ba[0]); // b[0]*x[0] in Filter() 75 tmp_int32 += WEBRTC_SPL_MUL_16_16(x[0], ba[1]); // b[1]*x[i-1] in Filter() 76 tmp_int32 += WEBRTC_SPL_MUL_16_16(x[1], ba[2]); // b[2]*x[i-2] in Filter()
|
/external/webrtc/src/modules/audio_processing/agc/ |
D | digital_agc.c | 90 tmp32no1 = WEBRTC_SPL_MUL_16_16(digCompGaindB - analogTarget, kCompRatio - 1); in WebRtcAgc_CalculateGainTable() 94 tmp32no1 = WEBRTC_SPL_MUL_16_16(maxGain, kCompRatio); in WebRtcAgc_CalculateGainTable() 107 tmp32no1 = WEBRTC_SPL_MUL_16_16(digCompGaindB, kCompRatio - 1); in WebRtcAgc_CalculateGainTable() 142 tmp16 = (WebRtc_Word16)WEBRTC_SPL_MUL_16_16(kCompRatio - 1, i - 1); // Q0 in WebRtcAgc_CalculateGainTable() 361 tmp32 = WEBRTC_SPL_MUL_16_16(3, logratio); in WebRtcAgc_ProcessDigital() 382 tmp32 = WEBRTC_SPL_MUL_16_16((lower_thr - logratio), 65); in WebRtcAgc_ProcessDigital() 396 tmp32 = WEBRTC_SPL_MUL_16_16((stt->vadNearend.stdLongTerm - 4000), decay); in WebRtcAgc_ProcessDigital() 417 nrg = WEBRTC_SPL_MUL_16_16(out[k * L + n], out[k * L + n]); in WebRtcAgc_ProcessDigital() 496 tmp32 = WEBRTC_SPL_MUL_16_16(stt->gatePrevious, 7); in WebRtcAgc_ProcessDigital() 748 tmp32 = (WEBRTC_SPL_MUL_16_16(state->meanShortTerm, 15) + (WebRtc_Word32)dB); in WebRtcAgc_ProcessVad() [all …]
|
D | analog_agc.c | 209 tmp32 = WEBRTC_SPL_MUL_16_16(GAIN_TBL_LEN - 1, tmp16); in WebRtcAgc_AddMic() 281 nrg = WEBRTC_SPL_MUL_16_16(in_mic[i * L + n], in_mic[i * L + n]); in WebRtcAgc_AddMic() 425 frameNrg = WEBRTC_SPL_MUL_16_16(in_near[0], in_near[0]); in WebRtcAgc_VirtualMic() 433 nrg = WEBRTC_SPL_MUL_16_16(in_near[sampleCntr], in_near[sampleCntr]); in WebRtcAgc_VirtualMic() 702 tmp32 += WEBRTC_SPL_MUL_16_16((WebRtc_Word16)31, stt->vadThreshold); in WebRtcAgc_SpeakerInactiveCtrl()
|
/external/webrtc/src/common_audio/vad/ |
D | vad_filterbank.c | 56 tmp32 = (int32_t) WEBRTC_SPL_MUL_16_16(kHpZeroCoefs[0], (*in_ptr)); in WebRtcVad_HpOutput() 57 tmp32 += (int32_t) WEBRTC_SPL_MUL_16_16(kHpZeroCoefs[1], filter_state[0]); in WebRtcVad_HpOutput() 58 tmp32 += (int32_t) WEBRTC_SPL_MUL_16_16(kHpZeroCoefs[2], in WebRtcVad_HpOutput() 64 tmp32 -= (int32_t) WEBRTC_SPL_MUL_16_16(kHpPoleCoefs[1], in WebRtcVad_HpOutput() 66 tmp32 -= (int32_t) WEBRTC_SPL_MUL_16_16(kHpPoleCoefs[2], filter_state[3]); in WebRtcVad_HpOutput() 90 tmp32 = state32 + WEBRTC_SPL_MUL_16_16(filter_coefficients, (*in_vector)); in WebRtcVad_Allpass() 94 state32 = in32 - WEBRTC_SPL_MUL_16_16(filter_coefficients, tmp16); in WebRtcVad_Allpass()
|
D | vad_core.c | 438 dotVal += WEBRTC_SPL_MUL_16_16(ratvec, kSpectrumWeight[n]); in WebRtcVad_GmmProbability() 497 nmid = WEBRTC_SPL_MUL_16_16(kNoiseDataWeights[n], *nmean1ptr); // Q7 * Q7 in WebRtcVad_GmmProbability() 498 nmid += WEBRTC_SPL_MUL_16_16(kNoiseDataWeights[n+NUM_CHANNELS], in WebRtcVad_GmmProbability() 628 nmid = WEBRTC_SPL_MUL_16_16(kNoiseDataWeights[n], *nmean1ptr); in WebRtcVad_GmmProbability() 629 nmid += WEBRTC_SPL_MUL_16_16(kNoiseDataWeights[n+NUM_CHANNELS], *nmean2ptr); in WebRtcVad_GmmProbability() 632 smid = WEBRTC_SPL_MUL_16_16(kSpeechDataWeights[n], *smean1ptr); in WebRtcVad_GmmProbability() 633 smid += WEBRTC_SPL_MUL_16_16(kSpeechDataWeights[n+NUM_CHANNELS], *smean2ptr); in WebRtcVad_GmmProbability() 653 smid = WEBRTC_SPL_MUL_16_16(tmp16, kSpeechDataWeights[n]); in WebRtcVad_GmmProbability() 658 smid += WEBRTC_SPL_MUL_16_16(tmp16, kSpeechDataWeights[n+NUM_CHANNELS]); in WebRtcVad_GmmProbability() 664 nmid = WEBRTC_SPL_MUL_16_16(tmp16, kNoiseDataWeights[n]); in WebRtcVad_GmmProbability() [all …]
|
D | vad_sp.c | 175 tmp32 = WEBRTC_SPL_MUL_16_16(alpha + 1, self->mean_value[channel]); in WebRtcVad_FindMinimum() 176 tmp32 += WEBRTC_SPL_MUL_16_16(WEBRTC_SPL_WORD16_MAX - alpha, current_median); in WebRtcVad_FindMinimum()
|
D | vad_gmm.c | 82 return WEBRTC_SPL_MUL_16_16(inv_std, exp_value); in WebRtcVad_GaussianProbability()
|
/external/webrtc/src/common_audio/signal_processing/include/ |
D | signal_processing_library.h | 86 #define WEBRTC_SPL_MUL_16_16(a, b) \ macro 89 (WEBRTC_SPL_MUL_16_16(a, b >> 16) \ 90 + ((WEBRTC_SPL_MUL_16_16(a, (b & 0xffff) >> 1) + 0x4000) >> 15)) 102 ((WEBRTC_SPL_MUL_16_16(a, (b) >> 16) << 5) \ 105 ((WEBRTC_SPL_MUL_16_16(a, (b) >> 16) << 2) \ 108 ((WEBRTC_SPL_MUL_16_16(a, (b) >> 16) << 1) \ 112 #define WEBRTC_SPL_MUL_16_16(a, b) \ macro 117 (WEBRTC_SPL_MUL_16_16(a, b) >> (c)) 120 ((WEBRTC_SPL_MUL_16_16(a, b) + ((WebRtc_Word32) \ 123 ((WEBRTC_SPL_MUL_16_16(a, b) + ((WebRtc_Word32) (1 << 14))) >> 15)
|
D | spl_inl_armv7.h | 41 static __inline WebRtc_Word32 WEBRTC_SPL_MUL_16_16(WebRtc_Word16 a, in WEBRTC_SPL_MUL_16_16() function
|
/external/webrtc/src/modules/audio_processing/ns/ |
D | nsx_core.c | 455 tmp32no2 = WEBRTC_SPL_MUL_16_16(kExp2Const, in UpdateNoiseEstimate() 522 countProd = (WebRtc_Word16)WEBRTC_SPL_MUL_16_16(counter, countDiv); in NoiseEstimationC() 711 tmp32no2 = WEBRTC_SPL_MUL_16_16(pink_noise_exp_avg, kLogIndex[freq_index]); // Q26 in WebRtcNsx_CalcParametricNoiseEstimate() 726 tmp32no2 = WEBRTC_SPL_MUL_16_16(2048 - frac_part, 1244); // Q21 in WebRtcNsx_CalcParametricNoiseEstimate() 730 tmp32no2 = WEBRTC_SPL_RSHIFT_W32(WEBRTC_SPL_MUL_16_16(frac_part, 804), 10); in WebRtcNsx_CalcParametricNoiseEstimate() 985 tmp32 = WEBRTC_SPL_MUL_16_16(inst->histLrt[i], j); in WebRtcNsx_FeatureParameterExtraction() 993 tmp32 = WEBRTC_SPL_MUL_16_16(inst->histLrt[i], j); in WebRtcNsx_FeatureParameterExtraction() 1237 varMagnUFX += (WebRtc_UWord32)WEBRTC_SPL_MUL_16_16(tmp16no1, tmp16no1); // Q(2*qMagn) in WebRtcNsx_ComputeSpectralDifference() 1373 indPriorFX = WEBRTC_SPL_MUL_16_16(inst->weightLogLrt, tmpIndFX); // 6*Q14 in WebRtcNsx_SpeechNoiseProb() 1406 indPriorFX += WEBRTC_SPL_MUL_16_16(inst->weightSpecFlat, tmpIndFX); // 6*Q14 in WebRtcNsx_SpeechNoiseProb() [all …]
|
D | nsx_core_neon.c | 79 int32_t tmp32no2 = WEBRTC_SPL_MUL_16_16(kExp2Const, in UpdateNoiseEstimateNeon() 156 countProd = (int16_t)WEBRTC_SPL_MUL_16_16(counter, countDiv); in NoiseEstimationNeon()
|