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