bugfix/speed improvement to envelope.c
[platform/upstream/libvorbis.git] / lib / books / res0_160_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_160_1024_8_VQH_
18 #define _V_res0_160_1024_8_VQH_
19 #include "codebook.h"
20
21 static long _vq_quantlist_res0_160_1024_8[] = {
22         30,
23         29,
24         31,
25         28,
26         32,
27         27,
28         33,
29         26,
30         34,
31         25,
32         35,
33         24,
34         36,
35         23,
36         37,
37         22,
38         38,
39         21,
40         39,
41         20,
42         40,
43         19,
44         41,
45         18,
46         42,
47         17,
48         43,
49         16,
50         44,
51         15,
52         45,
53         14,
54         46,
55         13,
56         47,
57         12,
58         48,
59         11,
60         49,
61         10,
62         50,
63         9,
64         51,
65         8,
66         52,
67         7,
68         53,
69         6,
70         54,
71         5,
72         55,
73         4,
74         56,
75         3,
76         57,
77         2,
78         58,
79         1,
80         59,
81         0,
82         60,
83 };
84
85 static long _vq_lengthlist_res0_160_1024_8[] = {
86          2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7,
87          7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 7, 8,
88          8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9,10,
89         10,10,10,10,10,10,10,10,10,11,11,11,11,
90 };
91
92 static float _vq_quantthresh_res0_160_1024_8[] = {
93         -29.5, -28.5, -27.5, -26.5, -25.5, -24.5, -23.5, -22.5, 
94         -21.5, -20.5, -19.5, -18.5, -17.5, -16.5, -15.5, -14.5, 
95         -13.5, -12.5, -11.5, -10.5, -9.5, -8.5, -7.5, -6.5, 
96         -5.5, -4.5, -3.5, -2.5, -1.5, -0.5, 0.5, 1.5, 
97         2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 
98         10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 
99         18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 
100         26.5, 27.5, 28.5, 29.5, 
101 };
102
103 static long _vq_quantmap_res0_160_1024_8[] = {
104            59,   57,   55,   53,   51,   49,   47,   45,
105            43,   41,   39,   37,   35,   33,   31,   29,
106            27,   25,   23,   21,   19,   17,   15,   13,
107            11,    9,    7,    5,    3,    1,    0,    2,
108             4,    6,    8,   10,   12,   14,   16,   18,
109            20,   22,   24,   26,   28,   30,   32,   34,
110            36,   38,   40,   42,   44,   46,   48,   50,
111            52,   54,   56,   58,   60,
112 };
113
114 static encode_aux_threshmatch _vq_auxt_res0_160_1024_8 = {
115         _vq_quantthresh_res0_160_1024_8,
116         _vq_quantmap_res0_160_1024_8,
117         61,
118         61
119 };
120
121 static static_codebook _vq_book_res0_160_1024_8 = {
122         1, 61,
123         _vq_lengthlist_res0_160_1024_8,
124         1, -526516224, 1611661312, 6, 0,
125         _vq_quantlist_res0_160_1024_8,
126         NULL,
127         &_vq_auxt_res0_160_1024_8,
128         NULL,
129         0
130 };
131
132
133 #endif