Merge branch_beta3 onto the mainline.
[platform/upstream/libvorbis.git] / lib / books / res0_128a_256_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-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_256_4_VQH_
19 #define _V_res0_128a_256_4_VQH_
20 #include "codebook.h"
21
22 static long _vq_quantlist_res0_128a_256_4[] = {
23         23,
24         24,
25         25,
26         26,
27         27,
28         29,
29         31,
30         34,
31         39,
32         46,
33         22,
34         21,
35         20,
36         19,
37         17,
38         15,
39         12,
40         7,
41         0,
42 };
43
44 static long _vq_lengthlist_res0_128a_256_4[] = {
45          7, 7, 8, 8, 8, 7, 8, 8, 8,11, 7, 8, 8, 7, 7, 8,
46          8, 8,11, 8, 8, 8, 8, 8, 8, 8, 8, 8,11, 8, 8, 8,
47          8, 8, 8, 8, 8,11, 8, 8, 8, 8, 8, 8, 8, 8, 9,12,
48          8, 8, 8, 8, 8, 8, 8, 9,11, 8, 8, 8, 9, 8, 8, 8,
49          8, 9,11, 8, 8, 9, 8, 8, 8, 8, 9,12, 8, 8, 8, 8,
50          8, 8, 8, 8, 8,11, 8, 8, 8, 8, 8, 8, 8, 9,11, 8,
51          8, 8, 8, 8, 8, 8, 8, 8,11, 8, 8, 8, 8, 8, 8, 8,
52          8,11, 8, 8, 8, 9, 8, 8, 8, 8, 9,12, 8, 8, 9, 8,
53          8, 8, 8, 9,11, 9, 9, 9, 9, 9, 8, 8, 8, 9,12, 9,
54          9, 9, 9, 8, 8, 8, 9,12,10,10,10,10,10, 9,10,10,
55         11,13,10,10,10,10, 9, 9,10,11,13,13,12,13,13,12,
56         12,12,12,13,16,12,13,13,12,12,13,12,13,15, 8, 8,
57          8, 8, 8, 8, 8, 8, 9,11, 8, 8, 8, 8, 8, 8, 8, 8,
58         11, 8, 8, 8, 8, 8, 8, 8, 8, 9,12, 8, 8, 8, 8, 8,
59          8, 8, 9,11, 8, 8, 8, 8, 8, 8, 8, 8, 9,12, 8, 8,
60          8, 8, 8, 8, 8, 9,11, 8, 8, 8, 8, 8, 8, 8, 8, 9,
61         11, 8, 8, 8, 8, 8, 8, 8, 8,11, 8, 8, 8, 8, 8, 8,
62          8, 8, 8,11, 8, 8, 8, 8, 7, 8, 8, 8,11, 8, 8, 8,
63          9, 8, 8, 8, 8, 9,11, 8, 8, 8, 8, 8, 8, 8, 9,11,
64          9, 9, 9, 9, 9, 8, 8, 8, 9,12, 9, 9, 9, 8, 8, 8,
65          8, 9,12,10,10,10,10,10, 9,10,10,11,13,10,10,10,
66         10, 9, 9,10,11,13,12,12,12,13,13,12,12,12,13,14,
67         12,13,13,12,12,12,13,13,16,
68 };
69
70 static float _vq_quantthresh_res0_128a_256_4[] = {
71         -19.5, -13.5, -9.5, -7, -5, -3.5, -2.5, -1.5, 
72         -0.5, 0.5, 1.5, 2.5, 3.5, 5, 7, 9.5, 
73         13.5, 19.5, 
74 };
75
76 static long _vq_quantmap_res0_128a_256_4[] = {
77            18,   17,   16,   15,   14,   13,   12,   11,
78            10,    0,    1,    2,    3,    4,    5,    6,
79             7,    8,    9,
80 };
81
82 static encode_aux_threshmatch _vq_auxt_res0_128a_256_4 = {
83         _vq_quantthresh_res0_128a_256_4,
84         _vq_quantmap_res0_128a_256_4,
85         19,
86         19
87 };
88
89 static static_codebook _vq_book_res0_128a_256_4 = {
90         2, 361,
91         _vq_lengthlist_res0_128a_256_4,
92         1, -526974976, 1611661312, 6, 0,
93         _vq_quantlist_res0_128a_256_4,
94         NULL,
95         &_vq_auxt_res0_128a_256_4,
96         NULL,
97 };
98
99
100 #endif