Debian Codegraph @

Xmp3/mpglib.h

raw symbols SCIP
1
2 struct buf {
3 unsigned char *pnt;
4 long size;
5 long pos;
6 struct buf *next;
7 struct buf *prev;
8 };
9
10 struct framebuf {
11 struct buf *buf;
12 long pos;
13 struct frame *next;
14 struct frame *prev;
15 };
16
17 struct mpstr {
18 struct buf *head,*tail;
19 int bsize;
20 int framesize;
21 int fsizeold;
22 struct frame fr;
23 unsigned char bsspace[2][MAXFRAMESIZE+512]; /* MAXFRAMESIZE */
24 real hybrid_block[2][2][SBLIMIT*SSLIMIT];
25 int hybrid_blc[2];
26 unsigned long header;
27 int bsnum;
28 real synth_buffs[2][2][0x110];
29 int synth_bo;
30 long outscale; /* volume control default value 32768 */
31 long outsamplerate; /* raw output rate default same as mp3 sample rate*/
32 struct pcm_workingsample worksample; /* keep the state of the working sample for threads */
33 int initmp3; /* flag for first initialisation */
34 int longLimit[9][23]; /*sample limits re setting volume */
35 int shortLimit[9][14];
36 real decwin[512+32]; /* scale table */
37
38 };
39
40 #define BOOL int
41
42 #define MP3_ERR -1
43 #define MP3_OK 0
44 #define MP3_NEED_MORE 1
45
46
47 void InitMP3Constants(void);
48 BOOL InitMP3(struct mpstr *mp, long outscale);
49 int decodeMP3(struct mpstr *mp,char *inmemory,int inmemsize,
50 char *outmemory,int outmemsize,int *done);
51 void ExitMP3(struct mpstr *mp);
52
53 extern int synth_ntom_set_step(long,long);
54 extern int synth_ntom(struct mpstr *mp, real *bandPtr,int channel,unsigned char *out,int *pnt);
55 extern int synth_ntom_mono (struct mpstr *mp, real *bandPtr,unsigned char *samples,int *pnt);
56 extern int synth_ntom_8bit (real *,int,unsigned char *,int *);
57 extern int synth_ntom_mono2stereo (real *,unsigned char *,int *);
58 extern int synth_ntom_8bit_mono (real *,unsigned char *,int *);
59 extern int synth_ntom_8bit_mono2stereo (real *,unsigned char *,int *);
60
61 extern void init_layer3_sample_limits(struct mpstr *mp, int down_sample_sblimit);
62 extern void init_layer3_const(void);
63 extern int do_layer3(struct mpstr *mp,unsigned char *,int *);
64
65 extern void make_decode_tables_scale(struct mpstr *mp, long scaleval);
66 extern void make_decode_tables_const(void);
67 extern void make_conv16to8_table(int);
68
69 extern void dct64(real *,real *,real *);
70
71 extern unsigned int get1bit(struct mpstr *mp);
72 extern unsigned int getbits(struct mpstr *mp, int);
73 extern unsigned int getbits_fast(struct mpstr *mp, int);
74 extern int set_pointer(struct mpstr *mp, long backstep);
75