remove additional C++ comments
[platform/upstream/libvorbis.git] / lib / modes / mode_44_C.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_44_C.h,v 1.1 2001/08/13 11:30:59 xiphmont Exp $
15
16  ********************************************************************/
17
18 #ifndef _V_MODES_44_C_H_
19 #define _V_MODES_44_C_H_
20
21 #include <stdio.h>
22 #include "vorbis/codec.h"
23 #include "backends.h"
24
25 #include "books/line_128x7_class1.vqh"
26 #include "books/line_128x7_class2.vqh"
27
28 #include "books/line_128x7_0sub0.vqh"
29 #include "books/line_128x7_1sub1.vqh"
30 #include "books/line_128x7_1sub2.vqh"
31 #include "books/line_128x7_1sub3.vqh"
32 #include "books/line_128x7_2sub1.vqh"
33 #include "books/line_128x7_2sub2.vqh"
34 #include "books/line_128x7_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_44_B_128aux.vqh"
53 #include "books/res_44_B_1024aux.vqh"
54
55 #include "books/res_B_1.vqh"
56 #include "books/res_B_2.vqh"
57 #include "books/res_B_3.vqh"
58 #include "books/res_B_4.vqh"
59 #include "books/res_B_5.vqh"
60 #include "books/res_B_5a.vqh"
61 #include "books/res_B_6.vqh"
62 #include "books/res_B_6a.vqh"
63 #include "books/res_B_6b.vqh"
64
65 #include "maskadj_A.h"
66
67 static vorbis_info_psy_global _psy_set_44_CG={
68   0, /* decaydBpms */
69   8,   /* lines per eighth octave */
70   
71   /* thresh sample period, preecho clamp trigger threshhold, range, minenergy */
72   256, {26.f,26.f,26.f,30.f}, {-90.f,-90.f,-90.f,-90.f}, -90.f,
73   -6.f, 
74   
75   0,
76 };
77
78 static struct vp_couple_pass _psy_pass_44_C[]={
79   {1.f,1.f, {0}}
80 };
81
82 static vorbis_info_psy _psy_set_44_C0={
83   ATH_Bark_dB_lineconservative,
84   -110.,-140.,
85
86   /* tonemaskp */
87   -3.f, -40.f,&_vp_tonemask_E,
88   /* peakattp, curvelimitp */
89   1, 30, &_vp_peakatt_D,
90
91   /*noisemaskp */
92   1,-40.f,     /* suppress any noise curve over maxspec+n */
93   1.f, 1.f,   /* low/high window */
94   2, 2, -1,
95
96   /*63     125     250     500      1k      2k      4k       8k     16k*/
97   {-30,-30,-30,-30,-30,-30,-20,-10, -6, -6, -6, -6,  0,  0,  0,  0,  0},
98   {.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.5f,.6f},
99
100   105.f,  /* even decade + 5 is important; saves an rint() later in a
101             tight loop) */
102   1,
103   _psy_pass_44_C
104 };
105
106 static vorbis_info_psy _psy_set_44_CT={
107   ATH_Bark_dB_lineconservative,
108   -110.f,-140.f,
109
110   /* tonemask */
111   -3.f,-40.f,&_vp_tonemask_E,
112   /* peakattp,curvelimitp */
113   1, 30,  &_vp_peakatt_D,
114
115   /*noisemaskp */
116   1,  -40.f,     /* suppress any noise curve over maxspec+n */
117       .5f,.5f,   /* low/high window */
118       10,10,100,
119
120   /*63     125     250     500      1k      2k      4k       8k     16k*/
121   {-30,-30,-30,-30,-30,-30,-30,-20, -6, -6, -6, -6,  0,   0,  0,  0,  0},
122   {.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.5f,.5f},
123
124   105.f,  /* even decade + 5 is important; saves an rint() later in a
125             tight loop) */
126   1,_psy_pass_44_C
127 };
128
129 static vorbis_info_psy _psy_set_44_C={
130   ATH_Bark_dB_lineconservative,
131   -110.f,  -140.f,
132
133   /* tonemask */
134   -3.f,-40.f,&_vp_tonemask_E,
135   /* peakattp, curvelimitp */
136   1, 30, &_vp_peakatt_D,
137
138   /*noisemaskp */
139   1,  -40.f,     /* suppress any noise curve over maxspec+n */
140       .5f,.5f,   /* low/high window */
141       10,10,100,
142
143   /*63     125     250     500      1k      2k      4k       8k     16k*/
144   {-30,-30,-30,-30,-30,-30,-30,-20, -6, -6, -6, -6,  0,   0,  0,  0,  0},
145   {.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.5f,.5f},
146
147   105.f,  /* even decade + 5 is important; saves an rint() later in a
148             tight loop) */
149   1,_psy_pass_44_C
150 };
151
152 static vorbis_info_time0 _time_set_44_C={0};
153
154 static vorbis_info_floor1 _floor_set_44_C0={
155   3,
156   {0,1,2},
157   
158   {1,3,3},
159   {0,2,2},
160   {-1,0,1},
161   {{2},{-1,3,4,5},{-1,6,7,8}},
162   
163   4,
164   
165   {0,128,  
166    
167    7,
168    
169    2,1,4,
170    23,13,45},
171   
172   60,30,500,
173   999,999,0,18.,
174   8,70,
175   128};
176
177 static vorbis_info_floor1 _floor_set_44_C={
178   10,
179   {0,1,2,2,2,2,2, 3,3,3},
180   
181   {3,4,3,3},
182   {1,1,2,2},
183   {9,10,11,12},
184   {{13,14},
185    {15,16},
186    {-1,17,18,19},
187    {-1,20,21,22},
188   },
189   
190   4,
191   {0,1024,
192    
193    88,31,243,
194    
195    14,54,143,460,
196    
197    6,3,10, 22,18,26, 41,36,47, 
198    69,61,78, 112,99,126, 185,162,211,  
199    329,282,387, 672,553,825
200   },
201   
202   60,30,400,
203   20,8,1,18.,
204   20,600,
205   1024};
206
207 static vorbis_info_residue0 _residue_set_44_C0={
208   0,128, 16, 7,23,
209   {0,1,1,1,1,3,7},
210   {25, 26, 27, 28, 29, 30, 31, 32, 33},
211   {9999, 9999 ,9999, 9999, 9999, 9999, 9999},
212   {.5, 1.5, 2.5, 4.5, 16.5, 84.5f},
213   {0},
214   {99, 99,99, 99, 99, 99},
215   {3}};
216
217 static vorbis_info_residue0 _residue_set_44_C={
218   0,1024, 32, 7,24,
219   {0,1,1,1,1,3,7},
220   {25, 26, 27, 28, 29, 30, 31, 32, 33},
221   {9999, 9999 ,9999, 9999, 9999, 9999, 9999},
222   {.5, 1.5, 2.5, 4.5, 16.5, 84.5f},
223   {0},
224   {99, 99,99, 99, 99, 99},
225   {3}};
226
227 static vorbis_info_mapping0 _mapping_set_44_C0={
228   1, {0,0}, {0}, {0}, {0}, {0,0}, 0,{0},{0}};
229 static vorbis_info_mapping0 _mapping_set_44_C={
230   1, {0,0}, {0}, {1}, {1}, {1,2}, 0,{0},{0}};
231
232 static vorbis_info_mode _mode_set_44_C0={0,0,0,0};
233 static vorbis_info_mode _mode_set_44_C={1,0,0,1};
234
235 codec_setup_info info_44_C={
236
237   /* smallblock, largeblock */
238   {256, 2048}, 
239   /* modes,maps,times,floors,residues,books,psys */
240   2,          2,    1,     2,       2,   34,   3,
241   /* modes */
242   {&_mode_set_44_C0,&_mode_set_44_C},
243   /* maps */
244   {0,0},{&_mapping_set_44_C0,&_mapping_set_44_C},
245   /* times */
246   {0,0},{&_time_set_44_C},
247   /* floors */
248   {1,1},{&_floor_set_44_C0,&_floor_set_44_C},
249   /* residue */
250   {0,0},{&_residue_set_44_C0,&_residue_set_44_C},
251   /* books */
252     
253   {  
254    &_huff_book_line_128x7_class1,
255    &_huff_book_line_128x7_class2, /* 1 */
256    
257    &_huff_book_line_128x7_0sub0,  /* 2 */
258    &_huff_book_line_128x7_1sub1,  /* 3 */
259    &_huff_book_line_128x7_1sub2,
260    &_huff_book_line_128x7_1sub3,  /* 5 */
261    &_huff_book_line_128x7_2sub1,
262    &_huff_book_line_128x7_2sub2,  /* 7 */
263    &_huff_book_line_128x7_2sub3, 
264
265    &_huff_book_line_1024x31_class0,
266    &_huff_book_line_1024x31_class1, /* 10 */
267    &_huff_book_line_1024x31_class2,
268    &_huff_book_line_1024x31_class3, /* 12 */
269
270    &_huff_book_line_1024x31_0sub0,
271    &_huff_book_line_1024x31_0sub1, /* 14 */
272    &_huff_book_line_1024x31_1sub0, 
273    &_huff_book_line_1024x31_1sub1,
274    &_huff_book_line_1024x31_2sub1,  
275    &_huff_book_line_1024x31_2sub2, /* 18 */
276    &_huff_book_line_1024x31_2sub3, 
277    &_huff_book_line_1024x31_3sub1,
278    &_huff_book_line_1024x31_3sub2,
279    &_huff_book_line_1024x31_3sub3, /* 22 */
280
281    &_huff_book_res_44_B_128aux, 
282    &_huff_book_res_44_B_1024aux,
283
284    &_vq_book_res_B_1,
285    &_vq_book_res_B_2,
286    &_vq_book_res_B_3,
287    &_vq_book_res_B_4,
288    &_vq_book_res_B_5,
289    &_vq_book_res_B_5a,
290    &_vq_book_res_B_6,
291    &_vq_book_res_B_6a,
292    &_vq_book_res_B_6b,
293
294   },
295   /* psy */
296   {&_psy_set_44_C0,&_psy_set_44_CT,&_psy_set_44_C},
297   &_psy_set_44_CG
298 };
299
300 #endif