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_D.h,v 1.2 2001/08/13 11:30:59 xiphmont Exp $
16 ********************************************************************/
18 #ifndef _V_MODES_44c_D_H_
19 #define _V_MODES_44c_D_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_C_128aux.vqh"
53 #include "books/res_44c_C_1024aux.vqh"
55 #include "books/res_Cc_1.vqh"
56 #include "books/res_Cc_2.vqh"
57 #include "books/res_Cc_3.vqh"
58 #include "books/res_Cc_4.vqh"
59 #include "books/res_Cc_5.vqh"
60 #include "books/res_Cc_6.vqh"
61 #include "books/res_Cc_7.vqh"
62 #include "books/res_Cc_8.vqh"
63 #include "books/res_Cc_8a.vqh"
64 #include "books/res_Cc_9.vqh"
65 #include "books/res_Cc_9a.vqh"
66 #include "books/res_Cc_9b.vqh"
68 #include "maskadj_A.h"
70 static vorbis_info_psy_global _psy_set_44c_DG={
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_D[]={
83 {{9999, 0,0, 0,0, 0,0}}
87 static vorbis_info_psy _psy_set_44c_D0={
88 ATH_Bark_dB_lineconservative,
92 -6.f, -45.f,&_vp_tonemask_consbass_A,
93 /* peakattp, curvelimitp */
94 1, 30, &_vp_peakatt_D,
97 1,-30.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, 0, 0, 0, 0, 0, 0, 0, 0, 1},
103 {.5f,.5f,.5f,.5f,.5f,.5f,.5f,.5f,.5f,.5f,.4f,.4f,.5f,.5f,.6f,.7f,.7f},
105 105.f, /* even decade + 5 is important; saves an rint() later in a
111 static vorbis_info_psy _psy_set_44c_DT={
112 ATH_Bark_dB_lineconservative,
116 -5.f,-45.f,&_vp_tonemask_consbass_A,
117 /* peakattp,curvelimitp */
118 1, 30, &_vp_peakatt_D,
121 1, -30.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_psy _psy_set_44c_D={
135 ATH_Bark_dB_lineconservative,
139 -6.f,-45.f,&_vp_tonemask_consbass_A,
140 /* peakattp, curvelimitp */
141 1, 30, &_vp_peakatt_D,
144 1, -30.f, /* suppress any noise curve over maxspec+n */
145 .4f,.4f, /* low/high window */
148 /*63 125 250 500 1k 2k 4k 8k 16k*/
149 {-30,-30,-30,-30,-30,-30,-20, -3,-10,-10,-12,-12, -6, -3, -2, -1, -0},
150 {.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.5f,.6f,.7f,.7f},
152 105.f, /* even decade + 5 is important; saves an rint() later in a
157 static vorbis_info_time0 _time_set_44c_D={0};
159 static vorbis_info_floor1 _floor_set_44c_D0={
166 {{2},{-1,3,4,5},{-1,6,7,8}},
174 2,1,4, 11,8,14, 23,20,26,
175 41,35,48, 84,69,103},
183 static vorbis_info_floor1 _floor_set_44c_D={
185 {0,1,2,2,2,2,2, 3,3,3},
203 6,3,10, 22,18,26, 41,36,47,
204 69,61,78, 112,99,126, 185,162,211,
205 329,282,387, 672,553,825
213 static vorbis_info_residue0 _residue_set_44c_D0={
215 {0,1,1,1,1,1,1,1,3,7},
245 static vorbis_info_residue0 _residue_set_44c_D={
247 {0,1,1,1,1,1,1,1,3,7},
278 static vorbis_info_mapping0 _mapping_set_44c_D0={
279 1, {0,0}, {0}, {0}, {0}, {0,0}, 1,{0},{1}};
280 static vorbis_info_mapping0 _mapping_set_44c_D={
281 1, {0,0}, {0}, {1}, {1}, {1,2}, 1,{0},{1}};
283 static vorbis_info_mode _mode_set_44c_D0={0,0,0,0};
284 static vorbis_info_mode _mode_set_44c_D={1,0,0,1};
286 codec_setup_info info_44c_D={
288 /* smallblock, largeblock */
290 /* modes,maps,times,floors,residues,books,psys */
291 2, 2, 1, 2, 2, 37, 3,
293 {&_mode_set_44c_D0,&_mode_set_44c_D},
295 {0,0},{&_mapping_set_44c_D0,&_mapping_set_44c_D},
297 {0,0},{&_time_set_44c_D},
299 {1,1},{&_floor_set_44c_D0,&_floor_set_44c_D},
301 {2,2},{&_residue_set_44c_D0,&_residue_set_44c_D},
305 &_huff_book_line_128x19_class1,
306 &_huff_book_line_128x19_class2, /* 1 */
308 &_huff_book_line_128x19_0sub0, /* 2 */
309 &_huff_book_line_128x19_1sub1, /* 3 */
310 &_huff_book_line_128x19_1sub2,
311 &_huff_book_line_128x19_1sub3, /* 5 */
312 &_huff_book_line_128x19_2sub1,
313 &_huff_book_line_128x19_2sub2, /* 7 */
314 &_huff_book_line_128x19_2sub3,
316 &_huff_book_line_1024x31_class0,
317 &_huff_book_line_1024x31_class1, /* 10 */
318 &_huff_book_line_1024x31_class2,
319 &_huff_book_line_1024x31_class3, /* 12 */
321 &_huff_book_line_1024x31_0sub0,
322 &_huff_book_line_1024x31_0sub1, /* 14 */
323 &_huff_book_line_1024x31_1sub0,
324 &_huff_book_line_1024x31_1sub1,
325 &_huff_book_line_1024x31_2sub1,
326 &_huff_book_line_1024x31_2sub2, /* 18 */
327 &_huff_book_line_1024x31_2sub3,
328 &_huff_book_line_1024x31_3sub1,
329 &_huff_book_line_1024x31_3sub2,
330 &_huff_book_line_1024x31_3sub3, /* 22 */
332 &_huff_book_res_44c_C_128aux,
333 &_huff_book_res_44c_C_1024aux,
350 {&_psy_set_44c_D0,&_psy_set_44c_DT,&_psy_set_44c_D},