Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/libs/mpg123/src/libmpg123/l2tables.h
4394 views
1
/*
2
l2tables.h: Layer 2 Alloc tables
3
4
copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
5
see COPYING and AUTHORS files in distribution or http://mpg123.org
6
initially written by Michael Hipp
7
8
most other tables are calculated on program start (which is (of course) not ISO-conform)
9
Layer-3 huffman table is in huffman.h
10
11
Note: runtime computation of those other tables is optional now, and only for
12
floating point decoding.
13
*/
14
15
16
#ifndef _MPG123_L2TABLES_H_
17
#define _MPG123_L2TABLES_H_
18
19
static const struct al_table alloc_0[] = {
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} };
58
59
static const struct al_table alloc_1[] = {
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} };
101
102
static const struct al_table alloc_2[] = {
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} };
113
114
static const struct al_table alloc_3[] = {
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} };
129
130
static const struct al_table alloc_4[] = {
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},
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
166
#endif
167
168
169