23ca8a27571cede90e667b45721f1bd6f494a6a2
[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-2000             *
9  * by Monty <monty@xiph.org> and The XIPHOPHORUS Company            *
10  * http://www.xiph.org/                                             *
11  *                                                                  *
12  ********************************************************************
13
14  function: modified discrete cosine transform prototypes
15  last mod: $Id: mdct.h,v 1.12 2000/10/12 03:12:53 xiphmont Exp $
16
17  ********************************************************************/
18
19 #ifndef _OGG_mdct_H_
20 #define _OGG_mdct_H_
21
22 #include "vorbis/codec.h"
23
24 typedef struct {
25   int n;
26   int log2n;
27   
28   float *trig;
29   int    *bitrev;
30
31 } mdct_lookup;
32
33 extern void mdct_init(mdct_lookup *lookup,int n);
34 extern void mdct_clear(mdct_lookup *l);
35 extern void mdct_forward(mdct_lookup *init, float *in, float *out);
36 extern void mdct_backward(mdct_lookup *init, float *in, float *out);
37
38 #endif
39
40
41
42
43
44
45
46
47
48
49
50