mdct.h 1.33 KB
Newer Older
Mike Whitson's avatar
Mike Whitson committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/********************************************************************
 *                                                                  *
 * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE.  *
 * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
 * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE.    *
 * PLEASE READ THESE TERMS DISTRIBUTING.                            *
 *                                                                  *
 * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-1999             *
 * by 1999 Monty and The XIPHOPHORUS Company                        *
 * http://www.xiph.org/                                             *
 *                                                                  *
 ********************************************************************

 function: modified discrete cosine transform prototypes

 ********************************************************************/

#ifndef _OGG_MDCT_H_
#define _OGG_MDCT_H_

typedef struct {
  int n;
  int log2n;
  
  double *trig;
  int    *bitrev;

} MDCT_lookup;

extern MDCT_lookup *MDCT_init(int n);
extern void MDCT_free(MDCT_lookup *l);
extern void MDCT(double *in, double *out, MDCT_lookup *init, double *window);
extern void iMDCT(double *in, double *out, MDCT_lookup *init, double *window);

#endif