Debian Codegraph @

external/vorbis/vorbis_mdct.h

raw
1 /********************************************************************
2 * *
3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
7 * *
8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 *
9 * by the Xiph.Org Foundation https://xiph.org/ *
10 * *
11 ********************************************************************
12
13 function: modified discrete cosine transform prototypes
14
15 ********************************************************************/
16
17 #ifndef _vorbis_mdct_h_
18 #define _vorbis_mdct_h_
19
20 #include "vorbis_codec.h"
21
22
23 #define DATA_TYPE float
24 #define REG_TYPE float
25 #define cPI3_8 .38268343236508977175F
26 #define cPI2_8 .70710678118654752441F
27 #define cPI1_8 .92387953251128675613F
28
29 #define FLOAT_CONV(x) (x)
30 #define MULT_NORM(x) (x)
31 #define HALVE(x) ((x)*.5f)
32
33 typedef struct {
34 int n;
35 int log2n;
36
37 DATA_TYPE *trig;
38 int *bitrev;
39
40 DATA_TYPE scale;
41 } mdct_lookup;
42
43 extern void mdct_init(mdct_lookup *lookup,int n);
44 extern void mdct_clear(mdct_lookup *l);
45 extern void mdct_forward(mdct_lookup *init, DATA_TYPE *in, DATA_TYPE *out);
46 extern void mdct_backward(mdct_lookup *init, DATA_TYPE *in, DATA_TYPE *out);
47
48 #endif