Merge branch_beta3 onto the mainline.
[platform/upstream/libvorbis.git] / lib / books / res0_128a_192_5.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-2000             *
9  * by Monty <monty@xiph.org> and the XIPHOPHORUS Company            *
10  * http://www.xiph.org/                                             *
11  *                                                                  *
12  ********************************************************************
13
14  function: static codebook autogenerated by vq/somethingorother
15
16  ********************************************************************/
17
18 #ifndef _V_res0_128a_192_5_VQH_
19 #define _V_res0_128a_192_5_VQH_
20 #include "codebook.h"
21
22 static long _vq_quantlist_res0_128a_192_5[] = {
23         45,
24         46,
25         47,
26         48,
27         49,
28         51,
29         53,
30         56,
31         61,
32         68,
33         77,
34         90,
35         44,
36         43,
37         42,
38         41,
39         39,
40         37,
41         34,
42         29,
43         22,
44         13,
45         0,
46 };
47
48 static long _vq_lengthlist_res0_128a_192_5[] = {
49          5, 5, 6, 6, 6, 7, 7, 8,10,13,17, 0, 5, 6, 6, 6,
50          7, 7, 8,10,13,16,20, 5, 6, 6, 7, 7, 7, 7, 8,10,
51         14,17, 0, 6, 6, 7, 7, 7, 7, 8,10,13,17, 0, 6, 7,
52          7, 7, 7, 7, 8, 8,10,14,20,20, 7, 7, 7, 7, 7, 8,
53          8,10,14,19, 0, 7, 8, 8, 8, 8, 8, 9, 9,11,15,20,
54          0, 8, 8, 8, 8, 8, 8, 9,11,15, 0, 0, 8, 8, 9, 9,
55          9, 9, 9,10,12,15,18, 0, 9, 9, 9, 9, 9, 9,10,12,
56         15,18, 0, 9,10,10,11,10,10,11,11,13,16, 0, 0, 9,
57         10,11,10,10,11,11,13,15,18, 0,11,11,12,13,12,12,
58         12,13,14,18,18, 0,11,12,12,12,12,13,13,14,18,19,
59          0,13,13,14,14,14,14,14,15,16,19, 0, 0,13,14,14,
60         14,14,14,14,16,19, 0, 0,14,15,15,16,17,19,18,17,
61         19, 0, 0, 0,15,16,16,16,16,18,17,18,19, 0, 0,15,
62         16,19,18, 0, 0, 0, 0, 0, 0, 0, 0,16,17,18,19,18,
63         19,19, 0, 0, 0, 0,18,17, 0, 0, 0, 0, 0, 0, 0, 0,
64          0, 0,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
65          0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
66          0, 0, 0, 0, 5, 6, 6, 7, 7, 7, 7, 8,10,13,17, 0,
67          6, 6, 7, 7, 7, 7, 8,10,13,19, 0, 6, 7, 7, 7, 7,
68          7, 8, 8,10,14, 0, 0, 7, 7, 7, 7, 7, 8, 8,10,14,
69         19, 0, 7, 8, 8, 8, 8, 8, 9, 9,11,15,19, 0, 8, 8,
70          8, 8, 8, 9, 9,11,15,18, 0, 8, 8, 9, 9, 9, 9, 9,
71         10,12,16,19, 0, 9, 9, 9, 9, 9, 9,10,12,14,19, 0,
72          9,10,10,11,10,10,11,11,13,16,18, 0, 9,10,11,10,
73         10,11,11,13,15,19, 0,11,11,12,13,12,12,13,13,14,
74         18, 0, 0,11,12,13,12,12,12,13,15,17, 0, 0,13,13,
75         14,14,13,14,14,14,16,19, 0, 0,13,14,15,14,14,15,
76         14,16,18, 0, 0,15,15,16,18,16,17,17,17,19, 0, 0,
77          0,15,16,16,16,16,18,19,18, 0, 0, 0,16,17,18, 0,
78          0,18, 0,19, 0, 0, 0, 0,16,18,19,19, 0,19,19, 0,
79          0, 0, 0,16,17,19,19, 0, 0, 0, 0, 0, 0, 0, 0, 0,
80         18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,19, 0, 0, 0, 0,
81          0, 0, 0, 0, 0, 0,19,19, 0, 0, 0, 0, 0, 0, 0, 0,
82          0,
83 };
84
85 static float _vq_quantthresh_res0_128a_192_5[] = {
86         -38.5, -27.5, -19.5, -13.5, -9.5, -7, -5, -3.5, 
87         -2.5, -1.5, -0.5, 0.5, 1.5, 2.5, 3.5, 5, 
88         7, 9.5, 13.5, 19.5, 27.5, 38.5, 
89 };
90
91 static long _vq_quantmap_res0_128a_192_5[] = {
92            22,   21,   20,   19,   18,   17,   16,   15,
93            14,   13,   12,    0,    1,    2,    3,    4,
94             5,    6,    7,    8,    9,   10,   11,
95 };
96
97 static encode_aux_threshmatch _vq_auxt_res0_128a_192_5 = {
98         _vq_quantthresh_res0_128a_192_5,
99         _vq_quantmap_res0_128a_192_5,
100         23,
101         23
102 };
103
104 static static_codebook _vq_book_res0_128a_192_5 = {
105         2, 529,
106         _vq_lengthlist_res0_128a_192_5,
107         1, -524910592, 1611661312, 7, 0,
108         _vq_quantlist_res0_128a_192_5,
109         NULL,
110         &_vq_auxt_res0_128a_192_5,
111         NULL,
112 };
113
114
115 #endif