• Home
  • Raw
  • Download

Lines Matching refs: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 fftw_config *table = (struct fftw_config *) speex_alloc(sizeof(struct fftw_config)); in spx_fft_init() local
183 table->in = fftwf_malloc(sizeof(float) * (size+2)); in spx_fft_init()
184 table->out = fftwf_malloc(sizeof(float) * (size+2)); in spx_fft_init()
186 table->fft = fftwf_plan_dft_r2c_1d(size, table->in, (fftwf_complex *) table->out, FFTW_PATIENT); in spx_fft_init()
187 table->ifft = fftwf_plan_dft_c2r_1d(size, (fftwf_complex *) table->in, table->out, FFTW_PATIENT); in spx_fft_init()
189 table->N = size; in spx_fft_init()
190 return table; in spx_fft_init()
193 void spx_fft_destroy(void *table) in spx_fft_destroy() argument
195 struct fftw_config *t = (struct fftw_config *) table; in spx_fft_destroy()
200 speex_free(table); in spx_fft_destroy()
204 void spx_fft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_fft() argument
207 struct fftw_config *t = (struct fftw_config *) table; in spx_fft()
222 void spx_ifft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_ifft() argument
225 struct fftw_config *t = (struct fftw_config *) table; in spx_ifft()
255 struct kiss_config *table; in spx_fft_init() local
256 table = (struct kiss_config*)speex_alloc(sizeof(struct kiss_config)); in spx_fft_init()
257 table->forward = kiss_fftr_alloc(size,0,NULL,NULL); in spx_fft_init()
258 table->backward = kiss_fftr_alloc(size,1,NULL,NULL); in spx_fft_init()
259 table->N = size; in spx_fft_init()
260 return table; in spx_fft_init()
263 void spx_fft_destroy(void *table) in spx_fft_destroy() argument
265 struct kiss_config *t = (struct kiss_config *)table; in spx_fft_destroy()
268 speex_free(table); in spx_fft_destroy()
273 void spx_fft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_fft() argument
276 struct kiss_config *t = (struct kiss_config *)table; in spx_fft()
285 void spx_fft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_fft() argument
289 struct kiss_config *t = (struct kiss_config *)table; in spx_fft()
297 void spx_ifft(void *table, spx_word16_t *in, spx_word16_t *out) in spx_ifft() argument
299 struct kiss_config *t = (struct kiss_config *)table; in spx_ifft()
315 void spx_fft_float(void *table, float *in, float *out) in spx_fft_float() argument
319 int N = ((struct drft_lookup *)table)->n; in spx_fft_float()
321 int N = ((struct kiss_config *)table)->N; in spx_fft_float()
333 spx_fft(table, _in, _out); in spx_fft_float()
341 spx_drft_init(&t, ((struct kiss_config *)table)->N); in spx_fft_float()
342 scale = 1./((struct kiss_config *)table)->N; in spx_fft_float()
343 for (i=0;i<((struct kiss_config *)table)->N;i++) in spx_fft_float()
351 void spx_ifft_float(void *table, float *in, float *out) in spx_ifft_float() argument
355 int N = ((struct drft_lookup *)table)->n; in spx_ifft_float()
357 int N = ((struct kiss_config *)table)->N; in spx_ifft_float()
369 spx_ifft(table, _in, _out); in spx_ifft_float()
377 spx_drft_init(&t, ((struct kiss_config *)table)->N); in spx_ifft_float()
378 for (i=0;i<((struct kiss_config *)table)->N;i++) in spx_ifft_float()
388 void spx_fft_float(void *table, float *in, float *out) in spx_fft_float() argument
390 spx_fft(table, in, out); in spx_fft_float()
392 void spx_ifft_float(void *table, float *in, float *out) in spx_ifft_float() argument
394 spx_ifft(table, in, out); in spx_ifft_float()