/external/libopus/celt/ |
D | celt_lpc.c | 116 opus_val32 sum = SHL32(EXTEND32(_x[i]), SIG_SHIFT); in celt_fir() 121 _y[i] = SATURATE16(PSHR32(sum, SIG_SHIFT)); in celt_fir() 128 _y[i ] = SATURATE16(ADD32(EXTEND32(_x[i ]), PSHR32(sum[0], SIG_SHIFT))); in celt_fir() 129 _y[i+1] = SATURATE16(ADD32(EXTEND32(_x[i+1]), PSHR32(sum[1], SIG_SHIFT))); in celt_fir() 130 _y[i+2] = SATURATE16(ADD32(EXTEND32(_x[i+2]), PSHR32(sum[2], SIG_SHIFT))); in celt_fir() 131 _y[i+3] = SATURATE16(ADD32(EXTEND32(_x[i+3]), PSHR32(sum[3], SIG_SHIFT))); in celt_fir() 138 _y[i] = SATURATE16(ADD32(EXTEND32(_x[i]), PSHR32(sum, SIG_SHIFT))); in celt_fir() 164 mem[0] = ROUND16(sum,SIG_SHIFT); in celt_iir() 193 y[i+ord ] = -ROUND16(sum[0],SIG_SHIFT); in celt_iir() 196 y[i+ord+1] = -ROUND16(sum[1],SIG_SHIFT); in celt_iir() [all …]
|
D | modes.c | 318 mode->preemph[2] = QCONST16(0.2719968125f, SIG_SHIFT); /* exact 1/preemph[3] */ in opus_custom_mode_create() 324 mode->preemph[2] = QCONST16(0.4424998650f, SIG_SHIFT); /* exact 1/preemph[3] */ in opus_custom_mode_create() 330 mode->preemph[2] = QCONST16(0.7499771125f, SIG_SHIFT); /* exact 1/preemph[3] */ in opus_custom_mode_create() 336 mode->preemph[2] = QCONST16(1.f, SIG_SHIFT); in opus_custom_mode_create()
|
D | celt_decoder.c | 181 x = PSHR32(x, SIG_SHIFT); in SIG2WORD16() 477 exc[i] = ROUND16(buf[DECODE_BUFFER_SIZE-MAX_PERIOD+i], SIG_SHIFT); in celt_decode_lost() 515 ROUND16(buf[DECODE_BUFFER_SIZE-exc_length-1-i], SIG_SHIFT); in celt_decode_lost() 567 exc[extrapolation_offset+j])), SIG_SHIFT); in celt_decode_lost() 572 SIG_SHIFT); in celt_decode_lost() 581 lpc_mem[i] = ROUND16(buf[DECODE_BUFFER_SIZE-N-1-i], SIG_SHIFT); in celt_decode_lost() 596 opus_val16 tmp = ROUND16(buf[DECODE_BUFFER_SIZE-N+i], SIG_SHIFT); in celt_decode_lost()
|
D | pitch.c | 126 opus_val32 sum = SHL32(EXTEND32(x[i]), SIG_SHIFT); in celt_fir5() 137 y[i] = ROUND16(sum, SIG_SHIFT); in celt_fir5() 209 lpc2[0] = lpc[0] + QCONST16(.8f,SIG_SHIFT); in pitch_downsample()
|
D | arch.h | 97 #define SIG_SHIFT 12 macro
|
D | celt_encoder.c | 265 x = SHR32(in[i+c*len],SIG_SHIFT); in transient_analysis() 524 x = SHL32(inp[i], SIG_SHIFT); in celt_preemphasis()
|
/external/speex/libspeex/ |
D | cb_search.c | 188 e[subvect_size*i+j]=SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5); in split_cb_search_shape_sign_N1() 191 … e[subvect_size*i+j]=NEG32(SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5)); in split_cb_search_shape_sign_N1() 486 e[subvect_size*i+j]=SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5); in split_cb_search_shape_sign() 489 e[subvect_size*i+j]=NEG32(SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5)); in split_cb_search_shape_sign() 560 exc[subvect_size*i+j]=SHL32(EXTEND32(shape_cb[ind[i]*subvect_size+j]),SIG_SHIFT-5); in split_cb_shape_sign_unquant() 563 … exc[subvect_size*i+j]=NEG32(SHL32(EXTEND32(shape_cb[ind[i]*subvect_size+j]),SIG_SHIFT-5)); in split_cb_shape_sign_unquant() 611 exc[i]=SHL32(EXTEND32(speex_rand(1, seed)),SIG_SHIFT); in noise_codebook_unquant()
|
D | filters_bfin.h | 478 x[i] = EXTRACT16(SHR32(_x[i],SIG_SHIFT)); 490 y[i] = EXTRACT16(SHR32(_y[i],SIG_SHIFT)); 501 y[i] = EXTRACT16(SHR32(_y[i],SIG_SHIFT));
|
D | nb_celp.c | 308 w_sig[i] = EXTRACT16(SHR32(MULT16_16(st->winBuf[i],st->window[i]),SIG_SHIFT)); in nb_encode() 310 …w_sig[i] = EXTRACT16(SHR32(MULT16_16(in[i-st->windowSize+st->frameSize],st->window[i]),SIG_SHIFT)); in nb_encode() 409 ol_gain = SHL32(EXTEND32(g),SIG_SHIFT); in nb_encode() 802 real_exc[i] = EXTRACT16(SUB32(EXTEND32(real_exc[i]), PSHR32(exc32[i],SIG_SHIFT-1))); in nb_encode() 804 ener = SHL32(EXTEND32(compute_rms16(real_exc, st->subframeSize)),SIG_SHIFT); in nb_encode() 809 spx_word32_t f = PDIV32(ener,PSHR32(ol_gain,SIG_SHIFT)); in nb_encode() 816 fine_gain = PDIV32_16(ener,PSHR32(ol_gain,SIG_SHIFT)); in nb_encode() 853 … exc[i] = EXTRACT16(SATURATE32(PSHR32(ADD32(SHL32(exc32[i],1),innov[i]),SIG_SHIFT),32767)); in nb_encode() 872 … exc[i] = EXTRACT16(SATURATE32(PSHR32(ADD32(SHL32(exc32[i],1),innov[i]),SIG_SHIFT),32767)); in nb_encode() 1057 …pitch_val = st->last_pitch + SHR32((spx_int32_t)speex_rand(1+st->count_lost, &st->seed),SIG_SHIFT); in nb_decode_lost() [all …]
|
D | sb_celp.c | 393 w_sig[i] = EXTRACT16(SHR32(MULT16_16(high[i],st->window[i>>1]),SIG_SHIFT)); in sb_encode() 396 w_sig[i] = EXTRACT16(SHR32(MULT16_16(high[i],st->window[i]),SIG_SHIFT)); in sb_encode() 661 scale = SHL32(MULT16_16(PDIV32_16(SHL32(EXTEND32(gc),SIG_SHIFT-6),filter_ratio),(1+el)),6); in sb_encode() 719 exc[i] = PSHR32(innov[i],SIG_SHIFT); in sb_encode() 1038 …2(MULT16_32_P15(MULT16_16_Q15(mode->folding_gain,low_innov_alias[offset+i]),SHL32(g,6)),SIG_SHIFT); in sb_decode() 1039 …ULT16_32_P15(MULT16_16_Q15(mode->folding_gain,low_innov_alias[offset+i+1]),SHL32(g,6)),SIG_SHIFT)); in sb_decode() 1053 scale = SHL32(PDIV32(SHL32(MULT16_16(gc, el),3), filter_ratio),SIG_SHIFT-3); in sb_decode() 1077 innov_save[2*i]=EXTRACT16(PSHR32(exc[i],SIG_SHIFT)); in sb_decode() 1083 st->excBuf[i]=EXTRACT16(PSHR32(exc[i],SIG_SHIFT)); in sb_decode()
|
D | filters.c | 128 scale = PSHR32(scale, SIG_SHIFT); in signal_div() 136 scale = PSHR32(scale, SIG_SHIFT-5); in signal_div() 144 scale = PSHR32(scale, SIG_SHIFT-7); in signal_div() 217 return EXTRACT16(PSHR32(SHL32(EXTEND32(spx_sqrt(DIV32(sum,len))),(sig_shift+3)),SIG_SHIFT)); in compute_rms()
|
D | arch.h | 109 #define SIG_SHIFT 14 macro
|
D | ltp.c | 797 res[i] = EXTRACT16(PSHR32(exc[i], SIG_SHIFT-1)); in forced_pitch_quant()
|
/external/libopus/src/ |
D | analysis.c | 386 noise_floor *= 1<<(15+SIG_SHIFT); in tonality_analysis()
|
D | opus_encoder.c | 753 scale = (1<<SIG_SHIFT); in downmix_float() 788 scale = (1<<SIG_SHIFT); in downmix_int()
|