]> git.sesse.net Git - vlc/blob - modules/codec/wmafixed/mdct.h
freetype: use var_Inherit.
[vlc] / modules / codec / wmafixed / mdct.h
1 /*
2  * WMA compatible decoder
3  * Copyright (c) 2002 The FFmpeg Project.
4  *
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.
9  *
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.
14  *
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
18  */
19
20 #ifndef WMA_MDCT_H
21 #define WMA_MDCT_H 1
22
23 #include "fft.h"
24
25 typedef struct MDCTContext
26 {
27     int n;     /* size of MDCT (i.e. number of input data * 2) */
28     int nbits; /* n = 2^nbits */
29     /* pre/post rotation tables */
30     int32_t *tcos;
31     int32_t *tsin;
32     FFTContext fft;
33 }
34 MDCTContext;
35
36 int ff_mdct_init(MDCTContext *s, int nbits, int inverse);
37 void ff_imdct_calc(MDCTContext *s, int32_t *output, int32_t *input);
38 int mdct_init_global(void);
39
40 #endif