1
mirror of https://github.com/mpv-player/mpv synced 2024-10-18 10:25:02 +02:00
mpv/libmpcodecs/native/decode288.h
rtognimp 7b0c242d34 RealAudio 1.0 (14_4) and 2.0 (28_8) native decoders.
Author unknown, code from a public domain player for Amiga
at http://www.honeypot.net/audio


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10261 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-06-08 20:25:28 +00:00

28 lines
816 B
C

#ifndef DECODE288_H
#define DECODE288_H
/* internal globals */
typedef struct {
float history[8];
float output[40];
float pr1[36];
float pr2[10];
int phase, phasep;
float st1a[111],st1b[37],st1[37];
float st2a[38],st2b[11],st2[11];
float sb[41];
float lhist[10];
} Real_internal;
/* prototypes */
static void unpack (unsigned short *tgt, unsigned char *src, int len);
static void decode (Real_internal *internal, unsigned int input);
static void update (Real_internal *internal);
static void colmult (float *tgt, float *m1, const float *m2, int n);
static int pred (float *in, float *tgt, int n);
static void co (int n, int i, int j, float *in, float *out, float *st1, float *st2, const float *table);
static void prodsum (float *tgt, float *src, int len, int n);
#endif /* !DECODE288_H */