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