/external/speex/libspeexdsp/ |
D | math_approx.h | 49 static inline spx_word16_t speex_rand(spx_word16_t std, spx_int32_t *seed) in speex_rand() 122 static inline spx_word16_t speex_rand(spx_word16_t std, spx_int32_t *seed) in speex_rand() 142 static inline spx_word16_t spx_sqrt(spx_word32_t x) in spx_sqrt() 160 static inline spx_word16_t spx_acos(spx_word16_t x) in spx_acos() 163 spx_word16_t ret; in spx_acos() 164 spx_word16_t sq; in spx_acos() 188 static inline spx_word16_t spx_cos(spx_word16_t x) in spx_cos() 190 spx_word16_t x2; in spx_cos() 208 static inline spx_word16_t _spx_cos_pi_2(spx_word16_t x) in _spx_cos_pi_2() 210 spx_word16_t x2; in _spx_cos_pi_2() [all …]
|
D | fftwrap.c | 45 static int maximize_range(spx_word16_t *in, spx_word16_t *out, spx_word16_t bound, int len) in maximize_range() 48 spx_word16_t max_val = 0; in maximize_range() 69 static void renorm_range(spx_word16_t *in, spx_word16_t *out, int shift, int len) in renorm_range() 156 void spx_fft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_fft() 162 void spx_ifft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_ifft() 207 void spx_fft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_fft() 213 void spx_ifft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_ifft() 255 void spx_fft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_fft() 273 void spx_ifft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_ifft() 324 void spx_fft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_fft() [all …]
|
D | fixed_bfin.h | 42 static inline spx_word16_t PDIV32_16(spx_word32_t a, spx_word16_t b) in PDIV32_16() 67 static inline spx_word16_t DIV32_16(spx_word32_t a, spx_word16_t b) in DIV32_16() 94 static inline spx_word16_t MAX16(spx_word16_t a, spx_word16_t b) in MAX16() 109 static inline spx_word32_t MULT16_32_Q15(spx_word16_t a, spx_word32_t b) in MULT16_32_Q15() 125 static inline spx_word32_t MAC16_32_Q15(spx_word32_t c, spx_word16_t a, spx_word32_t b) in MAC16_32_Q15() 142 static inline spx_word32_t MULT16_32_Q14(spx_word16_t a, spx_word32_t b) in MULT16_32_Q14() 159 static inline spx_word32_t MAC16_32_Q14(spx_word32_t c, spx_word16_t a, spx_word32_t b) in MAC16_32_Q14()
|
D | fixed_generic.h | 38 #define QCONST16(x,bits) ((spx_word16_t)(.5+(x)*(((spx_word32_t)1)<<(bits)))) 43 #define EXTRACT16(x) ((spx_word16_t)(x)) 65 #define ADD16(a,b) ((spx_word16_t)((spx_word16_t)(a)+(spx_word16_t)(b))) 66 #define SUB16(a,b) ((spx_word16_t)(a)-(spx_word16_t)(b)) 72 #define MULT16_16_16(a,b) ((((spx_word16_t)(a))*((spx_word16_t)(b)))) 75 #define MULT16_16(a,b) (((spx_word32_t)(spx_word16_t)(a))*((spx_word32_t)(spx_word16_t)(b))) 105 #define DIV32_16(a,b) ((spx_word16_t)(((spx_word32_t)(a))/((spx_word16_t)(b)))) 106 #define PDIV32_16(a,b) ((spx_word16_t)(((spx_word32_t)(a)+((spx_word16_t)(b)>>1))/((spx_word16_t)(b… 108 #define PDIV32(a,b) (((spx_word32_t)(a)+((spx_word16_t)(b)>>1))/((spx_word32_t)(b)))
|
D | preprocess.c | 92 static inline spx_word16_t DIV32_16_Q8(spx_word32_t a, spx_word32_t b) in DIV32_16_Q8() 118 static inline spx_word16_t DIV32_16_Q15(spx_word32_t a, spx_word32_t b) in DIV32_16_Q15() 189 spx_word16_t reverb_decay; 190 spx_word16_t reverb_level; 191 spx_word16_t speech_prob_start; 192 spx_word16_t speech_prob_continue; 198 spx_word16_t speech_prob; /**< Probability last frame was speech */ 201 spx_word16_t *frame; /**< Processing frame (2*ps_size) */ 202 spx_word16_t *ft; /**< Processing frame in freq domain (2*ps_size) */ 204 spx_word16_t *gain2; /**< Adjusted gains */ [all …]
|
D | resample.c | 114 …sic_func)(SpeexResamplerState *, spx_uint32_t , const spx_word16_t *, spx_uint32_t *, spx_word16_t… 139 spx_word16_t *mem; 140 spx_word16_t *sinc_table; 277 static spx_word16_t sinc(float cutoff, float x, int N, const struct FuncDef *window_func) in sinc() 290 static spx_word16_t sinc(float cutoff, float x, int N, const struct FuncDef *window_func) in sinc() 304 static void cubic_coef(spx_word16_t x, spx_word16_t interp[4]) in cubic_coef() 308 spx_word16_t x2, x3; in cubic_coef() 320 static void cubic_coef(spx_word16_t frac, spx_word16_t interp[4]) in cubic_coef() 333 …mplerState *st, spx_uint32_t channel_index, const spx_word16_t *in, spx_uint32_t *in_len, spx_word… in resampler_basic_direct_single() 339 const spx_word16_t *sinc_table = st->sinc_table; in resampler_basic_direct_single() [all …]
|
D | mdf.c | 143 spx_word16_t spec_average; 144 spx_word16_t beta0; 145 spx_word16_t beta_max; 147 spx_word16_t leak_estimate; 149 spx_word16_t *e; /* scratch */ 150 spx_word16_t *x; /* Far-end input buffer (2N) */ 151 spx_word16_t *X; /* Far-end buffer (M+1 frames) in frequency domain */ 152 spx_word16_t *input; /* scratch */ 153 spx_word16_t *y; /* scratch */ 154 spx_word16_t *last_y; [all …]
|
D | fixed_arm5e.h | 39 static inline spx_word32_t MULT16_16(spx_word16_t x, spx_word16_t y) { in MULT16_16() 48 static inline spx_word32_t MAC16_16(spx_word32_t a, spx_word16_t x, spx_word32_t y) { in MAC16_16() 57 static inline spx_word32_t MULT16_32_Q15(spx_word16_t x, spx_word32_t y) { in MULT16_32_Q15() 66 static inline spx_word32_t MAC16_32_Q15(spx_word32_t a, spx_word16_t x, spx_word32_t y) { in MAC16_32_Q15() 75 static inline spx_word32_t MULT16_32_Q11(spx_word16_t x, spx_word32_t y) { in MULT16_32_Q11() 84 static inline spx_word32_t MAC16_32_Q11(spx_word32_t a, spx_word16_t x, spx_word32_t y) { in MAC16_32_Q11()
|
D | fftwrap.h | 47 void spx_fft(void *table, spx_word16_t *in, spx_word16_t *out); 50 void spx_ifft(void *table, spx_word16_t *in, spx_word16_t *out);
|
D | filterbank.h | 42 spx_word16_t *filter_left; 43 spx_word16_t *filter_right; 58 void filterbank_compute_psd16(FilterBank *bank, spx_word16_t *mel, spx_word16_t *psd);
|
D | arch.h | 83 typedef spx_int16_t spx_word16_t; typedef 86 typedef spx_word16_t spx_coef_t; 87 typedef spx_word16_t spx_lsp_t; 106 #define VERY_LARGE16 ((spx_word16_t)32767) 107 #define Q15_ONE ((spx_word16_t)32767) 133 typedef float spx_word16_t; typedef 148 #define Q15_ONE ((spx_word16_t)1.f) 201 #define DIV32_16(a,b) (((spx_word32_t)(a))/(spx_word16_t)(b)) 202 #define PDIV32_16(a,b) (((spx_word32_t)(a))/(spx_word16_t)(b))
|
D | filterbank.c | 71 bank->filter_left = (spx_word16_t*)speex_alloc(len*sizeof(spx_word16_t)); in filterbank_new() 72 bank->filter_right = (spx_word16_t*)speex_alloc(len*sizeof(spx_word16_t)); in filterbank_new() 79 spx_word16_t curr_freq; in filterbank_new() 81 spx_word16_t val; in filterbank_new() 156 void filterbank_compute_psd16(FilterBank *bank, spx_word16_t *mel, spx_word16_t *ps) in filterbank_compute_psd16()
|
D | fixed_arm4.h | 39 static inline spx_word32_t MULT16_32_Q14(spx_word16_t x, spx_word32_t y) { in MULT16_32_Q14() 52 static inline spx_word32_t MULT16_32_Q15(spx_word16_t x, spx_word32_t y) { in MULT16_32_Q15()
|
D | fixed_debug.h | 43 #define QCONST16(x,bits) ((spx_word16_t)(.5+(x)*(((spx_word32_t)1)<<(bits))))
|