bugfix/speed improvement to envelope.c
[platform/upstream/libvorbis.git] / lib / books / res0_256_1024_3.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_256_1024_3_VQH_
18 #define _V_res0_256_1024_3_VQH_
19 #include "codebook.h"
20
21 static long _vq_quantlist_res0_256_1024_3[] = {
22         10,
23         9,
24         11,
25         8,
26         12,
27         7,
28         13,
29         6,
30         14,
31         5,
32         15,
33         4,
34         16,
35         3,
36         17,
37         2,
38         18,
39         1,
40         19,
41         0,
42         20,
43 };
44
45 static long _vq_lengthlist_res0_256_1024_3[] = {
46          3, 4, 4, 6, 5, 7, 7, 8, 8, 8, 8, 9, 9,10,10,11,
47         11,11,11,12,12, 5, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,
48         10,10,11,11,12,12,13,13,13,13, 4, 5, 5, 6, 6, 7,
49          7, 8, 8, 9, 9,10,10,11,11,12,12,13,13,13,13, 6,
50          6, 6, 7, 7, 8, 8, 9, 9,10,10,11,11,12,12,13,13,
51         14,14,15,15, 6, 6, 6, 7, 7, 8, 8, 9, 9, 9,10,11,
52         11,12,12,13,13,14,14,15,15, 7, 7, 7, 8, 8, 9, 9,
53         10,10,11,11,12,12,13,13,15,15,15,15,16,16, 7, 7,
54          7, 8, 8, 9, 9,10,10,11,11,12,12,13,13,15,15,15,
55         15,16,16, 8, 8, 8, 9, 9,10,10,11,11,12,12,13,13,
56         14,15,15,15,17,16,17,17, 8, 8, 8, 9, 9,10,10,11,
57         11,12,12,13,13,14,14,15,15,16,16,17,17, 8, 9, 9,
58         10,10,11,11,12,12,13,13,14,15,16,15,16,16,17,17,
59         17,17, 8, 9, 9,10,10,11,11,12,12,13,13,14,14,16,
60         15,17,17,17,17,18,18, 9,10,10,11,11,12,12,13,13,
61         14,14,16,16,16,17,17,17,18,18,18,18, 9,10,10,11,
62         11,12,12,13,13,14,14,15,16,16,16,17,17,18,18,19,
63         18,10,11,11,12,12,14,13,15,14,16,16,17,17,17,17,
64         18,18,18,18,18,18,10,11,11,12,12,14,13,15,14,16,
65         16,16,16,17,18,18,17,18,18,18,19,11,12,12,13,14,
66         15,15,16,16,16,17,17,17,18,18,18,18,19,19,19,19,
67         11,12,12,14,14,15,15,16,16,17,17,17,17,18,18,19,
68         18,18,18,18,19,11,13,13,14,15,16,16,17,17,17,17,
69         17,18,18,19,18,18,19,19,20,19,12,13,13,15,14,16,
70         16,16,17,17,17,18,18,18,19,19,18,19,19,20,20,12,
71         14,14,15,15,16,17,18,17,18,18,18,19,18,18,19,19,
72         19,19,19,20,12,14,14,15,15,16,16,17,17,17,17,18,
73         19,18,18,19,19,20,19,19,20,
74 };
75
76 static float _vq_quantthresh_res0_256_1024_3[] = {
77         -9.5, -8.5, -7.5, -6.5, -5.5, -4.5, -3.5, -2.5, 
78         -1.5, -0.5, 0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 
79         6.5, 7.5, 8.5, 9.5, 
80 };
81
82 static long _vq_quantmap_res0_256_1024_3[] = {
83            19,   17,   15,   13,   11,    9,    7,    5,
84             3,    1,    0,    2,    4,    6,    8,   10,
85            12,   14,   16,   18,   20,
86 };
87
88 static encode_aux_threshmatch _vq_auxt_res0_256_1024_3 = {
89         _vq_quantthresh_res0_256_1024_3,
90         _vq_quantmap_res0_256_1024_3,
91         21,
92         21
93 };
94
95 static static_codebook _vq_book_res0_256_1024_3 = {
96         2, 441,
97         _vq_lengthlist_res0_256_1024_3,
98         1, -529268736, 1611661312, 5, 0,
99         _vq_quantlist_res0_256_1024_3,
100         NULL,
101         &_vq_auxt_res0_256_1024_3,
102         NULL,
103         0
104 };
105
106
107 #endif