Home
last modified time | relevance | path

Searched refs:spx_word32_t (Results 1 – 25 of 43) sorted by relevance

12

/external/speex/libspeex/
Dfixed_bfin.h40 static inline spx_word16_t PDIV32_16(spx_word32_t a, spx_word16_t b) in PDIV32_16()
42 spx_word32_t res, bb; in PDIV32_16()
65 static inline spx_word16_t DIV32_16(spx_word32_t a, spx_word16_t b) in DIV32_16()
67 spx_word32_t res, bb; in DIV32_16()
94 spx_word32_t res; in MAX16()
106 static inline spx_word32_t MULT16_32_Q15(spx_word16_t a, spx_word32_t b) in MULT16_32_Q15()
108 spx_word32_t res; in MULT16_32_Q15()
122 static inline spx_word32_t MAC16_32_Q15(spx_word32_t c, spx_word16_t a, spx_word32_t b) in MAC16_32_Q15()
124 spx_word32_t res; in MAC16_32_Q15()
139 static inline spx_word32_t MULT16_32_Q14(spx_word16_t a, spx_word32_t b) in MULT16_32_Q14()
[all …]
Dfixed_arm5e.h39 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()
Dltp_bfin.h37 spx_word32_t inner_prod(const spx_word16_t *x, const spx_word16_t *y, int len) in inner_prod()
39 spx_word32_t sum=0; in inner_prod()
66 void pitch_xcorr(const spx_word16_t *_x, const spx_word16_t *_y, spx_word32_t *corr, int len, int n… in pitch_xcorr()
112 static inline spx_word32_t compute_pitch_error(spx_word16_t *C, spx_word16_t *g, spx_word16_t pitch… in compute_pitch_error()
114 spx_word32_t sum; in compute_pitch_error()
160 VARDECL(spx_word32_t *best_score); in open_loop_nbest_pitch()
161 VARDECL(spx_word32_t *best_ener); in open_loop_nbest_pitch()
162 spx_word32_t e0; in open_loop_nbest_pitch()
163 VARDECL(spx_word32_t *corr); in open_loop_nbest_pitch()
164 VARDECL(spx_word32_t *energy); in open_loop_nbest_pitch()
[all …]
Dltp_arm4.h36 spx_word32_t inner_prod(const spx_word16_t *x, const spx_word16_t *y, int len) in inner_prod()
38 spx_word32_t sum1=0,sum2=0; in inner_prod()
88 void pitch_xcorr(const spx_word16_t *_x, const spx_word16_t *_y, spx_word32_t *corr, int len, int n… in pitch_xcorr()
95 spx_word32_t sum1=0; in pitch_xcorr()
96 spx_word32_t sum2=0; in pitch_xcorr()
97 spx_word32_t sum3=0; in pitch_xcorr()
98 spx_word32_t sum4=0; in pitch_xcorr()
101 spx_word32_t y0, y1, y2, y3; in pitch_xcorr()
108 spx_word32_t part1, part2, part3, part4, x0; in pitch_xcorr()
109 spx_word32_t dead1; in pitch_xcorr()
Dfixed_generic.h38 #define QCONST16(x,bits) ((spx_word16_t)(.5+(x)*(((spx_word32_t)1)<<(bits))))
39 #define QCONST32(x,bits) ((spx_word32_t)(.5+(x)*(((spx_word32_t)1)<<(bits))))
44 #define EXTEND32(x) ((spx_word32_t)(x))
56 #define SHL(a,shift) ((spx_word32_t)(a) << (shift))
63 #define ADD32(a,b) ((spx_word32_t)(a)+(spx_word32_t)(b))
64 #define SUB32(a,b) ((spx_word32_t)(a)-(spx_word32_t)(b))
71 #define MULT16_16(a,b) (((spx_word32_t)(spx_word16_t)(a))*((spx_word32_t)(spx_word16_t)(b)))
101 #define DIV32_16(a,b) ((spx_word16_t)(((spx_word32_t)(a))/((spx_word16_t)(b))))
102 #define PDIV32_16(a,b) ((spx_word16_t)(((spx_word32_t)(a)+((spx_word16_t)(b)>>1))/((spx_word16_t)(b…
103 #define DIV32(a,b) (((spx_word32_t)(a))/((spx_word32_t)(b)))
[all …]
Dvq.h41 int scal_quant32(spx_word32_t in, const spx_word32_t *boundary, int entries);
45 …__m128 *codebook, int len, int entries, __m128 *E, int N, int *nbest, spx_word32_t *best_dist, cha…
47 …__m128 *codebook, int len, int entries, __m128 *E, int N, int *nbest, spx_word32_t *best_dist, cha…
49 …const spx_word16_t *codebook, int len, int entries, spx_word32_t *E, int N, int *nbest, spx_word32…
51 …const spx_word16_t *codebook, int len, int entries, spx_word32_t *E, int N, int *nbest, spx_word32…
Darch.h92 typedef spx_int32_t spx_word32_t; typedef
93 typedef spx_word32_t spx_mem_t;
96 typedef spx_word32_t spx_sig_t;
113 #define VERY_LARGE32 ((spx_word32_t)2147483647)
142 typedef float spx_word32_t; typedef
185 #define MULT16_16(a,b) ((spx_word32_t)(a)*(spx_word32_t)(b))
186 #define MAC16_16(c,a,b) ((c)+(spx_word32_t)(a)*(spx_word32_t)(b))
208 #define DIV32_16(a,b) (((spx_word32_t)(a))/(spx_word16_t)(b))
209 #define PDIV32_16(a,b) (((spx_word32_t)(a))/(spx_word16_t)(b))
210 #define DIV32(a,b) (((spx_word32_t)(a))/(spx_word32_t)(b))
[all …]
Dltp.c59 spx_word32_t inner_prod(const spx_word16_t *x, const spx_word16_t *y, int len) in inner_prod()
61 spx_word32_t sum=0; in inner_prod()
65 spx_word32_t part=0; in inner_prod()
79 void pitch_xcorr(const spx_word16_t *_x, const spx_word16_t *_y, spx_word32_t *corr, int len, int n…
86 spx_word32_t sum1=0;
87 spx_word32_t sum2=0;
88 spx_word32_t sum3=0;
89 spx_word32_t sum4=0;
100 spx_word32_t part1;
101 spx_word32_t part2;
[all …]
Dlsp.c140 static inline spx_word32_t cheb_poly_eva( in cheb_poly_eva()
149 spx_word32_t sum; in cheb_poly_eva()
177 static float cheb_poly_eva(spx_word32_t *coef, spx_word16_t x, int m, char *stack) in cheb_poly_eva()
229 spx_word32_t psuml,psumr,psumm,temp_psumr/*,temp_qsumr*/; in lpc_to_lsp()
231 VARDECL(spx_word32_t *Q); /* ptrs for memory allocation */ in lpc_to_lsp()
232 VARDECL(spx_word32_t *P); in lpc_to_lsp()
235 spx_word32_t *px; /* ptrs of respective P'(z) & Q'(z) */ in lpc_to_lsp()
236 spx_word32_t *qx; in lpc_to_lsp()
237 spx_word32_t *p; in lpc_to_lsp()
238 spx_word32_t *q; in lpc_to_lsp()
[all …]
Dvq.c62 int scal_quant32(spx_word32_t in, const spx_word32_t *boundary, int entries) in scal_quant32()
76 …const spx_word16_t *codebook, int len, int entries, spx_word32_t *E, int N, int *nbest, spx_word32… in vq_nbest()
82 spx_word32_t dist=0; in vq_nbest()
110 …const spx_word16_t *codebook, int len, int entries, spx_word32_t *E, int N, int *nbest, spx_word32… in vq_nbest_sign()
116 spx_word32_t dist=0; in vq_nbest_sign()
Dpreprocess.c96 static inline spx_word16_t DIV32_16_Q8(spx_word32_t a, spx_word32_t b) in DIV32_16_Q8()
122 static inline spx_word16_t DIV32_16_Q15(spx_word32_t a, spx_word32_t b) in DIV32_16_Q15()
207 spx_word32_t *ps; /**< Current power spectrum */
211 spx_word32_t *noise; /**< Noise estimate */
212 spx_word32_t *reverb_estimate; /**< Estimate of reverb energy */
213 spx_word32_t *old_ps; /**< Power spectrum for last frame */
218 spx_word32_t *S; /**< Smoothed power spectrum */
219 spx_word32_t *Smin; /**< See Cohen paper */
220 spx_word32_t *Stmp; /**< See Cohen paper */
224 spx_word32_t *echo_noise;
[all …]
Dcb_search_arm4.h39 …e_cb, const spx_word16_t *r, spx_word16_t *resp, spx_word16_t *resp2, spx_word32_t *E, int shape_c…
58 spx_word32_t resj0,resj1,resj2,resj3;
59 spx_word32_t dead1, dead2, dead3, dead4, dead5, dead6, dead7, dead8;
87 spx_word32_t resj0=0;
88 spx_word32_t resj1=0;
89 spx_word32_t resj2=0;
90 spx_word32_t resj3=0;
Dmdf.c128 void speex_echo_get_residual(SpeexEchoState *st, spx_word32_t *Yout, int len);
146 spx_word32_t sum_adapt;
157 spx_word32_t *PHI; /* scratch */
158 spx_word32_t *W; /* (Background) filter weights */
161 spx_word32_t Davg1; /* 1st recursive average of the residual power difference */
162 spx_word32_t Davg2; /* 2nd recursive average of the residual power difference */
166 spx_word32_t *power; /* Power of the far-end signal */
172 spx_word32_t *Rf; /* scratch */
173 spx_word32_t *Yf; /* scratch */
174 spx_word32_t *Xf; /* scratch */
[all …]
Dltp.h51 spx_word32_t inner_prod(const spx_word16_t *x, const spx_word16_t *y, int len);
52 void pitch_xcorr(const spx_word16_t *_x, const spx_word16_t *_y, spx_word32_t *corr, int len, int n…
78 spx_word32_t *cumul_gain
84 spx_word32_t exc_out[], /* Output excitation */
121 spx_word32_t *cumul_gain
127 spx_word32_t exc_out[], /* Output excitation */
Dfilters_bfin.h87 VARDECL(spx_word32_t *xy2); in filter_mem16()
88 VARDECL(spx_word32_t *numden_a); in filter_mem16()
89 spx_word32_t *xy; in filter_mem16()
93 ALLOC(xy2, (N+1), spx_word32_t); in filter_mem16()
94 ALLOC(numden_a, (2*ord+2), spx_word32_t); in filter_mem16()
453 spx_word32_t yi = SHL32(EXTEND32(y[i]),LPC_SHIFT);
454 spx_word32_t yi2 = 0;
483 spx_word32_t yi = mem[i];
494 spx_word32_t yi = 0;
Dfixed_arm4.h39 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()
Dstereo.c44 spx_word32_t balance; /**< Left/right balance info */
45 spx_word32_t e_ratio; /**< Ratio of energies: E(left+right)/[E(left)+E(right)] */
46 spx_word32_t smooth_left; /**< Smoothed left channel gain */
47 spx_word32_t smooth_right; /**< Smoothed right channel gain */
149 spx_word32_t e_left=0, e_right=0, e_tot=0; in speex_encode_stereo_int()
150 spx_word32_t balance, e_ratio; in speex_encode_stereo_int()
151 spx_word32_t largest, smallest; in speex_encode_stereo_int()
224 spx_word32_t balance; in speex_decode_stereo()
251 spx_word32_t balance; in speex_decode_stereo_int()
Dvq_bfin.h37 …const spx_word16_t *codebook, int len, int entries, spx_word32_t *E, int N, int *nbest, spx_word32… in vq_nbest()
43 spx_word32_t dist; in vq_nbest()
77 spx_word32_t dist; in vq_nbest()
Dfilters.h42 void signal_mul(const spx_sig_t *x, spx_sig_t *y, spx_word32_t scale, int len);
43 void signal_div(const spx_word16_t *x, spx_word16_t *y, spx_word32_t scale, int len);
70 void sanitize_values32(spx_word32_t *vec, spx_word32_t min_val, spx_word32_t max_val, int len);
Dmath_approx.h124 spx_word32_t res; in speex_rand()
142 static inline spx_word16_t spx_sqrt(spx_word32_t x) in spx_sqrt()
145 spx_word32_t rt; in spx_sqrt()
216 static inline spx_word16_t spx_cos_norm(spx_word32_t x) in spx_cos_norm()
250 static inline spx_word32_t spx_exp2(spx_word16_t x) in spx_exp2()
265 static inline spx_word32_t spx_exp(spx_word16_t x) in spx_exp()
290 static inline spx_word16_t spx_atan(spx_word32_t x) in spx_atan()
Dcb_search.c53 …e_cb, const spx_word16_t *r, spx_word16_t *resp, spx_word16_t *resp2, spx_word32_t *E, int shape_c… in compute_weighted_codebook()
70 spx_word32_t resj=0; in compute_weighted_codebook()
122 VARDECL(spx_word32_t *E); in split_cb_search_shape_sign_N1()
130 spx_word32_t best_dist; in split_cb_search_shape_sign_N1()
145 ALLOC(E, shape_cb_size, spx_word32_t); in split_cb_search_shape_sign_N1()
265 VARDECL(spx_word32_t *E); in split_cb_search_shape_sign()
270 VARDECL(spx_word32_t *ndist); in split_cb_search_shape_sign()
271 VARDECL(spx_word32_t *odist); in split_cb_search_shape_sign()
284 VARDECL(spx_word32_t *best_dist); in split_cb_search_shape_sign()
317 ALLOC(E, shape_cb_size, spx_word32_t); in split_cb_search_shape_sign()
[all …]
Dfilterbank.c54 FilterBank *filterbank_new(int banks, spx_word32_t sampling, int len, int type) in filterbank_new()
57 spx_word32_t df; in filterbank_new()
58 spx_word32_t max_mel, mel_interval; in filterbank_new()
80 spx_word32_t mel; in filterbank_new()
134 void filterbank_compute_bank32(FilterBank *bank, spx_word32_t *ps, spx_word32_t *mel) in filterbank_compute_bank32()
161 spx_word32_t tmp; in filterbank_compute_psd16()
Dfilterbank.h52 FilterBank *filterbank_new(int banks, spx_word32_t sampling, int len, int type);
56 void filterbank_compute_bank32(FilterBank *bank, spx_word32_t *ps, spx_word32_t *mel);
Dfilters.c65 void sanitize_values32(spx_word32_t *vec, spx_word32_t min_val, spx_word32_t max_val, int len) in sanitize_values32()
102 spx_word32_t vout = ADD32(MULT16_16(num[0], x[i]),mem[0]); in highpass()
113 void signal_mul(const spx_sig_t *x, spx_sig_t *y, spx_word32_t scale, int len) in signal_mul()
122 void signal_div(const spx_word16_t *x, spx_word16_t *y, spx_word32_t scale, int len) in signal_div()
157 void signal_mul(const spx_sig_t *x, spx_sig_t *y, spx_word32_t scale, int len) in signal_mul()
164 void signal_div(const spx_sig_t *x, spx_sig_t *y, spx_word32_t scale, int len) in signal_div()
182 spx_word32_t sum=0; in compute_rms()
204 spx_word32_t sum2=0; in compute_rms()
235 spx_word32_t sum=0; in compute_rms16()
238 spx_word32_t sum2=0; in compute_rms16()
[all …]
Dnb_celp.h61 spx_word32_t cumul_gain; /**< Product of previously used pitch gains (Q10) */
93 spx_word32_t *pi_gain; /**< Gain of LPC filter at theta=pi (fe/2) */
144 spx_word32_t *pi_gain; /**< Gain of LPC filter at theta=pi (fe/2) */
168 spx_word32_t voc_m2;

12