/external/chromium_org/third_party/opus/src/celt/ |
celt_lpc.c | 116 opus_val32 sum = SHL32(EXTEND32(_x[i]), SIG_SHIFT); 121 _y[i] = SATURATE16(PSHR32(sum, SIG_SHIFT)); 128 _y[i ] = SATURATE16(ADD32(EXTEND32(_x[i ]), PSHR32(sum[0], SIG_SHIFT))); 129 _y[i+1] = SATURATE16(ADD32(EXTEND32(_x[i+1]), PSHR32(sum[1], SIG_SHIFT))); 130 _y[i+2] = SATURATE16(ADD32(EXTEND32(_x[i+2]), PSHR32(sum[2], SIG_SHIFT))); 131 _y[i+3] = SATURATE16(ADD32(EXTEND32(_x[i+3]), PSHR32(sum[3], SIG_SHIFT))); 138 _y[i] = SATURATE16(ADD32(EXTEND32(_x[i]), PSHR32(sum, SIG_SHIFT))); 164 mem[0] = ROUND16(sum,SIG_SHIFT); 193 y[i+ord ] = -ROUND16(sum[0],SIG_SHIFT); 196 y[i+ord+1] = -ROUND16(sum[1],SIG_SHIFT); [all...] |
modes.c | 318 mode->preemph[2] = QCONST16(0.2719968125f, SIG_SHIFT); /* exact 1/preemph[3] */ 324 mode->preemph[2] = QCONST16(0.4424998650f, SIG_SHIFT); /* exact 1/preemph[3] */ 330 mode->preemph[2] = QCONST16(0.7499771125f, SIG_SHIFT); /* exact 1/preemph[3] */ 336 mode->preemph[2] = QCONST16(1.f, SIG_SHIFT);
|
celt_decoder.c | 181 x = PSHR32(x, SIG_SHIFT); 476 exc[i] = ROUND16(buf[DECODE_BUFFER_SIZE-MAX_PERIOD+i], SIG_SHIFT); 513 ROUND16(buf[DECODE_BUFFER_SIZE-exc_length-1-i], SIG_SHIFT); 565 exc[extrapolation_offset+j])), SIG_SHIFT); 570 SIG_SHIFT); 579 lpc_mem[i] = ROUND16(buf[DECODE_BUFFER_SIZE-N-1-i], SIG_SHIFT); 594 opus_val16 tmp = ROUND16(buf[DECODE_BUFFER_SIZE-N+i], SIG_SHIFT); [all...] |
pitch.c | 126 opus_val32 sum = SHL32(EXTEND32(x[i]), SIG_SHIFT); 137 y[i] = ROUND16(sum, SIG_SHIFT); 209 lpc2[0] = lpc[0] + QCONST16(.8f,SIG_SHIFT);
|
arch.h | 96 #define SIG_SHIFT 12
|
celt_encoder.c | 256 x = SHR32(in[i+c*len],SIG_SHIFT); 513 x = SHL32(inp[i], SIG_SHIFT); [all...] |
/external/speex/libspeex/ |
filters_bfin.h | 39 int sig_shift; local 56 sig_shift=0; 59 sig_shift++; 76 : : "a" (x), "a" (y), "d" (-sig_shift), "a" (len-1) 79 return sig_shift; 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));
|
cb_search.c | 188 e[subvect_size*i+j]=SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5); 191 e[subvect_size*i+j]=NEG32(SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5)); 486 e[subvect_size*i+j]=SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5); 489 e[subvect_size*i+j]=NEG32(SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5)); 560 exc[subvect_size*i+j]=SHL32(EXTEND32(shape_cb[ind[i]*subvect_size+j]),SIG_SHIFT-5); 563 exc[subvect_size*i+j]=NEG32(SHL32(EXTEND32(shape_cb[ind[i]*subvect_size+j]),SIG_SHIFT-5)); 611 exc[i]=SHL32(EXTEND32(speex_rand(1, seed)),SIG_SHIFT);
|
nb_celp.c | 308 w_sig[i] = EXTRACT16(SHR32(MULT16_16(st->winBuf[i],st->window[i]),SIG_SHIFT)); 310 w_sig[i] = EXTRACT16(SHR32(MULT16_16(in[i-st->windowSize+st->frameSize],st->window[i]),SIG_SHIFT)); 409 ol_gain = SHL32(EXTEND32(g),SIG_SHIFT); 802 real_exc[i] = EXTRACT16(SUB32(EXTEND32(real_exc[i]), PSHR32(exc32[i],SIG_SHIFT-1))); 804 ener = SHL32(EXTEND32(compute_rms16(real_exc, st->subframeSize)),SIG_SHIFT); 809 spx_word32_t f = PDIV32(ener,PSHR32(ol_gain,SIG_SHIFT)); 816 fine_gain = PDIV32_16(ener,PSHR32(ol_gain,SIG_SHIFT)); 853 exc[i] = EXTRACT16(SATURATE32(PSHR32(ADD32(SHL32(exc32[i],1),innov[i]),SIG_SHIFT),32767)); 872 exc[i] = EXTRACT16(SATURATE32(PSHR32(ADD32(SHL32(exc32[i],1),innov[i]),SIG_SHIFT),32767)); [all...] |
sb_celp.c | 393 w_sig[i] = EXTRACT16(SHR32(MULT16_16(high[i],st->window[i>>1]),SIG_SHIFT)); 396 w_sig[i] = EXTRACT16(SHR32(MULT16_16(high[i],st->window[i]),SIG_SHIFT)); 661 scale = SHL32(MULT16_16(PDIV32_16(SHL32(EXTEND32(gc),SIG_SHIFT-6),filter_ratio),(1+el)),6); 719 exc[i] = PSHR32(innov[i],SIG_SHIFT); 1038 exc[i]=SHL32(MULT16_32_P15(MULT16_16_Q15(mode->folding_gain,low_innov_alias[offset+i]),SHL32(g,6)),SIG_SHIFT) [all...] |
arch.h | 109 #define SIG_SHIFT 14
|
filters.c | 128 scale = PSHR32(scale, SIG_SHIFT); 136 scale = PSHR32(scale, SIG_SHIFT-5); 144 scale = PSHR32(scale, SIG_SHIFT-7); 184 int sig_shift; local 195 sig_shift=0; 198 sig_shift++; 206 tmp = EXTRACT16(SHR32(x[i],sig_shift)); 208 tmp = EXTRACT16(SHR32(x[i+1],sig_shift)); 210 tmp = EXTRACT16(SHR32(x[i+2],sig_shift)); 212 tmp = EXTRACT16(SHR32(x[i+3],sig_shift)); 248 int sig_shift=0; local 273 int sig_shift; local [all...] |
ltp.c | 797 res[i] = EXTRACT16(PSHR32(exc[i], SIG_SHIFT-1));
|
/external/chromium_org/third_party/opus/src/src/ |
analysis.c | 387 noise_floor *= 1<<(15+SIG_SHIFT);
|
opus_encoder.c | 789 scale = (1<<SIG_SHIFT); 824 scale = (1<<SIG_SHIFT); [all...] |