Revert r14786 which resulted in a substantial reduction in accuracy to save a 7.6KB...
[Rockbox.git] / apps / codecs / libwma / mdct.h
blob57d65ae9a73a0bc4d045bc53aa59d1379cf29f24
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 //#include "types.h"
21 #include "fft.h"
23 typedef struct MDCTContext
25 int n; /* size of MDCT (i.e. number of input data * 2) */
26 int nbits; /* n = 2^nbits */
27 /* pre/post rotation tables */
28 fixed32 *tcos;
29 fixed32 *tsin;
30 FFTContext fft;
32 MDCTContext;
34 int ff_mdct_init(MDCTContext *s, int nbits, int inverse);
35 void ff_imdct_calc(MDCTContext *s, fixed32 *output, fixed32 *input);
36 int mdct_init_global(void);