/********************************************************************
 *                                                                  *
 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
 * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
 * THE GNU LESSER/LIBRARY PUBLIC LICENSE, WHICH IS INCLUDED WITH    *
 * THIS SOURCE. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.        *
 *                                                                  *
 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2000             *
 * by Monty <monty@xiph.org> and the XIPHOPHORUS Company            *
 * http://www.xiph.org/                                             *
 *                                                                  *
 ********************************************************************

 function: modified discrete cosine transform prototypes
 last mod: $Id: mdct.h,v 1.13 2000/11/06 00:07:01 xiphmont Exp $

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

#ifndef _OGG_mdct_H_
#define _OGG_mdct_H_

#include "codec.h"


#define DATA_TYPE xint
#define REG_TYPE  register xint

//#define MULT_NORM(x,y) LMULXI(x, y)
//#define HALVE(x) ((x)>>1)

//#define DATA_TYPE float
//#define REG_TYPE  float
//#define cPI3_8 .38268343236508977175F
//#define cPI2_8 .70710678118654752441F
//#define cPI1_8 .92387953251128675613F

//#define FLOAT_CONV(x) (x)
//#define MULT_NORM(x, y) (x*y)
//#define HALVE(x) ((x)*.5f)


typedef struct {
  int n;
  int log2n;

  DATA_TYPE *trig;
  DATA_TYPE *trig2;
  DATA_TYPE *trig3;
} mdct_lookup;

extern void mdct_init(mdct_lookup* lookup, int n);
extern void mdct_clear(mdct_lookup* l);
extern void mdct_backward(mdct_lookup* init, DATA_TYPE* in, DATA_TYPE* out);

#endif












