• Home
  • Raw
  • Download

Lines Matching full:table

86    struct drft_lookup *table;  in spx_fft_init()  local
87 table = speex_alloc(sizeof(struct drft_lookup)); in spx_fft_init()
88 spx_drft_init((struct drft_lookup *)table, size); in spx_fft_init()
89 return (void*)table; in spx_fft_init()
92 void spx_fft_destroy(void *table) in spx_fft_destroy() argument
94 spx_drft_clear(table); in spx_fft_destroy()
95 speex_free(table); in spx_fft_destroy()
98 void spx_fft(void *table, float *in, float *out) in spx_fft() argument
103 float scale = 1./((struct drft_lookup *)table)->n; in spx_fft()
105 for (i=0;i<((struct drft_lookup *)table)->n;i++) in spx_fft()
109 float scale = 1./((struct drft_lookup *)table)->n; in spx_fft()
110 for (i=0;i<((struct drft_lookup *)table)->n;i++) in spx_fft()
113 spx_drft_forward((struct drft_lookup *)table, out); in spx_fft()
116 void spx_ifft(void *table, float *in, float *out) in spx_ifft() argument
123 for (i=0;i<((struct drft_lookup *)table)->n;i++) in spx_ifft()
126 spx_drft_backward((struct drft_lookup *)table, out); in spx_ifft()
139 struct mkl_config *table = (struct mkl_config *) speex_alloc(sizeof(struct mkl_config)); in spx_fft_init() local
140 table->N = size; in spx_fft_init()
141 DftiCreateDescriptor(&table->desc, DFTI_SINGLE, DFTI_REAL, 1, size); in spx_fft_init()
142 DftiSetValue(table->desc, DFTI_PACKED_FORMAT, DFTI_PACK_FORMAT); in spx_fft_init()
143 DftiSetValue(table->desc, DFTI_PLACEMENT, DFTI_NOT_INPLACE); in spx_fft_init()
144 DftiSetValue(table->desc, DFTI_FORWARD_SCALE, 1.0f / size); in spx_fft_init()
145 DftiCommitDescriptor(table->desc); in spx_fft_init()
146 return table; in spx_fft_init()
149 void spx_fft_destroy(void *table) in spx_fft_destroy() argument
151 struct mkl_config *t = (struct mkl_config *) table; in spx_fft_destroy()
153 speex_free(table); in spx_fft_destroy()
156 void spx_fft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_fft() argument
158 struct mkl_config *t = (struct mkl_config *) table; in spx_fft()
162 void spx_ifft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_ifft() argument
164 struct mkl_config *t = (struct mkl_config *) table; in spx_ifft()
182 struct ipp_fft_config *table; in spx_fft_init() local
184 table = (struct ipp_fft_config *)speex_alloc(sizeof(struct ipp_fft_config)); in spx_fft_init()
191 ippsDFTInitAlloc_R_32f(&table->dftSpec, size, IPP_FFT_DIV_FWD_BY_N, hint); in spx_fft_init()
193 ippsDFTGetBufSize_R_32f(table->dftSpec, &bufferSize); in spx_fft_init()
194 table->buffer = ippsMalloc_8u(bufferSize); in spx_fft_init()
196 return table; in spx_fft_init()
199 void spx_fft_destroy(void *table) in spx_fft_destroy() argument
201 struct ipp_fft_config *t = (struct ipp_fft_config *)table; in spx_fft_destroy()
207 void spx_fft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_fft() argument
209 struct ipp_fft_config *t = (struct ipp_fft_config *)table; in spx_fft()
213 void spx_ifft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_ifft() argument
215 struct ipp_fft_config *t = (struct ipp_fft_config *)table; in spx_ifft()
233 struct fftw_config *table = (struct fftw_config *) speex_alloc(sizeof(struct fftw_config)); in spx_fft_init() local
234 table->in = fftwf_malloc(sizeof(float) * (size+2)); in spx_fft_init()
235 table->out = fftwf_malloc(sizeof(float) * (size+2)); in spx_fft_init()
237 table->fft = fftwf_plan_dft_r2c_1d(size, table->in, (fftwf_complex *) table->out, FFTW_PATIENT); in spx_fft_init()
238 table->ifft = fftwf_plan_dft_c2r_1d(size, (fftwf_complex *) table->in, table->out, FFTW_PATIENT); in spx_fft_init()
240 table->N = size; in spx_fft_init()
241 return table; in spx_fft_init()
244 void spx_fft_destroy(void *table) in spx_fft_destroy() argument
246 struct fftw_config *t = (struct fftw_config *) table; in spx_fft_destroy()
251 speex_free(table); in spx_fft_destroy()
255 void spx_fft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_fft() argument
258 struct fftw_config *t = (struct fftw_config *) table; in spx_fft()
273 void spx_ifft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_ifft() argument
276 struct fftw_config *t = (struct fftw_config *) table; in spx_ifft()
306 struct kiss_config *table; in spx_fft_init() local
307 table = (struct kiss_config*)speex_alloc(sizeof(struct kiss_config)); in spx_fft_init()
308 table->forward = kiss_fftr_alloc(size,0,NULL,NULL); in spx_fft_init()
309 table->backward = kiss_fftr_alloc(size,1,NULL,NULL); in spx_fft_init()
310 table->N = size; in spx_fft_init()
311 return table; in spx_fft_init()
314 void spx_fft_destroy(void *table) in spx_fft_destroy() argument
316 struct kiss_config *t = (struct kiss_config *)table; in spx_fft_destroy()
319 speex_free(table); in spx_fft_destroy()
324 void spx_fft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_fft() argument
327 struct kiss_config *t = (struct kiss_config *)table; in spx_fft()
336 void spx_fft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_fft() argument
340 struct kiss_config *t = (struct kiss_config *)table; in spx_fft()
348 void spx_ifft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_ifft() argument
350 struct kiss_config *t = (struct kiss_config *)table; in spx_ifft()
366 void spx_fft_float(void *table, float *in, float *out) in spx_fft_float() argument
370 int N = ((struct drft_lookup *)table)->n; in spx_fft_float()
372 int N = ((struct kiss_config *)table)->N; in spx_fft_float()
384 spx_fft(table, _in, _out); in spx_fft_float()
392 spx_drft_init(&t, ((struct kiss_config *)table)->N); in spx_fft_float()
393 scale = 1./((struct kiss_config *)table)->N; in spx_fft_float()
394 for (i=0;i<((struct kiss_config *)table)->N;i++) in spx_fft_float()
402 void spx_ifft_float(void *table, float *in, float *out) in spx_ifft_float() argument
406 int N = ((struct drft_lookup *)table)->n; in spx_ifft_float()
408 int N = ((struct kiss_config *)table)->N; in spx_ifft_float()
420 spx_ifft(table, _in, _out); in spx_ifft_float()
428 spx_drft_init(&t, ((struct kiss_config *)table)->N); in spx_ifft_float()
429 for (i=0;i<((struct kiss_config *)table)->N;i++) in spx_ifft_float()
439 void spx_fft_float(void *table, float *in, float *out) in spx_fft_float() argument
441 spx_fft(table, in, out); in spx_fft_float()
443 void spx_ifft_float(void *table, float *in, float *out) in spx_ifft_float() argument
445 spx_ifft(table, in, out); in spx_ifft_float()