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