bugfix/speed improvement to envelope.c
[platform/upstream/libvorbis.git] / lib / books / res0_192_1024_7.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_1024_7_VQH_
18 #define _V_res0_192_1024_7_VQH_
19 #include "codebook.h"
20
21 static long _vq_quantlist_res0_192_1024_7[] = {
22         22,
23         21,
24         23,
25         20,
26         24,
27         19,
28         25,
29         18,
30         26,
31         17,
32         27,
33         16,
34         28,
35         15,
36         29,
37         14,
38         30,
39         13,
40         31,
41         12,
42         32,
43         11,
44         33,
45         10,
46         34,
47         9,
48         35,
49         8,
50         36,
51         7,
52         37,
53         6,
54         38,
55         5,
56         39,
57         4,
58         40,
59         3,
60         41,
61         2,
62         42,
63         1,
64         43,
65         0,
66         44,
67 };
68
69 static long _vq_lengthlist_res0_192_1024_7[] = {
70          3, 4, 4, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9,
71          9, 9, 9,10,10,10,10,10,10,10,10,11,11,11,11,11,
72         11,11,11,11,12,12,12,12,12,12,12,12,12, 5, 5, 5,
73          7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9,10,10,10,10,
74         11,11,11,11,11,11,12,12,12,12,12,12,12,12,13,13,
75         13,13,13,13,13,13,14,14,14,14, 4, 5, 5, 7, 7, 8,
76          8, 8, 8, 9, 9, 9, 9, 9, 9,10,10,10,10,11,11,11,
77         11,11,11,12,12,12,12,12,12,12,12,13,13,13,13,13,
78         13,13,13,14,13,14,14, 6, 7, 7, 8, 8, 9, 9, 9, 9,
79         10,10,10,11,11,11,11,11,12,12,12,12,12,12,13,13,
80         13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,
81         15,15,15,15, 6, 7, 7, 8, 8, 9, 9, 9, 9,10,10,10,
82         10,11,11,11,11,12,12,12,12,12,12,13,13,13,13,13,
83         13,13,13,14,14,14,14,14,14,14,14,15,15,15,15,15,
84         15, 7, 8, 8, 9, 9,10,10,10,10,11,11,11,11,11,11,
85         12,12,12,12,13,13,13,13,13,13,14,14,14,14,14,14,
86         15,14,15,15,15,15,15,15,16,15,16,16,16,16, 7, 8,
87          8, 9, 9,10, 9,10,10,11,11,11,11,11,11,12,12,12,
88         12,13,13,13,13,13,13,14,14,14,14,14,14,15,15,15,
89         15,15,15,15,15,15,15,16,16,16,16, 8, 8, 8,10, 9,
90         10,10,11,11,12,12,12,12,12,12,13,13,13,13,14,14,
91         14,14,14,14,14,14,15,15,15,15,15,15,15,15,16,15,
92         16,16,16,16,16,16,16,16, 8, 8, 8, 9,10,10,10,11,
93         11,12,12,12,12,12,12,13,13,13,13,13,14,14,14,14,
94         14,14,14,15,15,15,15,15,15,15,15,15,16,16,16,16,
95         16,17,17,17,16, 8, 9, 9,10,10,11,11,12,12,12,12,
96         13,13,13,13,13,13,14,14,14,14,14,14,15,15,15,15,
97         15,15,15,16,16,16,16,16,16,16,16,16,16,17,17,17,
98         17,17, 8, 9, 9,10,10,11,11,12,12,12,12,13,13,13,
99         13,13,13,14,14,14,14,14,14,15,15,15,15,15,15,16,
100         15,16,16,16,16,16,16,17,16,17,17,17,17,17,17, 9,
101         10,10,11,11,11,11,12,12,13,13,13,13,13,13,14,14,
102         14,14,15,14,15,15,15,15,15,15,16,15,16,16,16,16,
103         16,16,17,17,17,16,17,17,17,17,18,17, 9,10,10,11,
104         11,12,12,12,12,13,13,13,13,13,14,14,14,14,14,14,
105         15,15,15,15,15,15,15,16,16,16,16,16,16,16,16,17,
106         16,16,17,17,17,17,17,17,17, 9,10,10,11,11,12,12,
107         12,12,13,13,13,13,14,14,14,14,15,15,15,15,15,15,
108         15,16,16,16,16,16,16,16,16,17,17,17,17,17,18,17,
109         17,17,17,17,17,17, 9,10,10,11,11,12,12,12,12,13,
110         13,13,14,14,14,14,14,15,15,15,15,15,15,16,16,16,
111         16,16,16,16,16,16,17,17,17,17,17,17,17,17,17,18,
112         18,18,18, 9,10,10,11,11,12,12,13,13,13,13,14,14,
113         14,14,15,15,15,15,15,15,16,16,16,16,16,17,16,16,
114         17,16,17,17,17,17,17,17,18,18,18,17,18,18,18,18,
115          9,10,10,11,11,12,12,13,13,13,13,14,14,14,15,15,
116         15,15,15,15,15,16,16,16,16,16,16,17,16,17,17,17,
117         17,17,17,17,18,17,18,18,18,18,18,18,18,10,11,11,
118         12,12,13,13,13,13,14,14,14,14,15,15,15,15,15,15,
119         16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,18,
120         18,17,18,18,18,18,18,18,18,19,10,11,11,12,12,13,
121         13,13,13,14,14,14,14,15,15,15,15,16,15,16,16,16,
122         16,16,16,17,17,17,17,17,17,17,17,18,17,18,17,18,
123         18,18,18,18,18,18,18,10,11,11,12,12,13,13,14,14,
124         15,14,15,15,15,15,15,16,16,16,16,16,16,16,17,16,
125         17,17,17,17,17,17,18,17,17,18,18,18,18,18,19,19,
126         18,19,19,19,10,11,11,12,12,13,13,14,14,14,14,15,
127         15,15,15,15,15,16,16,16,16,16,16,17,17,17,17,17,
128         17,17,17,17,17,18,18,17,18,18,18,18,18,18,18,19,
129         18,10,11,11,13,13,14,14,14,14,15,15,15,15,15,15,
130         16,16,17,16,16,17,17,17,17,17,17,17,18,17,18,17,
131         18,18,18,18,18,18,18,18,19,19,18,18,19,19,10,12,
132         11,13,13,14,13,14,14,15,15,15,15,16,16,16,16,16,
133         16,16,17,16,16,17,17,17,17,18,17,17,18,17,18,18,
134         18,18,18,18,19,19,18,19,19,19,18,11,12,12,13,13,
135         14,14,15,14,15,15,16,15,16,16,16,16,17,17,17,17,
136         17,17,17,18,17,17,18,18,18,18,18,18,19,18,19,20,
137         18,18,18,19,19,19,19,19,11,12,12,13,13,14,14,15,
138         15,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,
139         17,18,17,17,17,18,18,18,18,17,18,18,18,19,19,19,
140         19,19,19,19,19,11,12,12,14,13,14,14,15,15,15,15,
141         16,16,16,16,17,17,17,17,17,17,17,18,17,18,17,18,
142         18,18,18,18,19,18,19,19,19,18,18,19,19,19,19,19,
143         19,19,11,12,12,13,13,14,14,15,15,15,15,16,16,16,
144         16,17,17,17,17,17,17,17,17,17,18,18,17,18,18,19,
145         18,18,19,19,18,19,19,19,19,19,19,19,19,19,19,11,
146         12,12,14,14,14,15,15,15,16,15,16,17,16,17,16,17,
147         17,17,17,17,17,17,18,18,17,18,18,18,19,18,19,19,
148         19,18,20,19,18,18,19,19,21,19,20,19,11,13,12,14,
149         14,15,14,16,15,16,16,16,16,17,16,17,17,17,17,17,
150         17,17,18,18,18,18,18,18,18,19,19,19,18,19,19,19,
151         18,20,19,19,18,19,19,19,20,12,13,13,14,14,15,15,
152         16,16,16,16,16,16,16,17,17,18,17,17,18,18,17,18,
153         18,18,18,18,19,18,18,19,19,18,19,19,19,19,19,19,
154         19,20,20,21,20,20,12,13,13,14,14,15,15,15,16,16,
155         16,16,16,17,17,17,17,17,17,18,18,18,18,18,18,18,
156         17,19,18,18,19,19,19,19,19,19,19,19,19,19,20,19,
157         19,21,21,12,13,13,14,14,15,15,16,16,17,16,16,17,
158         17,17,18,17,18,18,17,18,19,18,18,19,19,19,18,18,
159         19,19,19,19,19,18,20,19,19,20,20,20,19,19,19,19,
160         12,13,13,14,14,15,15,16,16,16,17,16,17,17,17,18,
161         17,18,17,18,18,18,18,18,18,18,18,18,18,18,19,18,
162         19,19,19,19,19,20,21,19,19,20,19,19,21,12,13,13,
163         15,15,15,16,16,16,17,17,17,17,17,17,18,17,18,18,
164         18,19,18,18,19,18,19,19,19,18,18,19,19,19,19,20,
165         21,20,20,20,21,19,20,20,20,21,12,13,13,15,15,16,
166         15,16,16,17,17,17,17,17,17,18,18,18,18,19,18,18,
167         19,19,18,19,18,19,18,19,19,19,20,20,19,19,21,19,
168         21,20,19,19,20,20,20,12,14,14,15,15,16,16,16,16,
169         17,17,17,17,17,18,18,18,18,18,18,19,19,18,18,19,
170         19,19,19,19,19,19,19,20,19,19,19,19,19,20,19,19,
171         21,20,20,19,12,14,14,15,15,16,16,17,16,17,17,17,
172         17,18,18,17,17,18,18,19,18,19,18,18,19,19,19,18,
173         19,20,19,19,19,19,19,21,19,20,20,20,20,20,19,21,
174         21,13,14,14,15,15,16,16,17,17,17,17,18,18,18,18,
175         18,18,19,19,19,19,18,19,19,19,19,20,19,19,20,19,
176         19,20,20,20,19,19,20,19,20,20,20,19,20,21,13,14,
177         14,15,15,16,16,17,17,17,18,18,18,18,18,18,18,18,
178         18,19,18,19,19,19,20,19,18,19,19,20,20,20,19,20,
179         20,19,19,20,19,21,21,21,22,20,21,13,14,14,15,15,
180         16,16,17,17,18,17,18,18,18,18,19,18,19,18,19,18,
181         19,19,20,19,19,19,19,19,20,20,19,19,19,19,22,20,
182         19,20,21,20,21,20,20,20,13,14,14,15,15,16,16,17,
183         17,17,17,18,18,19,18,18,18,18,18,19,18,19,18,19,
184         19,19,19,20,20,20,19,20,20,20,20,20,20,21,22,21,
185         20,19,20,21,22,13,14,14,15,16,17,16,17,17,17,18,
186         18,19,18,18,19,19,18,19,20,20,20,19,19,19,19,20,
187         21,20,20,20,21,19,21,21,21,21,20,20,21,21,20,22,
188         20,20,13,14,14,16,16,17,17,17,17,17,17,19,18,18,
189         18,19,19,19,19,19,19,19,19,20,19,20,20,20,20,19,
190         19,19,19,20,20,20,20,20,19,20,20,21,21,21,22,13,
191         15,15,16,16,17,17,17,17,18,18,18,19,20,18,19,19,
192         19,20,19,19,19,19,19,20,19,21,20,21,20,20,21,20,
193         19,20,21,20,21,21,20,21,20,20,21,21,13,15,15,16,
194         16,17,17,18,17,18,19,18,18,19,18,19,19,19,19,18,
195         20,20,19,20,20,20,20,20,21,19,19,19,20,20,20,20,
196         20,20,19,20,20,21,21,21,19,
197 };
198
199 static float _vq_quantthresh_res0_192_1024_7[] = {
200         -21.5, -20.5, -19.5, -18.5, -17.5, -16.5, -15.5, -14.5, 
201         -13.5, -12.5, -11.5, -10.5, -9.5, -8.5, -7.5, -6.5, 
202         -5.5, -4.5, -3.5, -2.5, -1.5, -0.5, 0.5, 1.5, 
203         2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 
204         10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 
205         18.5, 19.5, 20.5, 21.5, 
206 };
207
208 static long _vq_quantmap_res0_192_1024_7[] = {
209            43,   41,   39,   37,   35,   33,   31,   29,
210            27,   25,   23,   21,   19,   17,   15,   13,
211            11,    9,    7,    5,    3,    1,    0,    2,
212             4,    6,    8,   10,   12,   14,   16,   18,
213            20,   22,   24,   26,   28,   30,   32,   34,
214            36,   38,   40,   42,   44,
215 };
216
217 static encode_aux_threshmatch _vq_auxt_res0_192_1024_7 = {
218         _vq_quantthresh_res0_192_1024_7,
219         _vq_quantmap_res0_192_1024_7,
220         45,
221         45
222 };
223
224 static static_codebook _vq_book_res0_192_1024_7 = {
225         2, 2025,
226         _vq_lengthlist_res0_192_1024_7,
227         1, -527040512, 1611661312, 6, 0,
228         _vq_quantlist_res0_192_1024_7,
229         NULL,
230         &_vq_auxt_res0_192_1024_7,
231         NULL,
232         0
233 };
234
235
236 #endif