bugfix/speed improvement to envelope.c
[platform/upstream/libvorbis.git] / lib / books / res0_256_1024_4.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_4_VQH_
18 #define _V_res0_256_1024_4_VQH_
19 #include "codebook.h"
20
21 static long _vq_quantlist_res0_256_1024_4[] = {
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_4[] = {
46          6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9,10,
47         10,11,11,11,11, 6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8,
48          9, 9, 9, 9,10,10,11,11,12,12, 6, 6, 6, 6, 6, 7,
49          7, 7, 7, 8, 8, 9, 9, 9, 9,10,10,11,11,11,12, 6,
50          6, 6, 7, 6, 7, 7, 8, 8, 8, 8, 9, 9,10,10,11,11,
51         11,11,12,12, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 8, 9,
52          9,10,10,11,11,11,11,12,12, 7, 7, 7, 7, 7, 7, 7,
53          8, 8, 9, 9, 9, 9,10,10,11,11,12,12,12,12, 7, 7,
54          7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9,10,10,11,11,12,
55         12,12,12, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9,10,10,
56         11,11,12,12,12,12,13,13, 7, 7, 7, 8, 8, 8, 8, 9,
57          9, 9, 9,10,10,11,11,12,12,12,12,13,13, 8, 8, 8,
58          8, 8, 9, 9, 9, 9,10,10,11,11,11,11,12,12,13,13,
59         13,14, 8, 8, 8, 8, 8, 9, 9, 9, 9,10,10,11,11,11,
60         11,12,12,13,13,13,13, 9, 9, 9, 9, 9,10,10,10,10,
61         11,11,11,11,12,12,13,13,13,13,14,14, 9, 9, 9, 9,
62          9,10,10,10,10,11,11,11,11,12,12,13,13,13,13,14,
63         14, 9,10,10,10,10,10,10,11,11,12,11,12,12,13,13,
64         13,13,14,14,15,15, 9,10,10,10,10,10,10,11,11,12,
65         11,12,12,13,13,13,13,14,14,15,15,10,10,10,11,11,
66         11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,
67         10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,
68         14,15,14,15,15,11,11,11,12,12,12,12,13,12,13,13,
69         14,13,14,14,15,14,15,15,15,16,11,11,11,12,12,12,
70         12,13,12,13,13,14,14,14,14,15,14,15,15,16,16,12,
71         12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,
72         16,16,16,16,12,12,12,12,12,13,13,13,13,14,14,14,
73         14,15,15,15,15,15,16,16,16,
74 };
75
76 static float _vq_quantthresh_res0_256_1024_4[] = {
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_4[] = {
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_4 = {
89         _vq_quantthresh_res0_256_1024_4,
90         _vq_quantmap_res0_256_1024_4,
91         21,
92         21
93 };
94
95 static static_codebook _vq_book_res0_256_1024_4 = {
96         2, 441,
97         _vq_lengthlist_res0_256_1024_4,
98         1, -529268736, 1611661312, 5, 0,
99         _vq_quantlist_res0_256_1024_4,
100         NULL,
101         &_vq_auxt_res0_256_1024_4,
102         NULL,
103         0
104 };
105
106
107 #endif