Searched refs:gain32 (Results 1 – 3 of 3) sorted by relevance
/external/webrtc/src/modules/audio_processing/agc/ |
D | digital_agc.c | 315 WebRtc_Word32 gain32, delta; in WebRtcAgc_ProcessDigital() local 536 gain32 = WEBRTC_SPL_RSHIFT_W32(gains[k+1], zeros) + 1; in WebRtcAgc_ProcessDigital() 537 gain32 = WEBRTC_SPL_MUL(gain32, gain32); in WebRtcAgc_ProcessDigital() 539 while (AGC_MUL32(WEBRTC_SPL_RSHIFT_W32(env[k], 12) + 1, gain32) in WebRtcAgc_ProcessDigital() 551 gain32 = WEBRTC_SPL_RSHIFT_W32(gains[k+1], zeros) + 1; in WebRtcAgc_ProcessDigital() 552 gain32 = WEBRTC_SPL_MUL(gain32, gain32); in WebRtcAgc_ProcessDigital() 569 gain32 = WEBRTC_SPL_LSHIFT_W32(gains[0], 4); in WebRtcAgc_ProcessDigital() 574 tmp32 = WEBRTC_SPL_MUL((WebRtc_Word32)out[n], WEBRTC_SPL_RSHIFT_W32(gain32 + 127, 7)); in WebRtcAgc_ProcessDigital() 584 tmp32 = WEBRTC_SPL_MUL((WebRtc_Word32)out[n], WEBRTC_SPL_RSHIFT_W32(gain32, 4)); in WebRtcAgc_ProcessDigital() 591 WEBRTC_SPL_RSHIFT_W32(gain32 + 127, 7)); in WebRtcAgc_ProcessDigital() [all …]
|
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/source/ |
D | lattice.c | 108 WebRtc_Word32 gain32, fQtmp; in WebRtcIsacfix_NormLatticeFilterMa() local 133 gain32 = gain_lo_hiQ17[temp3]; in WebRtcIsacfix_NormLatticeFilterMa() 134 gain_sh = WebRtcSpl_NormW32(gain32); in WebRtcIsacfix_NormLatticeFilterMa() 135 gain32 = WEBRTC_SPL_LSHIFT_W32(gain32, gain_sh); //Q(17+gain_sh) in WebRtcIsacfix_NormLatticeFilterMa() 139 … gain32 = WEBRTC_SPL_MUL_16_32_RSFT15(cthQ15[k], gain32); //Q15*Q(17+gain_sh)>>15 = Q(17+gain_sh) in WebRtcIsacfix_NormLatticeFilterMa() 142 gain16 = (WebRtc_Word16) WEBRTC_SPL_RSHIFT_W32(gain32, 16); //Q(1+gain_sh) in WebRtcIsacfix_NormLatticeFilterMa()
|
/external/speex/libspeex/ |
D | nb_celp.c | 1480 spx_word32_t gain32; in nb_decode() local 1483 gain32 = PDIV32(ol_gain, ADD16(exc_ener,1)); in nb_decode() 1485 if (gain32 > 32767) in nb_decode() 1486 gain32 = 32767; in nb_decode() 1487 gain = EXTRACT16(gain32); in nb_decode() 1489 if (gain32 > 2) in nb_decode() 1490 gain32=2; in nb_decode() 1491 gain = gain32; in nb_decode()
|