1 /********************************************************************
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. *
8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
9 * by the XIPHOPHORUS Company http://www.xiph.org/ *
11 ********************************************************************
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 $
16 ********************************************************************/
18 #ifndef _V_MODES_44c_E_H_
19 #define _V_MODES_44c_E_H_
22 #include "vorbis/codec.h"
25 #include "books/line_128x19_class1.vqh"
26 #include "books/line_128x19_class2.vqh"
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"
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"
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"
52 #include "books/res_44c_E_128aux.vqh"
53 #include "books/res_44c_E_1024aux.vqh"
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"
68 #include "maskadj_A.h"
70 static vorbis_info_psy_global _psy_set_44c_EG={
72 8, /* lines per eighth octave */
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,
81 static vp_couple_pass _psy_pass_44c_E[]={
83 {{9999, 0,0, 0,0, 0,0}}
87 static vorbis_info_psy _psy_set_44c_E0={
88 ATH_Bark_dB_lineconservative,
92 -6.f, -45.f,&_vp_tonemask_E,
93 /* peakattp, curvelimitp */
94 1, 30, &_vp_peakatt_D,
97 1,-40.f, /* suppress any noise curve over maxspec+n */
98 .6f, .6f, /* low/high window */
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},
105 105.f, /* even decade + 5 is important; saves an rint() later in a
111 static vorbis_info_psy _psy_set_44c_E={
112 ATH_Bark_dB_lineconservative,
116 -6.f,-45.f,&_vp_tonemask_consbass_A,
117 /* peakattp, curvelimitp */
118 1, 30, &_vp_peakatt_D,
121 1, -40.f, /* suppress any noise curve over maxspec+n */
122 .4f,.4f, /* low/high window */
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},
129 105.f, /* even decade + 5 is important; saves an rint() later in a
134 static vorbis_info_time0 _time_set_44c_E={0};
136 static vorbis_info_floor1 _floor_set_44c_E0={
143 {{2},{-1,3,4,5},{-1,6,7,8}},
151 2,1,4, 11,8,14, 23,20,26,
152 41,35,48, 84,69,103},
160 static vorbis_info_floor1 _floor_set_44c_E={
162 {0,1,2,2,2,2,2, 3,3,3},
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
190 static vorbis_info_residue0 _residue_set_44c_E0={
192 {0,1,1,1,1,1,1,1,3,7},
226 static vorbis_info_residue0 _residue_set_44c_E={
228 {0,1,1,1,1,1,1,1,3,7},
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}};
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};
270 codec_setup_info info_44c_E={
272 /* smallblock, largeblock */
274 /* modes,maps,times,floors,residues,books,psys */
275 2, 2, 1, 2, 2, 37, 2,
277 {&_mode_set_44c_E0,&_mode_set_44c_E},
279 {0,0},{&_mapping_set_44c_E0,&_mapping_set_44c_E},
281 {0,0},{&_time_set_44c_E},
283 {1,1},{&_floor_set_44c_E0,&_floor_set_44c_E},
285 {2,2},{&_residue_set_44c_E0,&_residue_set_44c_E},
289 &_huff_book_line_128x19_class1,
290 &_huff_book_line_128x19_class2, /* 1 */
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,
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 */
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 */
316 &_huff_book_res_44c_E_128aux,
317 &_huff_book_res_44c_E_1024aux,
334 {&_psy_set_44c_E0,&_psy_set_44c_E},