/external/webrtc/src/common_audio/signal_processing/ |
levinson_durbin.c | 46 temp1W32 = WEBRTC_SPL_LSHIFT_W32(R[i], norm); 50 - WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)R_hi[i], 16)), 1); 55 temp2W32 = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)R_hi[1],16) 56 + WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)R_low[1],1); // R[1] in Q31 68 - WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)K_hi, 16)), 1); 78 - WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)A_hi[1], 16)), 1); 91 - WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)tmp_hi, 16)), 1); 101 temp1W32 = WEBRTC_SPL_LSHIFT_W32(temp1W32, Alpha_exp); 104 - WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)Alpha_hi, 16)), 1); 127 temp1W32 = WEBRTC_SPL_LSHIFT_W32(temp1W32, 4) [all...] |
lpc_to_refl_coef.c | 42 tmp32[k] = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)a16[k], 16) 43 - WEBRTC_SPL_LSHIFT_W32(WEBRTC_SPL_MUL_16_16(k16[m], a16[m-k+1]), 1); 54 k16[m - 1] = (WebRtc_Word16)WEBRTC_SPL_LSHIFT_W32(tmp32[m], 2); //Q13<<2 => Q15
|
division_operations.c | 119 - WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)tmp_hi, 16)), 1); 128 - WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)tmp_hi, 16)), 1); 133 - WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)num_hi, 16)), 1); 141 tmpW32 = WEBRTC_SPL_LSHIFT_W32(tmpW32, 3);
|
splitting_filter.c | 134 half_in2[i] = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)in_data[k], 10); 135 half_in1[i] = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)in_data[k + 1], 10); 175 half_in1[i] = WEBRTC_SPL_LSHIFT_W32(tmp, 10); 177 half_in2[i] = WEBRTC_SPL_LSHIFT_W32(tmp, 10);
|
spl_sqrt.c | 146 A = WEBRTC_SPL_LSHIFT_W32(A, sh); // Normalize A 160 A = (WebRtc_Word32)WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)x_norm, 16);
|
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/source/ |
transform.c | 154 inre1Q9[k] = (WebRtc_Word16) WEBRTC_SPL_LSHIFT_W32(tmpreQ16[k], sh); //Q(16+sh) 155 inre2Q9[k] = (WebRtc_Word16) WEBRTC_SPL_LSHIFT_W32(tmpimQ16[k], sh); //Q(16+sh) 158 WebRtc_Word32 round = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)1, -sh-1); 176 tmpreQ16[k] = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)inre1Q9[k], -sh); //Q(16+sh) -> Q16 177 tmpimQ16[k] = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)inre2Q9[k], -sh); //Q(16+sh) -> Q16 218 tmpInRe = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32) inreQ7[k], 9); // Q7 -> Q16 219 tmpInIm = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32) inimQ7[k], 9); // Q7 -> Q16 220 tmpInRe2 = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32) inreQ7[FRAMESAMPLES/2 - 1 - k], 9); // Q7 -> Q16 221 tmpInIm2 = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32) inimQ7[FRAMESAMPLES/2 - 1 - k], 9); // Q7 -> Q16 249 inreQ7[k] = (WebRtc_Word16) WEBRTC_SPL_LSHIFT_W32(outre1Q16[k], sh); //Q(16+sh [all...] |
arith_routines_hist.c | 104 W_upper = WEBRTC_SPL_LSHIFT_W32(W_upper, 8); 109 *streamPtr = (WebRtc_UWord16) WEBRTC_SPL_LSHIFT_W32( 117 streamData->streamval = WEBRTC_SPL_LSHIFT_W32(streamData->streamval, 8); 178 streamval = WEBRTC_SPL_LSHIFT_W32((WebRtc_UWord32)*streamPtr++, 16); 234 streamval = WEBRTC_SPL_LSHIFT_W32(streamval, 8) | 238 streamval = WEBRTC_SPL_LSHIFT_W32(streamval, 8) | 242 W_upper = WEBRTC_SPL_LSHIFT_W32(W_upper, 8); 384 streamval = WEBRTC_SPL_LSHIFT_W32(streamval, 8) | (*streamPtr++ & 0x00FF); 387 streamval = WEBRTC_SPL_LSHIFT_W32(streamval, 8) | (*streamPtr >> 8); 390 W_upper = WEBRTC_SPL_LSHIFT_W32(W_upper, 8) [all...] |
lpc_masking_model.c | 45 tmp32b = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)a16[k], 16) - 46 WEBRTC_SPL_LSHIFT_W32(WEBRTC_SPL_MUL_16_16(k16[m], a16[m-k+1]), 1); 56 k16[m-1] = (WebRtc_Word16) WEBRTC_SPL_LSHIFT_W32(tmp32[m], 3); //Q12<<3 => Q15 91 temp1W32 = WEBRTC_SPL_LSHIFT_W32(R[i], norm); 94 R_low[i] = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32((temp1W32 - WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)R_hi[i], 16)), 1); 99 temp2W32 = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)R_hi[1],16) + 100 WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)R_low[1],1); /* R[1] in Q31 */ 110 K_low = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32((temp1W32 - WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)K_hi, 16)), 1); 119 A_low[1] = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32((temp1W32 - WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)A_hi[1], 16)), 1); 123 temp1W32 = WEBRTC_SPL_LSHIFT_W32((WEBRTC_SPL_RSHIFT_W32(WEBRTC_SPL_MUL_16_16(K_hi, K_low), 14) [all...] |
filters.c | 83 a = WEBRTC_SPL_LSHIFT_W32(a, 1); // Q15 -> Q16 89 WEBRTC_SPL_LSHIFT_W32(a,1), 90 WEBRTC_SPL_LSHIFT_W32((WebRtc_UWord32)InOut16[n], 16)); // Q15<<1 + Q0<<16 = Q16 + Q16 = Q16 112 state_in[WEBRTC_SPL_MUL_16_16(2, ALLPASSSECTIONS)] = WEBRTC_SPL_LSHIFT_W32((WebRtc_UWord32)in[N-1],16);
|
lattice.c | 135 gain32 = WEBRTC_SPL_LSHIFT_W32(gain32, gain_sh); //Q(17+gain_sh) 150 fQ15vec[i] = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)lat_inQ0[i + temp1], 15); //Q15 151 gQ15[0][i] = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)lat_inQ0[i + temp1], 15); //Q15 165 t16b = (WebRtc_Word16) (tmp32-WEBRTC_SPL_LSHIFT_W32(((WebRtc_Word32)t16a), 16)); 262 tmp32 = WEBRTC_SPL_LSHIFT_W32(gain_lo_hiQ17[temp3], 10); // Q27 278 tmp32 = WEBRTC_SPL_LSHIFT_W32(lat_inQ25[i + temp1], 1); //Q25->Q26
|
arith_routines.c | 78 *streamPtr = (WebRtc_UWord16) WEBRTC_SPL_LSHIFT_W32(
|
arith_routines_logist.c | 269 res = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)1, 382 streamVal = WEBRTC_SPL_LSHIFT_W32(streamVal, 8) | (*streamPtr++ & 0x00FF); 385 streamVal = WEBRTC_SPL_LSHIFT_W32(streamVal, 8) | 389 W_upper = WEBRTC_SPL_LSHIFT_W32(W_upper, 8);
|
pitch_estimator.c | 44 frac=(WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(((WebRtc_UWord32)(WEBRTC_SPL_LSHIFT_W32(x, zeros))&0x7FFFFFFF), 23); 47 lg2= (WEBRTC_SPL_LSHIFT_W32((31-zeros), 8)+frac); 171 oneQ8 = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)1, 8); // 1.00 in Q8 295 old_lagQ8= WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)old_lagQ,1); //Q8 413 xq[0] = WEBRTC_SPL_LSHIFT_W32(xq[0], 8); 428 tmp32b = WEBRTC_SPL_LSHIFT_W32(tmp32a, 1); 442 tmp32a = WEBRTC_SPL_LSHIFT_W32(k, 7); // 0.5*k Q8 443 tmp32b = (WebRtc_Word32) (WEBRTC_SPL_LSHIFT_W32(tmp32a, 1)) - ratq; // Q8 485 xq[0] = WEBRTC_SPL_LSHIFT_W32(xq[0], 8); 501 tmp32b = WEBRTC_SPL_LSHIFT_W32(tmp32a, 1) [all...] |
filterbanks.c | 41 a = WEBRTC_SPL_LSHIFT_W32(a, 1); // Q15 -> Q16 44 FilterState[j] = WEBRTC_SPL_ADD_SAT_W32(WEBRTC_SPL_LSHIFT_W32(a,1), WEBRTC_SPL_LSHIFT_W32((WebRtc_UWord32)InOut16[n],16)); // Q15<<1 + Q0<<16 = Q16 + Q16 = Q16 104 c = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)in, 2) - a2 - b2; // In Q2. 108 state0 = WEBRTC_SPL_LSHIFT_W32(c, 2); // Write state as Q4
|
entropy_coding.c | 44 roundVal = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)1, qDomain-1); 83 frac=(WebRtc_Word16)WEBRTC_SPL_RSHIFT_U32(WEBRTC_SPL_LSHIFT_W32(arg, zeros)&0x7FFFFFFF, 23); 84 log2=(WebRtc_Word16)(WEBRTC_SPL_LSHIFT_W32(31-zeros, 8)+frac); // log2(x) in Q8 113 exp16 = WEBRTC_SPL_LSHIFT_W32(1, axINT); //Q0 116 exp = WEBRTC_SPL_LSHIFT_W32(exp, 9); //Q17 203 sum = WEBRTC_SPL_LSHIFT_W32(CorrQ11[0], 7); 233 CurveQ16[FRAMESAMPLES/4-1 - k] = CurveQ16[k] - WEBRTC_SPL_LSHIFT_W32(diffQ16[k], shftVal); 234 CurveQ16[k] += WEBRTC_SPL_LSHIFT_W32(diffQ16[k], shftVal); 276 sum = WEBRTC_SPL_LSHIFT_W32(CorrQ11[0], 7); 305 in_sqrt = summQ16[0] + WEBRTC_SPL_LSHIFT_W32(diffQ16[0], shftVal) [all...] |
bandwidth_estimator.c | 262 if (sendTimeDiff <= WEBRTC_SPL_LSHIFT_W32(frameSizeSampl, 1)) { 272 if(WEBRTC_SPL_LSHIFT_W32(bweStr->countRecPkts, 10) > WEBRTC_SPL_MUL_16_16(922, numPktsExpected)) { 301 WEBRTC_SPL_LSHIFT_W32(((WebRtc_Word32)INIT_BN_EST + INIT_HDR_RATE), 1)), INIT_BN_EST + INIT_HDR_RATE); 328 WEBRTC_SPL_LSHIFT_W32(frameSizeSampl, 1); 437 if (WEBRTC_SPL_LSHIFT_W32(arrTimeDiff, 6) > (WebRtc_Word32)arrTimeProj) { 438 arrTimeNoise = WEBRTC_SPL_LSHIFT_W32(arrTimeDiff, 6) - arrTimeProj; 441 arrTimeNoise = arrTimeProj - WEBRTC_SPL_LSHIFT_W32(arrTimeDiff, 6); 450 bweStr->recJitter = WEBRTC_SPL_MUL(weight, WEBRTC_SPL_LSHIFT_W32(arrTimeNoiseAbs, 5)) 463 bweStr->recJitterShortTermAbs = WEBRTC_SPL_MUL(51, WEBRTC_SPL_LSHIFT_W32(arrTimeNoiseAbs, 3)) + 469 bweStr->recJitterShortTerm = WEBRTC_SPL_MUL(205, WEBRTC_SPL_LSHIFT_W32(arrTimeNoise, 3)) * sign [all...] |
decode.c | 184 Vector_Word32_1[k] = (WebRtc_Word32) WEBRTC_SPL_LSHIFT_W32(WEBRTC_SPL_MUL_16_16(Vector_Word16_2[k], gainQ13), 3); // Q25 194 Vector_Word32_1[k] = WEBRTC_SPL_LSHIFT_W32(Vector_Word32_2[k], 9); // Q16 -> Q25
|
pitch_filter.c | 66 roundVal = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)1, qDomain - 1); 144 tmpW32 = WEBRTC_SPL_LSHIFT_W32(indW32, 7);
|
decode_plc.c | 51 lim = WEBRTC_SPL_LSHIFT_W32( (WebRtc_Word32)1, 15 + rshift )-1; 68 o = WEBRTC_SPL_ADD_SAT_W32( o, WEBRTC_SPL_LSHIFT_W32( 1, (rshift-1) ) ); 100 frac=(WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(((WebRtc_UWord32)WEBRTC_SPL_LSHIFT_W32(x, zeros)&0x7FFFFFFF), 23); 531 Vector_Word32_2[i] = WEBRTC_SPL_LSHIFT_W32(
|
/external/webrtc/src/modules/audio_processing/agc/ |
digital_agc.c | 120 + WebRtcSpl_DivW32W16ResW16(WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)limiterLvlX, 13), 147 inLevel = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)diffGain, 14) - inLevel; // Q14 189 numFIX = WEBRTC_SPL_LSHIFT_W32(WEBRTC_SPL_MUL_16_U16(maxGain, constMaxGain), 6); // Q14 202 numFIX = WEBRTC_SPL_LSHIFT_W32(numFIX, zeros); // Q(14+zeros) 217 tmp32 -= WEBRTC_SPL_LSHIFT_W32(limiterLvl, 14); // Q14 229 tmp32 += WEBRTC_SPL_LSHIFT_W32(16, 14); // in Q14 (Make sure final output is in Q16) 239 tmp32no2 = WEBRTC_SPL_LSHIFT_W32(1, 14) - fracPart; 242 tmp32no2 = WEBRTC_SPL_LSHIFT_W32(1, 14) - tmp32no2; 250 gainTable[i] = WEBRTC_SPL_LSHIFT_W32(1, intPart) 465 tmp32 = (WEBRTC_SPL_LSHIFT_W32(cur_level, zeros) & 0x7FFFFFFF) [all...] |
analog_agc.c | 458 micLevelTmp = WEBRTC_SPL_LSHIFT_W32(micLevelIn, stt->scale); 770 inMicLevelTmp = WEBRTC_SPL_LSHIFT_W32(inMicLevel, stt->scale); [all...] |
/external/webrtc/src/common_audio/vad/ |
vad_filterbank.c | 87 int32_t state32 = WEBRTC_SPL_LSHIFT_W32((int32_t) (*filter_state), 16); // Q31 93 in32 = WEBRTC_SPL_LSHIFT_W32(((int32_t) (*in_vector)), 14); 95 state32 = WEBRTC_SPL_LSHIFT_W32(state32, 1);
|
/external/webrtc/src/modules/audio_processing/ |
high_pass_filter_impl.cc | 87 WEBRTC_SPL_LSHIFT_W32(static_cast<WebRtc_Word32>(y[0]), 13)) << 2);
|
/external/webrtc/src/modules/audio_processing/aecm/ |
aecm_core.c | 350 aecm->channelAdapt32[i] = WEBRTC_SPL_LSHIFT_W32( 411 j = WEBRTC_SPL_LSHIFT_W32(i, 1); 434 j = WEBRTC_SPL_LSHIFT_W32(i, 1); 537 aecm->channelAdapt32[i] = WEBRTC_SPL_LSHIFT_W32( 539 aecm->channelAdapt32[i + 1] = WEBRTC_SPL_LSHIFT_W32( 541 aecm->channelAdapt32[i + 2] = WEBRTC_SPL_LSHIFT_W32( 543 aecm->channelAdapt32[i + 3] = WEBRTC_SPL_LSHIFT_W32( 546 aecm->channelAdapt32[i] = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32)aecm->channelStored[i], 16); [all...] |
aecm_core_neon.c | 281 // aecm->channelAdapt32[i] = WEBRTC_SPL_LSHIFT_W32((WebRtc_Word32) 293 aecm->channelAdapt32[i] = WEBRTC_SPL_LSHIFT_W32(
|