contrib: soxr: enable by default
[vlc.git] / modules / codec / wmafixed / fft.h
blob28eef821e31077d65fff5f2036513da50e20baf5
1 /*
2 * WMA compatible decoder
3 * Copyright (c) 2002 The FFmpeg Project.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #ifndef WMA_FFT_H
21 #define WMA_FFT_H 1
23 #include <inttypes.h>
25 typedef int32_t FFTSample;
27 typedef struct FFTComplex
29 int32_t re, im;
31 FFTComplex;
33 typedef struct FFTContext
35 int nbits;
36 int inverse;
37 uint16_t *revtab;
38 FFTComplex *exptab;
39 FFTComplex *exptab1; /* only used by SSE code */
40 int (*fft_calc)(struct FFTContext *s, FFTComplex *z);
42 FFTContext;
44 int fft_calc_unscaled(FFTContext *s, FFTComplex *z);
45 int fft_init_global(void);
47 #endif