Mercurial > mplayer.hg
annotate mp3lib/l2tables.h @ 32614:4558e2b7e68b
Fix memleaks on error.
author | reimar |
---|---|
date | Sun, 12 Dec 2010 10:37:15 +0000 |
parents | 0ad2da052b2e |
children |
rev | line source |
---|---|
15167
07e7a572bd84
Mark modified imported files as such to comply with (L)GPL ¡ø2a.
diego
parents:
12131
diff
changeset
|
1 /* |
18783 | 2 * Modified for use with MPlayer, for details see the changelog at |
3 * http://svn.mplayerhq.hu/mplayer/trunk/ | |
15167
07e7a572bd84
Mark modified imported files as such to comply with (L)GPL ¡ø2a.
diego
parents:
12131
diff
changeset
|
4 * $Id$ |
07e7a572bd84
Mark modified imported files as such to comply with (L)GPL ¡ø2a.
diego
parents:
12131
diff
changeset
|
5 */ |
07e7a572bd84
Mark modified imported files as such to comply with (L)GPL ¡ø2a.
diego
parents:
12131
diff
changeset
|
6 |
30163
257ef2adfd66
Add multiple inclusion guards to all mp3lib headers.
diego
parents:
29263
diff
changeset
|
7 #ifndef MPLAYER_MP3LIB_L2TABLES_H |
257ef2adfd66
Add multiple inclusion guards to all mp3lib headers.
diego
parents:
29263
diff
changeset
|
8 #define MPLAYER_MP3LIB_L2TABLES_H |
257ef2adfd66
Add multiple inclusion guards to all mp3lib headers.
diego
parents:
29263
diff
changeset
|
9 |
30167
347d152a5cfa
Refactor real --> float #define to a typedef in a common header.
diego
parents:
30163
diff
changeset
|
10 #include "mpg123.h" |
347d152a5cfa
Refactor real --> float #define to a typedef in a common header.
diego
parents:
30163
diff
changeset
|
11 |
1 | 12 /* |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
18783
diff
changeset
|
13 * Layer 2 Alloc tables .. |
1 | 14 * most other tables are calculated on program start (which is (of course) |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
18783
diff
changeset
|
15 * not ISO-conform) .. |
1 | 16 * Layer-3 huffman table is in huffman.h |
17 */ | |
18 | |
12131
d155623271e3
fix symbol clashes when linking with libmp3lame including mp3 decoder, man, mp3lib is so much bloated
alex
parents:
1
diff
changeset
|
19 static struct al_table alloc_0[] = { |
30990 | 20 {4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511}, |
21 {11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767}, | |
22 {4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511}, | |
23 {11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767}, | |
24 {4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511}, | |
25 {11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767}, | |
26 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
27 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
28 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
29 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
30 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
31 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
32 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
33 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
34 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
35 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
36 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
37 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
38 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
39 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
40 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
41 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
42 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
43 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
44 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
45 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
46 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
47 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
48 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
49 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
50 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
51 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
52 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
53 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
54 {2,0},{5,3},{7,5},{16,-32767}, | |
55 {2,0},{5,3},{7,5},{16,-32767}, | |
56 {2,0},{5,3},{7,5},{16,-32767}, | |
57 {2,0},{5,3},{7,5},{16,-32767} }; | |
1 | 58 |
12131
d155623271e3
fix symbol clashes when linking with libmp3lame including mp3 decoder, man, mp3lib is so much bloated
alex
parents:
1
diff
changeset
|
59 static struct al_table alloc_1[] = { |
30990 | 60 {4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511}, |
61 {11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767}, | |
62 {4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511}, | |
63 {11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767}, | |
64 {4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511}, | |
65 {11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767}, | |
66 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
67 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
68 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
69 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
70 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
71 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
72 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
73 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
74 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
75 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
76 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
77 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
78 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
79 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
80 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
81 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767}, | |
82 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
83 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
84 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
85 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
86 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
87 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
88 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
89 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
90 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
91 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
92 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
93 {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767}, | |
94 {2,0},{5,3},{7,5},{16,-32767}, | |
95 {2,0},{5,3},{7,5},{16,-32767}, | |
96 {2,0},{5,3},{7,5},{16,-32767}, | |
97 {2,0},{5,3},{7,5},{16,-32767}, | |
98 {2,0},{5,3},{7,5},{16,-32767}, | |
99 {2,0},{5,3},{7,5},{16,-32767}, | |
100 {2,0},{5,3},{7,5},{16,-32767} }; | |
1 | 101 |
12131
d155623271e3
fix symbol clashes when linking with libmp3lame including mp3 decoder, man, mp3lib is so much bloated
alex
parents:
1
diff
changeset
|
102 static struct al_table alloc_2[] = { |
30990 | 103 {4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255}, |
104 {10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383}, | |
105 {4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255}, | |
106 {10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383}, | |
107 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
108 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
109 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
110 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
111 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
112 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63} }; | |
1 | 113 |
12131
d155623271e3
fix symbol clashes when linking with libmp3lame including mp3 decoder, man, mp3lib is so much bloated
alex
parents:
1
diff
changeset
|
114 static struct al_table alloc_3[] = { |
30990 | 115 {4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255}, |
116 {10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383}, | |
117 {4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255}, | |
118 {10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383}, | |
119 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
120 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
121 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
122 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
123 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
124 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
125 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
126 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
127 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
128 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63} }; | |
1 | 129 |
12131
d155623271e3
fix symbol clashes when linking with libmp3lame including mp3 decoder, man, mp3lib is so much bloated
alex
parents:
1
diff
changeset
|
130 static struct al_table alloc_4[] = { |
30990 | 131 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, |
132 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191}, | |
133 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
134 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191}, | |
135 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
136 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191}, | |
137 {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127}, | |
138 {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191}, | |
139 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
140 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
141 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
142 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
143 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
144 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
145 {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63}, | |
146 {2,0},{5,3},{7,5},{10,9}, | |
147 {2,0},{5,3},{7,5},{10,9}, | |
148 {2,0},{5,3},{7,5},{10,9}, | |
149 {2,0},{5,3},{7,5},{10,9}, | |
150 {2,0},{5,3},{7,5},{10,9}, | |
151 {2,0},{5,3},{7,5},{10,9}, | |
152 {2,0},{5,3},{7,5},{10,9}, | |
153 {2,0},{5,3},{7,5},{10,9}, | |
154 {2,0},{5,3},{7,5},{10,9}, | |
155 {2,0},{5,3},{7,5},{10,9}, | |
156 {2,0},{5,3},{7,5},{10,9}, | |
1 | 157 {2,0},{5,3},{7,5},{10,9}, |
158 {2,0},{5,3},{7,5},{10,9}, | |
159 {2,0},{5,3},{7,5},{10,9}, | |
160 {2,0},{5,3},{7,5},{10,9}, | |
161 {2,0},{5,3},{7,5},{10,9}, | |
162 {2,0},{5,3},{7,5},{10,9}, | |
163 {2,0},{5,3},{7,5},{10,9}, | |
164 {2,0},{5,3},{7,5},{10,9} }; | |
165 | |
30163
257ef2adfd66
Add multiple inclusion guards to all mp3lib headers.
diego
parents:
29263
diff
changeset
|
166 #endif /* MPLAYER_MP3LIB_L2TABLES_H */ |