move structures around in the header files

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14941 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marcoen Hirschberg 2007-10-01 13:46:07 +00:00
parent 6b559b2188
commit b8753ffdaa
8 changed files with 44 additions and 38 deletions

View file

@ -17,7 +17,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "wmadec.h"
//#include "types.h"
#include "fft.h"
#include "wmafixed.h"
FFTComplex exptab0[512] IBSS_ATTR;

View file

@ -17,6 +17,27 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "types.h"
typedef fixed32 FFTSample;
typedef struct FFTComplex
{
fixed32 re, im;
}
FFTComplex;
typedef struct FFTContext
{
int nbits;
int inverse;
uint16_t *revtab;
FFTComplex *exptab;
FFTComplex *exptab1; /* only used by SSE code */
int (*fft_calc)(struct FFTContext *s, FFTComplex *z);
}
FFTContext;
int fft_calc_unscaled(FFTContext *s, FFTComplex *z);
int fft_init_global(void);

View file

@ -17,10 +17,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <codecs/lib/codeclib.h>
#include "wmadec.h"
#include "wmafixed.h"
#include "fft.h"
#include "mdct.h"
fixed32 tcos0[1024], tsin0[1024]; //these are the sin and cos rotations used by the MDCT
uint16_t revtab0[1024];

View file

@ -17,6 +17,18 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
//#include "types.h"
#include "fft.h"
typedef struct MDCTContext
{
int n; /* size of MDCT (i.e. number of input data * 2) */
int nbits; /* n = 2^nbits */
/* pre/post rotation tables */
FFTContext fft;
}
MDCTContext;
int ff_mdct_init(MDCTContext *s, int nbits, int inverse);
void ff_imdct_calc(MDCTContext *s, fixed32 *output, fixed32 *input);
int mdct_init_global(void);

View file

@ -0,0 +1,5 @@
#include <codecs/lib/codeclib.h>
#define fixed32 int32_t
#define fixed64 int64_t

View file

@ -22,6 +22,8 @@
#include "asf.h"
#include "bitstream.h" /* For GetBitContext */
#include "types.h"
#include "mdct.h"
//#include "dsputil.h" /* For MDCTContext */
@ -52,39 +54,6 @@
#define LSP_POW_BITS 7
#define fixed32 int32_t
#define fixed64 int64_t
typedef fixed32 FFTSample;
typedef struct FFTComplex
{
fixed32 re, im;
}
FFTComplex;
typedef struct FFTContext
{
int nbits;
int inverse;
uint16_t *revtab;
FFTComplex *exptab;
FFTComplex *exptab1; /* only used by SSE code */
int (*fft_calc)(struct FFTContext *s, FFTComplex *z);
}
FFTContext;
typedef struct MDCTContext
{
int n; /* size of MDCT (i.e. number of input data * 2) */
int nbits; /* n = 2^nbits */
/* pre/post rotation tables */
fixed32 *tcos;
fixed32 *tsin;
FFTContext fft;
}
MDCTContext;
typedef struct WMADecodeContext
{
GetBitContext gb;

View file

@ -28,7 +28,6 @@
#include "wmadec.h"
#include "wmafixed.h"
#include "bitstream.h"
#include "mdct.h"
#define VLCBITS 7 /*7 is the lowest without glitching*/

View file

@ -7,6 +7,7 @@
*/
#include "types.h"
#define PRECISION 16
#define PRECISION64 16