1 /********************************************************************
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. *
8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
9 * by the XIPHOPHORUS Company http://www.xiph.org/ *
11 ********************************************************************
13 function: modified discrete cosine transform prototypes
14 last mod: $Id: mdct.h,v 1.20 2002/01/22 11:59:00 xiphmont Exp $
16 ********************************************************************/
21 #include "vorbis/codec.h"
27 /*#define MDCT_INTEGERIZED <- be warned there could be some hurt left here*/
28 #ifdef MDCT_INTEGERIZED
31 #define REG_TYPE register int
37 #define FLOAT_CONV(x) ((int)((x)*(1<<TRIGBITS)+.5))
38 #define MULT_NORM(x) ((x)>>TRIGBITS)
39 #define HALVE(x) ((x)>>1)
43 #define DATA_TYPE float
44 #define REG_TYPE float
45 #define cPI3_8 .38268343236508977175F
46 #define cPI2_8 .70710678118654752441F
47 #define cPI1_8 .92387953251128675613F
49 #define FLOAT_CONV(x) (x)
50 #define MULT_NORM(x) (x)
51 #define HALVE(x) ((x)*.5f)
66 extern void mdct_init(mdct_lookup *lookup,int n);
67 extern void mdct_clear(mdct_lookup *l);
68 extern void mdct_forward(mdct_lookup *init, DATA_TYPE *in, DATA_TYPE *out);
69 extern void mdct_backward(mdct_lookup *init, DATA_TYPE *in, DATA_TYPE *out);