summaryrefslogtreecommitdiff
path: root/apps/codecs/libwma/wmadec.h
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2007-10-01 13:46:07 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2007-10-01 13:46:07 +0000
commitb8753ffdaa141740e42d8c57d6f0c1aca5e6a8de (patch)
treed912174b68dda4378addd1c4aeb733a86e97af4b /apps/codecs/libwma/wmadec.h
parent6b559b21886d4da8b59bb4fe11dddb2835f31180 (diff)
downloadrockbox-b8753ffdaa141740e42d8c57d6f0c1aca5e6a8de.tar.gz
rockbox-b8753ffdaa141740e42d8c57d6f0c1aca5e6a8de.zip
move structures around in the header files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14941 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwma/wmadec.h')
-rw-r--r--apps/codecs/libwma/wmadec.h35
1 files changed, 2 insertions, 33 deletions
diff --git a/apps/codecs/libwma/wmadec.h b/apps/codecs/libwma/wmadec.h
index 1d5a67d8a9..f7434ed759 100644
--- a/apps/codecs/libwma/wmadec.h
+++ b/apps/codecs/libwma/wmadec.h
@@ -22,6 +22,8 @@
22 22
23#include "asf.h" 23#include "asf.h"
24#include "bitstream.h" /* For GetBitContext */ 24#include "bitstream.h" /* For GetBitContext */
25#include "types.h"
26#include "mdct.h"
25//#include "dsputil.h" /* For MDCTContext */ 27//#include "dsputil.h" /* For MDCTContext */
26 28
27 29
@@ -52,39 +54,6 @@
52 54
53#define LSP_POW_BITS 7 55#define LSP_POW_BITS 7
54 56
55#define fixed32 int32_t
56#define fixed64 int64_t
57
58typedef fixed32 FFTSample;
59
60typedef struct FFTComplex
61{
62 fixed32 re, im;
63}
64FFTComplex;
65
66typedef struct FFTContext
67{
68 int nbits;
69 int inverse;
70 uint16_t *revtab;
71 FFTComplex *exptab;
72 FFTComplex *exptab1; /* only used by SSE code */
73 int (*fft_calc)(struct FFTContext *s, FFTComplex *z);
74}
75FFTContext;
76
77typedef struct MDCTContext
78{
79 int n; /* size of MDCT (i.e. number of input data * 2) */
80 int nbits; /* n = 2^nbits */
81 /* pre/post rotation tables */
82 fixed32 *tcos;
83 fixed32 *tsin;
84 FFTContext fft;
85}
86MDCTContext;
87
88typedef struct WMADecodeContext 57typedef struct WMADecodeContext
89{ 58{
90 GetBitContext gb; 59 GetBitContext gb;