contrib: ncurses: explicitly set PKG_CONFIG_LIBDIR
[vlc.git] / modules / codec / wmafixed / mdct.h
blobb97eeaad6198ed980104153c2f764bec6db149e7
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_MDCT_H
21 #define WMA_MDCT_H 1
23 #include "fft.h"
25 typedef struct MDCTContext
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;
34 MDCTContext;
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);
40 #endif