Merge of the current Monty branch; this brings in new psychoacoustic
[platform/upstream/libvorbis.git] / include / vorbis / book / res0a_12.vqh
1 /********************************************************************
2  *                                                                  *
3  * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE.  *
4  * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
5  * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE.    *
6  * PLEASE READ THESE TERMS DISTRIBUTING.                            *
7  *                                                                  *
8  * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-1999             *
9  * by 1999 Monty <monty@xiph.org> and The XIPHOPHORUS Company       *
10  * http://www.xiph.org/                                             *
11  *                                                                  *
12  ********************************************************************
13
14  function: static codebook autogenerated by vq/latticebuild
15
16  ********************************************************************/
17
18 #ifndef _V_res0a_12_VQH_
19 #define _V_res0a_12_VQH_
20 #include "vorbis/codebook.h"
21
22 static long _vq_quantlist_res0a_12[] = {
23         0,
24         3,
25         6,
26         8,
27         10,
28         12,
29         13,
30         14,
31         15,
32         16,
33         17,
34         18,
35         19,
36         20,
37         22,
38         24,
39         26,
40         29,
41         32,
42 };
43
44 static long _vq_lengthlist_res0a_12[] = {
45         19,19,19,17,17,16,17,15,15,13,15,16,17,17,16,16,
46         18,18,20,19,17,15,15,14,14,14,14,13,12,13,14,14,
47         15,14,15,15,17,19,16,15,14,13,12,12,12,12,11,10,
48         11,12,12,12,12,13,14,15,16,15,14,13,12,12,11,11,
49         11,10, 9,10,11,11,11,12,12,13,13,15,14,13,12,11,
50         11,10,10,10, 9, 8, 9,10,10,10,10,11,12,13,15,13,
51         12,11,10,10, 9,10, 9, 9, 8, 9, 9,10, 9,10,10,11,
52         12,13,13,11,10,10, 9, 9, 9, 9, 8, 7, 8, 9, 9, 9,
53          9,10,10,11,13,12,10, 9, 9, 8, 8, 8, 8, 7, 6, 7,
54          8, 8, 8, 8, 9, 9,10,12,10, 9, 8, 7, 7, 6, 7, 6,
55          6, 5, 6, 6, 7, 7, 7, 7, 8, 9,10, 9, 8, 7, 6, 6,
56          6, 6, 5, 5, 4, 5, 6, 6, 6, 6, 7, 7, 8, 9,10, 9,
57          8, 7, 7, 6, 7, 6, 6, 5, 6, 6, 7, 7, 7, 7, 8, 9,
58         10,12,10, 9, 9, 8, 8, 8, 8, 7, 6, 7, 8, 8, 8, 8,
59          9, 9,10,12,13,11,10,10, 9, 9, 9, 9, 8, 7, 8, 9,
60          9, 9, 9,10,10,11,13,14,12,11,10,10, 9,10, 9, 8,
61          8, 9, 9,10,10,10,10,11,12,13,14,13,12,11,10,10,
62         10,10, 9, 8, 9,10,10,10,10,11,12,13,14,15,14,13,
63         12,12,11,11,11,10, 9,10,11,11,11,11,12,13,14,15,
64         16,15,13,13,13,12,12,12,11,10,11,12,12,12,13,13,
65         14,15,16,18,17,16,15,14,14,14,14,13,12,13,14,14,
66         14,14,15,16,16,18,18,19,17,18,17,17,16,16,15,13,
67         15,16,16,16,17,16,17,20,19,
68 };
69
70 static double _vq_quantthresh_res0a_12[] = {
71         -14.5, -11.5, -9, -7, -5, -3.5, -2.5, -1.5, 
72         -0.5, 0.5, 1.5, 2.5, 3.5, 5, 7, 9, 
73         11.5, 14.5, 
74 };
75
76 static long _vq_quantmap_res0a_12[] = {
77             0,    1,    2,    3,    4,    5,    6,    7,
78             8,    9,   10,   11,   12,   13,   14,   15,
79            16,   17,   18,
80 };
81
82 static encode_aux_threshmatch _vq_aux_res0a_12 = {
83         _vq_quantthresh_res0a_12,
84         _vq_quantmap_res0a_12,
85         19,
86         19
87 };
88
89 static static_codebook _vq_book_res0a_12 = {
90         2, 361,
91         _vq_lengthlist_res0a_12,
92         1, -527433728, 1611661312, 6, 0,
93         _vq_quantlist_res0a_12,
94         NULL,
95         &_vq_aux_res0a_12
96 };
97
98
99 #endif