10260
|
1 #ifndef DECODE288_H
|
|
2 #define DECODE288_H
|
|
3
|
|
4 /* internal globals */
|
|
5 typedef struct {
|
|
6 float history[8];
|
|
7 float output[40];
|
|
8 float pr1[36];
|
|
9 float pr2[10];
|
|
10 int phase, phasep;
|
|
11
|
|
12 float st1a[111],st1b[37],st1[37];
|
|
13 float st2a[38],st2b[11],st2[11];
|
|
14 float sb[41];
|
|
15 float lhist[10];
|
|
16 } Real_internal;
|
|
17
|
|
18 /* prototypes */
|
|
19 static void unpack (unsigned short *tgt, unsigned char *src, int len);
|
|
20 static void decode (Real_internal *internal, unsigned int input);
|
|
21 static void update (Real_internal *internal);
|
|
22 static void colmult (float *tgt, float *m1, const float *m2, int n);
|
|
23 static int pred (float *in, float *tgt, int n);
|
|
24 static void co (int n, int i, int j, float *in, float *out, float *st1, float *st2, const float *table);
|
|
25 static void prodsum (float *tgt, float *src, int len, int n);
|
|
26
|
|
27 #endif /* !DECODE288_H */
|