bugfix/speed improvement to envelope.c
[platform/upstream/libvorbis.git] / lib / books / res0_192_128_3.vqh
1 /********************************************************************
2  *                                                                  *
3  * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
4  * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
5  * THE GNU LESSER/LIBRARY PUBLIC LICENSE, WHICH IS INCLUDED WITH    *
6  * THIS SOURCE. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.        *
7  *                                                                  *
8  * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001             *
9  * by the XIPHOPHORUS Company, http://www.xiph.org/                 *
10  *                                                                  *
11  ********************************************************************
12
13  function: static codebook autogenerated by vq/somethingorother
14
15  ********************************************************************/
16
17 #ifndef _V_res0_192_128_3_VQH_
18 #define _V_res0_192_128_3_VQH_
19 #include "codebook.h"
20
21 static long _vq_quantlist_res0_192_128_3[] = {
22         24,
23         23,
24         25,
25         22,
26         26,
27         21,
28         27,
29         20,
30         28,
31         19,
32         29,
33         18,
34         30,
35         17,
36         31,
37         16,
38         32,
39         15,
40         33,
41         14,
42         34,
43         13,
44         35,
45         12,
46         36,
47         11,
48         37,
49         10,
50         38,
51         9,
52         39,
53         8,
54         40,
55         7,
56         41,
57         6,
58         42,
59         5,
60         43,
61         4,
62         44,
63         3,
64         45,
65         2,
66         46,
67         1,
68         47,
69         0,
70         48,
71 };
72
73 static long _vq_lengthlist_res0_192_128_3[] = {
74          4, 4, 4, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9,
75          9, 9, 9, 9, 9, 9,10,10,10,10,10,10,10,10,10,11,
76         10,11,11,11,11,12,11,12,11,12,12,13,12,13,12,13,
77         12, 5, 5, 5, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9,
78          9, 9, 9, 9, 9, 9, 9, 9, 9,10,10,10,10,10,10,10,
79         11,10,11,10,11,10,11,11,12,12,12,12,12,12,13,12,
80         13,13, 5, 5, 5, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9,
81          9, 9, 9, 9, 9, 9, 9, 9,10, 9,10,10,10,10,10,10,
82         10,11,10,11,10,11,11,11,11,12,11,12,12,12,12,13,
83         12,13,13, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9,10,10,
84         10,10,10,10,10,11,10,11,10,11,11,11,11,11,11,11,
85         11,11,11,11,12,11,12,11,13,12,13,12,14,13,14,13,
86         14,13,14,14, 6, 7, 7, 8, 8, 9, 8, 9, 9, 9, 9,10,
87         10,10,10,10,10,10,10,10,11,10,11,11,11,11,11,11,
88         11,11,11,12,11,12,11,12,12,13,12,13,12,13,13,13,
89         13,14,13,15,14, 8, 8, 8, 9, 9,10,10,10,10,11,11,
90         11,11,11,11,11,12,11,12,11,12,12,12,11,12,12,12,
91         12,12,12,12,13,12,13,12,14,13,13,13,15,13,14,13,
92         15,14,15,14,15,15, 8, 8, 8, 9, 9,10,10,11,10,10,
93         11,11,11,11,11,11,11,12,12,11,12,12,12,12,12,12,
94         12,12,12,12,12,12,12,13,12,13,13,13,13,14,13,14,
95         14,14,14,15,15,15,15, 8, 9, 9,10,10,11,11,11,11,
96         12,12,12,12,12,12,12,12,12,13,12,13,12,13,12,13,
97         12,12,13,12,13,13,13,13,14,14,15,14,14,14,15,14,
98         14,15,14,14,16,15,15,16, 8, 9, 9,10,10,11,11,11,
99         12,12,12,12,12,12,13,12,13,12,12,12,13,12,12,12,
100         13,13,13,13,12,13,13,13,13,14,13,14,13,15,14,15,
101         14,16,15,16,15,16,15,15,15, 9,10,10,11,11,12,12,
102         12,13,12,13,13,13,13,13,13,14,12,14,13,14,13,14,
103         14,13,13,13,14,14,13,14,13,14,14,13,15,14,15,14,
104         16,15,15,15,16,15,16,15,16,16, 9,10,10,11,11,12,
105         12,12,12,12,12,13,13,13,13,14,13,13,13,13,13,13,
106         13,13,13,14,14,14,14,14,14,14,14,15,14,15,14,15,
107         14,15,15,16,15,16,15,16,16,16,16,10,11,11,12,12,
108         13,13,13,13,13,14,14,13,14,14,14,14,14,14,14,14,
109         14,14,14,14,14,14,14,14,15,14,15,15,15,14,15,15,
110         16,15,17,15,16,16,17,16,17,16,16,17,10,11,11,12,
111         12,13,13,13,13,13,13,14,13,13,13,14,14,13,14,14,
112         14,14,14,14,14,14,14,14,14,14,14,14,15,15,14,16,
113         14,16,15,15,15,17,15,17,15,17,16,17,17,11,12,11,
114         13,13,13,13,13,14,13,14,14,14,14,15,14,15,14,14,
115         14,15,14,15,14,14,14,15,14,15,15,14,15,15,15,15,
116         16,16,17,15,16,17,16,16,17,16,17,16,18,17,11,12,
117         11,12,13,13,14,14,14,14,13,14,15,15,14,15,15,14,
118         14,14,15,14,15,15,15,14,14,15,15,17,15,15,16,15,
119         16,16,15,16,15,17,15,17,16,17,16,18,17,17,17,12,
120         12,12,13,14,14,14,14,14,14,15,14,15,15,15,15,15,
121         14,15,15,15,14,15,15,15,15,16,15,16,16,15,15,16,
122         17,15,18,15,16,16,16,16,17,17,16,17,16,17,18,18,
123         12,12,12,13,13,14,14,14,14,14,14,14,16,15,15,16,
124         15,16,15,15,15,16,15,16,15,16,15,16,15,17,15,17,
125         16,15,16,17,16,18,16,17,17,17,16,17,17,17,18,16,
126         16,12,13,13,14,13,15,14,15,15,15,16,16,15,15,16,
127         15,16,15,16,16,15,16,17,15,16,16,16,17,16,18,16,
128         17,16,17,17,17,17,17,16,17,17,18,17,18,18,18,18,
129         16,17,12,12,12,14,13,14,15,14,15,15,15,15,15,15,
130         15,15,16,14,15,16,16,16,15,16,15,16,17,16,16,15,
131         16,16,17,16,16,16,16,17,16,17,17,16,16,17,17,17,
132         17,17,17,13,13,13,15,14,15,15,16,16,16,16,16,16,
133         15,17,15,16,15,16,15,16,15,17,15,16,16,17,16,16,
134         16,16,18,16,18,17,17,17,17,16,18,18,18,17,18,16,
135         17,17,18,18,13,13,13,14,14,16,15,16,15,16,16,16,
136         16,16,15,15,16,15,16,16,15,16,16,16,17,16,16,16,
137         16,16,16,17,17,17,16,17,16,17,17,18,17,18,16,18,
138         18,17,17,18,18,13,14,13,15,15,15,16,15,16,16,16,
139         15,17,16,17,15,16,16,17,16,17,16,16,17,16,18,15,
140         16,17,17,16,16,17,18,16,17,16,17,17,17,18,18,17,
141         17,17,17,18,18,18,13,14,13,15,15,15,15,16,15,16,
142         16,16,16,16,16,16,16,16,16,17,17,17,16,17,16,17,
143         16,17,16,17,16,18,16,17,16,17,16,18,17,18,17,17,
144         17,18,17,17,18,18,18,13,14,14,16,15,15,16,16,16,
145         16,17,17,15,16,17,16,16,15,17,16,17,17,16,16,16,
146         16,17,16,17,17,17,18,17,16,17,17,17,18,17,17,17,
147         18,17,18,18,17,18,18,18,13,14,14,15,16,15,14,16,
148         16,16,17,17,16,17,16,18,16,16,16,17,16,17,18,17,
149         15,17,17,17,17,18,16,16,16,18,17,17,18,17,17,18,
150         17,17,17,18,18,18,17,17,17,13,15,14,16,15,15,16,
151         17,15,16,17,16,15,17,17,16,17,17,17,15,16,18,17,
152         17,17,16,17,17,18,17,16,17,17,17,17,18,17,17,17,
153         18,17,18,18,17,18,18,18,18,18,15,14,15,16,15,16,
154         15,16,17,16,16,16,17,17,18,16,17,16,17,17,16,16,
155         16,17,16,17,16,18,17,17,18,18,18,17,17,18,17,17,
156         17,17,17,17,18,17,17,18,18,17,18,14,15,15,15,16,
157         16,16,16,16,16,17,16,18,17,16,16,16,16,17,18,17,
158         17,18,17,17,17,17,17,17,17,17,18,18,18,17,18,18,
159         17,17,18,18,18,17,18,17,18,18,17,18,14,15,15,16,
160         16,16,15,16,18,16,16,16,17,17,16,17,17,17,17,17,
161         17,16,18,18,17,17,16,18,17,18,17,17,17,17,17,17,
162         17,18,17,18,18,17,17,18,18,18,17,18,18,14,15,15,
163         16,16,16,17,17,17,16,16,17,17,17,17,17,17,17,18,
164         18,18,16,17,17,18,17,17,18,17,17,17,18,18,18,18,
165         18,16,18,18,18,18,18,18,18,18,18,18,18,18,15,16,
166         16,16,16,16,16,17,16,16,16,17,18,16,18,17,17,17,
167         17,16,18,16,17,18,16,17,16,17,16,18,18,18,17,17,
168         17,18,17,18,17,18,18,17,18,18,18,18,18,17,18,16,
169         16,15,16,17,16,16,17,17,16,17,17,18,18,18,16,18,
170         17,18,17,17,17,17,18,18,17,17,17,17,18,18,18,17,
171         17,17,17,17,17,18,18,18,18,18,18,18,17,18,18,18,
172         14,15,15,16,15,15,17,17,16,15,17,17,16,16,18,17,
173         17,17,17,17,16,17,17,17,17,16,17,17,18,18,17,17,
174         18,18,17,17,17,18,17,18,17,17,17,18,18,18,18,18,
175         18,15,16,15,17,17,18,17,16,18,17,16,17,17,18,17,
176         17,17,18,17,16,18,18,17,18,17,17,16,17,17,17,18,
177         18,17,18,18,18,18,18,18,18,18,17,18,18,18,18,18,
178         17,18,15,15,17,16,17,17,17,16,16,18,17,17,18,18,
179         17,17,18,17,17,18,18,17,17,17,18,17,17,18,16,18,
180         18,17,18,18,18,18,18,18,18,18,17,18,18,18,18,18,
181         17,18,18,16,17,16,16,16,16,17,18,17,17,17,17,18,
182         17,18,16,18,18,18,18,18,18,17,18,18,17,18,18,17,
183         18,18,18,17,17,18,18,18,17,18,18,17,18,18,18,18,
184         18,18,18,18,16,16,17,16,16,17,18,18,17,16,17,17,
185         18,17,17,17,18,16,18,17,17,18,17,17,17,18,18,18,
186         17,17,17,17,18,17,17,18,17,18,17,18,18,18,18,18,
187         18,18,18,18,18,16,16,16,17,17,17,17,17,18,18,18,
188         17,17,18,18,17,17,18,18,18,18,18,18,18,17,18,18,
189         17,18,17,18,17,18,18,17,18,18,18,18,18,18,18,18,
190         18,18,18,18,18,18,16,17,17,17,17,16,16,18,16,18,
191         17,18,18,18,18,18,18,17,17,17,18,17,18,18,17,18,
192         18,17,17,17,18,18,18,18,18,18,17,18,17,18,18,18,
193         18,18,18,18,18,18,18,17,16,17,16,18,18,17,18,18,
194         18,18,18,18,18,18,18,18,18,17,18,18,18,18,18,18,
195         18,18,18,18,18,18,18,18,18,18,18,17,18,18,18,16,
196         18,18,18,17,18,18,18,18,16,18,18,18,16,18,17,16,
197         17,17,18,18,18,16,18,18,18,18,18,17,18,18,18,18,
198         18,17,18,18,18,18,18,17,18,17,17,18,18,18,18,18,
199         17,18,18,18,18,18,18,18,18,17,17,17,17,17,17,18,
200         18,18,18,17,18,18,18,18,18,17,18,18,18,18,18,18,
201         18,17,18,17,17,17,18,17,18,18,18,18,17,17,18,18,
202         18,18,18,18,18,18,18,18,18,18,16,16,17,18,17,17,
203         18,17,17,18,17,18,17,18,17,18,18,18,18,18,17,17,
204         18,18,18,17,17,17,17,18,17,18,18,18,17,18,18,18,
205         17,18,18,18,18,18,18,18,18,17,18,17,17,18,18,17,
206         17,18,17,17,18,18,17,17,18,17,18,18,18,18,18,18,
207         18,18,18,17,18,18,18,18,18,18,18,18,18,18,18,18,
208         18,17,18,17,18,18,18,18,18,18,18,18,16,17,17,16,
209         18,17,17,18,18,18,18,17,18,18,18,18,18,18,18,18,
210         18,18,17,18,18,18,18,17,18,18,18,18,18,18,18,18,
211         18,18,18,18,18,18,17,18,18,18,18,18,18,17,17,18,
212         18,17,18,17,18,17,17,18,17,18,18,18,18,18,18,17,
213         18,18,18,18,18,18,18,18,18,17,18,18,18,18,18,18,
214         18,18,18,18,18,18,18,18,18,18,18,18,18,18,16,18,
215         17,18,17,18,18,17,17,18,18,17,18,18,17,18,18,17,
216         17,18,17,18,18,18,18,18,18,18,18,18,18,18,18,18,
217         17,18,18,18,17,18,18,18,18,18,18,18,18,18,18,17,
218         17,18,18,18,17,17,17,17,18,18,18,18,18,18,17,18,
219         18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
220         18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
221         16,17,17,17,18,18,18,18,17,18,18,18,18,17,18,18,
222         18,18,18,18,18,17,18,18,18,18,18,18,18,18,18,18,
223         18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
224         18,
225 };
226
227 static float _vq_quantthresh_res0_192_128_3[] = {
228         -23.5, -22.5, -21.5, -20.5, -19.5, -18.5, -17.5, -16.5, 
229         -15.5, -14.5, -13.5, -12.5, -11.5, -10.5, -9.5, -8.5, 
230         -7.5, -6.5, -5.5, -4.5, -3.5, -2.5, -1.5, -0.5, 
231         0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 
232         8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 
233         16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 
234 };
235
236 static long _vq_quantmap_res0_192_128_3[] = {
237            47,   45,   43,   41,   39,   37,   35,   33,
238            31,   29,   27,   25,   23,   21,   19,   17,
239            15,   13,   11,    9,    7,    5,    3,    1,
240             0,    2,    4,    6,    8,   10,   12,   14,
241            16,   18,   20,   22,   24,   26,   28,   30,
242            32,   34,   36,   38,   40,   42,   44,   46,
243            48,
244 };
245
246 static encode_aux_threshmatch _vq_auxt_res0_192_128_3 = {
247         _vq_quantthresh_res0_192_128_3,
248         _vq_quantmap_res0_192_128_3,
249         49,
250         49
251 };
252
253 static static_codebook _vq_book_res0_192_128_3 = {
254         2, 2401,
255         _vq_lengthlist_res0_192_128_3,
256         1, -526909440, 1611661312, 6, 0,
257         _vq_quantlist_res0_192_128_3,
258         NULL,
259         &_vq_auxt_res0_192_128_3,
260         NULL,
261         0
262 };
263
264
265 #endif