bugfix/speed improvement to envelope.c
[platform/upstream/libvorbis.git] / lib / books / res0_192_1024_8.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_8_VQH_
18 #define _V_res0_192_1024_8_VQH_
19 #include "codebook.h"
20
21 static long _vq_quantlist_res0_192_1024_8[] = {
22         40,
23         39,
24         41,
25         38,
26         42,
27         37,
28         43,
29         36,
30         44,
31         35,
32         45,
33         34,
34         46,
35         33,
36         47,
37         32,
38         48,
39         31,
40         49,
41         30,
42         50,
43         29,
44         51,
45         28,
46         52,
47         27,
48         53,
49         26,
50         54,
51         25,
52         55,
53         24,
54         56,
55         23,
56         57,
57         22,
58         58,
59         21,
60         59,
61         20,
62         60,
63         19,
64         61,
65         18,
66         62,
67         17,
68         63,
69         16,
70         64,
71         15,
72         65,
73         14,
74         66,
75         13,
76         67,
77         12,
78         68,
79         11,
80         69,
81         10,
82         70,
83         9,
84         71,
85         8,
86         72,
87         7,
88         73,
89         6,
90         74,
91         5,
92         75,
93         4,
94         76,
95         3,
96         77,
97         2,
98         78,
99         1,
100         79,
101         0,
102         80,
103 };
104
105 static long _vq_lengthlist_res0_192_1024_8[] = {
106          2, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7,
107          7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8,
108          8, 8, 8, 9, 8, 9, 9, 9, 9, 9, 9, 9, 9, 8, 8, 9,
109          8, 9, 9, 9, 9, 9, 9, 9, 9,10, 9,10,10,10,10,10,
110         10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,
111         11,
112 };
113
114 static float _vq_quantthresh_res0_192_1024_8[] = {
115         -39.5, -38.5, -37.5, -36.5, -35.5, -34.5, -33.5, -32.5, 
116         -31.5, -30.5, -29.5, -28.5, -27.5, -26.5, -25.5, -24.5, 
117         -23.5, -22.5, -21.5, -20.5, -19.5, -18.5, -17.5, -16.5, 
118         -15.5, -14.5, -13.5, -12.5, -11.5, -10.5, -9.5, -8.5, 
119         -7.5, -6.5, -5.5, -4.5, -3.5, -2.5, -1.5, -0.5, 
120         0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 
121         8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 
122         16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 
123         24.5, 25.5, 26.5, 27.5, 28.5, 29.5, 30.5, 31.5, 
124         32.5, 33.5, 34.5, 35.5, 36.5, 37.5, 38.5, 39.5, 
125 };
126
127 static long _vq_quantmap_res0_192_1024_8[] = {
128            79,   77,   75,   73,   71,   69,   67,   65,
129            63,   61,   59,   57,   55,   53,   51,   49,
130            47,   45,   43,   41,   39,   37,   35,   33,
131            31,   29,   27,   25,   23,   21,   19,   17,
132            15,   13,   11,    9,    7,    5,    3,    1,
133             0,    2,    4,    6,    8,   10,   12,   14,
134            16,   18,   20,   22,   24,   26,   28,   30,
135            32,   34,   36,   38,   40,   42,   44,   46,
136            48,   50,   52,   54,   56,   58,   60,   62,
137            64,   66,   68,   70,   72,   74,   76,   78,
138            80,
139 };
140
141 static encode_aux_threshmatch _vq_auxt_res0_192_1024_8 = {
142         _vq_quantthresh_res0_192_1024_8,
143         _vq_quantmap_res0_192_1024_8,
144         81,
145         81
146 };
147
148 static static_codebook _vq_book_res0_192_1024_8 = {
149         1, 81,
150         _vq_lengthlist_res0_192_1024_8,
151         1, -525074432, 1611661312, 7, 0,
152         _vq_quantlist_res0_192_1024_8,
153         NULL,
154         &_vq_auxt_res0_192_1024_8,
155         NULL,
156         0
157 };
158
159
160 #endif