f7d3dbd1d7145266d165536cc94eb698daa8fcde
[platform/upstream/libvorbis.git] / lib / mdct.h
1 /********************************************************************
2  *                                                                  *
3  * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE.  *
4  * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
5  * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE.    *
6  * PLEASE READ THESE TERMS DISTRIBUTING.                            *
7  *                                                                  *
8  * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-1999             *
9  * by 1999 Monty and The XIPHOPHORUS Company                        *
10  * http://www.xiph.org/                                             *
11  *                                                                  *
12  ********************************************************************
13
14  function: modified discrete cosine transform prototypes
15
16  ********************************************************************/
17
18 #ifndef _OGG_MDCT_H_
19 #define _OGG_MDCT_H_
20
21 typedef struct {
22   int n;
23   int log2n;
24   
25   double *trig;
26   int    *bitrev;
27
28 } MDCT_lookup;
29
30 extern MDCT_lookup *MDCT_init(int n);
31 extern void MDCT_free(MDCT_lookup *l);
32 extern void MDCT(double *in, double *out, MDCT_lookup *init, double *window);
33 extern void iMDCT(double *in, double *out, MDCT_lookup *init, double *window);
34
35 #endif
36
37
38
39
40
41
42
43
44
45
46
47