Home
last modified time | relevance | path

Searched refs:SIG_SHIFT (Results 1 – 15 of 15) sorted by relevance

/external/libopus/celt/
Dcelt_lpc.c116 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 …]
Dmodes.c318 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()
Dcelt_decoder.c181 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()
Dpitch.c126 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()
Darch.h97 #define SIG_SHIFT 12 macro
Dcelt_encoder.c265 x = SHR32(in[i+c*len],SIG_SHIFT); in transient_analysis()
524 x = SHL32(inp[i], SIG_SHIFT); in celt_preemphasis()
/external/speex/libspeex/
Dcb_search.c188 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()
Dfilters_bfin.h478 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));
Dnb_celp.c308 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 …]
Dsb_celp.c393 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()
Dfilters.c128 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()
Darch.h109 #define SIG_SHIFT 14 macro
Dltp.c797 res[i] = EXTRACT16(PSHR32(exc[i], SIG_SHIFT-1)); in forced_pitch_quant()
/external/libopus/src/
Danalysis.c386 noise_floor *= 1<<(15+SIG_SHIFT); in tonality_analysis()
Dopus_encoder.c753 scale = (1<<SIG_SHIFT); in downmix_float()
788 scale = (1<<SIG_SHIFT); in downmix_int()