a2b4c0b461659dc4140c540f4cb76bcee8826f23
[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  function: static codebook autogenerated by vq/somethingorother
13
14  ********************************************************************/
15
16 #ifndef _V_res0_256_1024_4_VQH_
17 #define _V_res0_256_1024_4_VQH_
18 #include "codebook.h"
19
20 static long _vq_quantlist_res0_256_1024_4[] = {
21         10,
22         9,
23         11,
24         8,
25         12,
26         7,
27         13,
28         6,
29         14,
30         5,
31         15,
32         4,
33         16,
34         3,
35         17,
36         2,
37         18,
38         1,
39         19,
40         0,
41         20,
42 };
43
44 static long _vq_lengthlist_res0_256_1024_4[] = {
45          6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9,10,
46         10,11,11,11,11, 6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8,
47          9, 9, 9, 9,10,10,11,11,11,11, 6, 6, 6, 6, 6, 7,
48          7, 7, 7, 8, 8, 9, 9, 9, 9,10,10,11,11,11,11, 6,
49          6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9,10,10,10,10,
50         11,11,12,12, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9,
51          9,10,10,10,10,11,11,12,12, 7, 7, 7, 7, 7, 7, 7,
52          8, 8, 9, 9, 9, 9,10,10,11,11,12,12,12,12, 7, 7,
53          7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9,10,10,11,11,12,
54         12,12,12, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9,10,10,
55         11,11,11,11,12,12,13,13, 7, 7, 7, 8, 8, 8, 8, 9,
56          9, 9, 9,10,10,11,11,11,11,12,12,13,13, 8, 8, 8,
57          8, 8, 9, 9, 9, 9,10,10,11,11,11,11,12,12,13,13,
58         13,13, 8, 8, 8, 8, 8, 9, 9, 9, 9,10,10,11,11,11,
59         11,12,12,12,13,13,13, 9, 9, 9, 9, 9, 9, 9,10,10,
60         11,11,11,11,12,12,13,12,13,13,14,14, 9, 9, 9, 9,
61          9, 9, 9,10,10,11,11,11,11,12,12,13,13,13,13,14,
62         14, 9, 9,10,10,10,10,10,11,11,11,11,12,12,13,13,
63         13,13,14,14,14,14, 9,10,10,10,10,10,10,11,11,11,
64         11,12,12,13,13,13,13,14,14,14,14,10,10,10,11,11,
65         11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,
66         10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,
67         14,15,14,15,15,11,11,11,11,11,12,12,12,12,13,13,
68         13,13,14,14,15,14,15,15,15,16,11,11,11,11,11,12,
69         12,12,12,13,13,13,13,14,14,14,14,15,15,15,16,11,
70         12,12,12,12,13,13,13,13,14,13,14,14,15,15,15,15,
71         16,15,16,16,11,12,12,12,12,12,13,13,13,13,13,14,
72         14,15,15,15,15,15,16,16,16,
73 };
74
75 static float _vq_quantthresh_res0_256_1024_4[] = {
76         -9.5, -8.5, -7.5, -6.5, -5.5, -4.5, -3.5, -2.5, 
77         -1.5, -0.5, 0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 
78         6.5, 7.5, 8.5, 9.5, 
79 };
80
81 static long _vq_quantmap_res0_256_1024_4[] = {
82            19,   17,   15,   13,   11,    9,    7,    5,
83             3,    1,    0,    2,    4,    6,    8,   10,
84            12,   14,   16,   18,   20,
85 };
86
87 static encode_aux_threshmatch _vq_auxt_res0_256_1024_4 = {
88         _vq_quantthresh_res0_256_1024_4,
89         _vq_quantmap_res0_256_1024_4,
90         21,
91         21
92 };
93
94 static static_codebook _vq_book_res0_256_1024_4 = {
95         2, 441,
96         _vq_lengthlist_res0_256_1024_4,
97         1, -529268736, 1611661312, 5, 0,
98         _vq_quantlist_res0_256_1024_4,
99         NULL,
100         &_vq_auxt_res0_256_1024_4,
101         NULL,
102         0
103 };
104
105
106 #endif