remove additional C++ comments
[platform/upstream/libvorbis.git] / lib / modes / mode_44c_E.h
1 /********************************************************************
2  *                                                                  *
3  * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
4  * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
5  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6  * IN 'COPYING'. 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: predefined encoding modes; 44kHz stereo ~64kbps true VBR
14  last mod: $Id: mode_44c_E.h,v 1.1 2001/08/13 08:38:30 xiphmont Exp $
15
16  ********************************************************************/
17
18 #ifndef _V_MODES_44c_E_H_
19 #define _V_MODES_44c_E_H_
20
21 #include <stdio.h>
22 #include "vorbis/codec.h"
23 #include "backends.h"
24
25 #include "books/line_128x19_class1.vqh"
26 #include "books/line_128x19_class2.vqh"
27
28 #include "books/line_128x19_0sub0.vqh"
29 #include "books/line_128x19_1sub1.vqh"
30 #include "books/line_128x19_1sub2.vqh"
31 #include "books/line_128x19_1sub3.vqh"
32 #include "books/line_128x19_2sub1.vqh"
33 #include "books/line_128x19_2sub2.vqh"
34 #include "books/line_128x19_2sub3.vqh"
35
36 #include "books/line_1024x31_class0.vqh"
37 #include "books/line_1024x31_class1.vqh"
38 #include "books/line_1024x31_class2.vqh"
39 #include "books/line_1024x31_class3.vqh"
40
41 #include "books/line_1024x31_0sub0.vqh"
42 #include "books/line_1024x31_0sub1.vqh"
43 #include "books/line_1024x31_1sub0.vqh"
44 #include "books/line_1024x31_1sub1.vqh"
45 #include "books/line_1024x31_2sub1.vqh"
46 #include "books/line_1024x31_2sub2.vqh"
47 #include "books/line_1024x31_2sub3.vqh"
48 #include "books/line_1024x31_3sub1.vqh"
49 #include "books/line_1024x31_3sub2.vqh"
50 #include "books/line_1024x31_3sub3.vqh"
51
52 #include "books/res_44c_E_128aux.vqh"
53 #include "books/res_44c_E_1024aux.vqh"
54
55 #include "books/res_Ec_1.vqh"
56 #include "books/res_Ec_2.vqh"
57 #include "books/res_Ec_3.vqh"
58 #include "books/res_Ec_4.vqh"
59 #include "books/res_Ec_5.vqh"
60 #include "books/res_Ec_6.vqh"
61 #include "books/res_Ec_7.vqh"
62 #include "books/res_Ec_8.vqh"
63 #include "books/res_Ec_8a.vqh"
64 #include "books/res_Ec_9.vqh"
65 #include "books/res_Ec_9a.vqh"
66 #include "books/res_Ec_9b.vqh"
67
68 #include "maskadj_A.h"
69
70 static vorbis_info_psy_global _psy_set_44c_EG={
71   0, /* decaydBpms */
72   8,   /* lines per eighth octave */
73   
74   /* thresh sample period, preecho clamp trigger threshhold, range, minenergy */
75   256, {26.f,26.f,26.f,30.f}, {-90.f,-90.f,-90.f,-90.f}, -90.f,
76   -6.f, 
77   
78   0,
79 };
80
81 static vp_couple_pass _psy_pass_44c_E[]={
82   {1.f,1.f,
83    {{9999,   0,0,       0,0,      0,0}}
84   }
85 };
86
87 static vorbis_info_psy _psy_set_44c_E0={
88   ATH_Bark_dB_lineconservative,
89   -110.,-140.,
90
91   /* tonemaskp */
92   -6.f, -45.f,&_vp_tonemask_E,
93   /* peakattp, curvelimitp */
94   1, 30, &_vp_peakatt_D,
95
96   /*noisemaskp */
97   1,-40.f,     /* suppress any noise curve over maxspec+n */
98   .6f, .6f,   /* low/high window */
99   5, 5, 10,
100
101   /*63     125     250     500      1k      2k      4k       8k     16k*/
102   {-30,-30,-30,-30,-30,-30,-20,-10,-10,-10,-10,-10,-6,-6,-6,-6,-6},
103   {.5f,.5f,.5f,.5f,.5f,.5f,.5f,.5f,.5f,.5f,.4f,.4f,.5f,.5f,.5f,.5f,.6f},
104
105   105.f,  /* even decade + 5 is important; saves an rint() later in a
106             tight loop) */
107   1,
108   _psy_pass_44c_E
109 };
110
111 static vorbis_info_psy _psy_set_44c_E={
112   ATH_Bark_dB_lineconservative,
113   -110.f,  -140.f,
114
115   /* tonemask */
116   -6.f,-45.f,&_vp_tonemask_consbass_A,
117   /* peakattp, curvelimitp */
118   1, 30, &_vp_peakatt_D,
119
120   /*noisemaskp */
121   1,  -40.f,     /* suppress any noise curve over maxspec+n */
122       .4f,.4f,   /* low/high window */
123       10,10,100,
124
125   /*63     125     250     500      1k      2k      4k       8k     16k*/
126   {-30,-30,-30,-30,-30,-30,-30,-20,-10,-12,-16,-16, -10, -6, -6, -6, -6},
127   {.5f,.5f,.5f,.5f,.5f,.5f,.5f,.5f,.5f,.4f,.4f,.4f,.4f,.4f,.5f,.5f,.6f},
128
129   105.f,  /* even decade + 5 is important; saves an rint() later in a
130             tight loop) */
131   1,_psy_pass_44c_E
132 };
133
134 static vorbis_info_time0 _time_set_44c_E={0};
135
136 static vorbis_info_floor1 _floor_set_44c_E0={
137   6,
138   {0,1,1,1,2,2},
139   
140   {4,3,3},
141   {0,2,2},
142   {-1,0,1},
143   {{2},{-1,3,4,5},{-1,6,7,8}},
144   
145   4,
146   
147   {0,128,  
148    
149    6,17,30,58,
150    
151    2,1,4, 11,8,14, 23,20,26,
152    41,35,48, 84,69,103},
153   
154   60,30,500,
155   999,999,1,18.,
156   8,70,
157   112};
158
159
160 static vorbis_info_floor1 _floor_set_44c_E={
161   10,
162   {0,1,2,2,2,2,2, 3,3,3},
163   
164   {3,4,3,3},
165   {1,1,2,2},
166   {9,10,11,12},
167   {{13,14},
168    {15,16},
169    {-1,17,18,19},
170    {-1,20,21,22},
171   },
172   
173   4,
174   {0,1024,
175    
176    88,31,243,
177    
178    14,54,143,460,
179    
180    6,3,10, 22,18,26, 41,36,47, 
181    69,61,78, 112,99,126, 185,162,211,  
182    329,282,387, 672,553,825
183   },
184   
185   60,30,400,
186   20,8,1,18.,
187   20,600,
188   896};
189
190 static vorbis_info_residue0 _residue_set_44c_E0={
191 0,256,16,10,23,
192                                             {0,1,1,1,1,1,1,1,3,7},
193                                             {25,
194                                              26,
195                                              27,
196                                              28,
197                                              29,
198                                              30,
199                                              31,32,
200                                              33,34,
201                                              35,36},
202                                             {9999,
203                                              9999,
204                                              9999,
205                                              9999,
206                                              40,9999,
207                                              58,9999,
208                                              9999,9999},
209                                             {.5f,
210                                              1.5f,
211                                              2.5f,
212                                              4.5f,
213                                              7.5f,7.5f,
214                                              16.5f,16.5,
215                                              84.5f},
216                                             {0},
217                                             {99,
218                                              99,
219                                              99,
220                                              99,
221                                              99,99,
222                                              99,99,
223                                              99,99},
224                                             {3}};
225
226 static vorbis_info_residue0 _residue_set_44c_E={
227 0,2048, 32,10,24,
228                                             {0,1,1,1,1,1,1,1,3,7},
229                                             {25,
230                                              26,
231                                              27,
232                                              28,
233                                              29,
234                                              30,
235                                              31,
236                                              32,33,
237                                              34,35,36},
238                                             {9999,
239                                              9999,
240                                              9999,
241                                              9999,
242                                              70,9999,
243                                              110,9999,
244                                              9999,9999},
245                                             {.5f,
246                                              1.5f,
247                                              2.5f,
248                                              4.5f,
249                                              7.5,7.5,
250                                              16.5f,16.5,
251                                              84.f},
252                                             {0},
253                                             {99,
254                                              99,
255                                              99,
256                                              99,
257                                              99,99,
258                                              99,99,
259                                              99,99},
260                                             {3}};
261
262 static vorbis_info_mapping0 _mapping_set_44c_E0={
263   1, {0,0}, {0}, {0}, {0}, {0,0}, 1,{0},{1}};
264 static vorbis_info_mapping0 _mapping_set_44c_E={
265   1, {0,0}, {0}, {1}, {1}, {1,1}, 1,{0},{1}};
266
267 static vorbis_info_mode _mode_set_44c_E0={0,0,0,0};
268 static vorbis_info_mode _mode_set_44c_E={1,0,0,1};
269
270 codec_setup_info info_44c_E={
271
272   /* smallblock, largeblock */
273   {256, 2048}, 
274   /* modes,maps,times,floors,residues,books,psys */
275   2,          2,    1,     2,       2,   37,   2,
276   /* modes */
277   {&_mode_set_44c_E0,&_mode_set_44c_E},
278   /* maps */
279   {0,0},{&_mapping_set_44c_E0,&_mapping_set_44c_E},
280   /* times */
281   {0,0},{&_time_set_44c_E},
282   /* floors */
283   {1,1},{&_floor_set_44c_E0,&_floor_set_44c_E},
284   /* residue */
285   {2,2},{&_residue_set_44c_E0,&_residue_set_44c_E},
286   /* books */
287   
288   {  
289     &_huff_book_line_128x19_class1,
290     &_huff_book_line_128x19_class2, /* 1 */
291    
292     &_huff_book_line_128x19_0sub0,  /* 2 */
293     &_huff_book_line_128x19_1sub1,  /* 3 */
294     &_huff_book_line_128x19_1sub2,
295     &_huff_book_line_128x19_1sub3,  /* 5 */
296     &_huff_book_line_128x19_2sub1,
297     &_huff_book_line_128x19_2sub2,  /* 7 */
298     &_huff_book_line_128x19_2sub3, 
299     
300     &_huff_book_line_1024x31_class0,
301     &_huff_book_line_1024x31_class1, /* 10 */
302     &_huff_book_line_1024x31_class2,
303     &_huff_book_line_1024x31_class3, /* 12 */
304     
305     &_huff_book_line_1024x31_0sub0,
306     &_huff_book_line_1024x31_0sub1, /* 14 */
307     &_huff_book_line_1024x31_1sub0, 
308     &_huff_book_line_1024x31_1sub1,
309     &_huff_book_line_1024x31_2sub1,  
310     &_huff_book_line_1024x31_2sub2, /* 18 */
311     &_huff_book_line_1024x31_2sub3, 
312     &_huff_book_line_1024x31_3sub1,
313     &_huff_book_line_1024x31_3sub2,
314     &_huff_book_line_1024x31_3sub3, /* 22 */
315
316     &_huff_book_res_44c_E_128aux, 
317     &_huff_book_res_44c_E_1024aux,
318     
319     &_vq_book_res_Ec_1,
320     &_vq_book_res_Ec_2,
321     &_vq_book_res_Ec_3,
322     &_vq_book_res_Ec_4,
323     &_vq_book_res_Ec_5,
324     &_vq_book_res_Ec_6,
325     &_vq_book_res_Ec_7,
326     &_vq_book_res_Ec_8,
327     &_vq_book_res_Ec_8a,
328     &_vq_book_res_Ec_9,
329     &_vq_book_res_Ec_9a,
330     &_vq_book_res_Ec_9b,
331
332   },
333   /* psy */
334   {&_psy_set_44c_E0,&_psy_set_44c_E},
335   &_psy_set_44c_EG
336 };
337
338 #endif