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_C.h,v 1.2 2001/08/13 08:38:30 xiphmont Exp $
16 ********************************************************************/
18 #ifndef _V_MODES_44c_C_H_
19 #define _V_MODES_44c_C_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_CG={
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 struct vp_couple_pass _psy_pass_44c_C0[]={
84 {9999, 4.5,0, 0,12, 0,0}}
88 static vp_couple_pass _psy_pass_44c_C[]={
90 {{512, 0,0, 0,0, 0,0},
91 {9999, 4.5,0, 0,12, 0,0}}
95 static vorbis_info_psy _psy_set_44c_C0={
96 ATH_Bark_dB_lineaggressive,
100 -3.f, -40.f,&_vp_tonemask_consbass_A,
101 /* peakattp, curvelimitp */
102 1, 30, &_vp_peakatt_B,
105 1,-30.f, /* suppress any noise curve over maxspec+n */
106 .6f, .6f, /* low/high window */
109 /*63 125 250 500 1k 2k 4k 8k 16k*/
110 {-30,-30,-30,-30,-30,-30,-20,-10, 0, 0, 0, 0, 0, 0, 0, 0, 0},
111 {.5f,.5f,.5f,.5f,.5f,.5f,.5f,.5f,.5f,.5f,.5f,.5f,.5f,.6f,.7f,.8f,.8f},
113 105.f, /* even decade + 5 is important; saves an rint() later in a
119 static vorbis_info_psy _psy_set_44c_CT={
120 ATH_Bark_dB_lineaggressive,
124 -3.f,-40.f,&_vp_tonemask_consbass_A,
125 /* peakattp,curvelimitp */
126 1, 30, &_vp_peakatt_B,
129 1, -30.f, /* suppress any noise curve over maxspec+n */
130 .4f,.4f, /* low/high window */
133 /*63 125 250 500 1k 2k 4k 8k 16k*/
134 {-30,-30,-30,-30,-30,-30,-30,-20, -6, -6, -6, -6, 0, 0, 0, 0, 0},
135 {.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.5f,.6f,.7f,.7f},
137 105.f, /* even decade + 5 is important; saves an rint() later in a
142 static vorbis_info_psy _psy_set_44c_C={
143 ATH_Bark_dB_lineaggressive,
147 -3.f,-40.f,&_vp_tonemask_consbass_A,
148 /* peakattp, curvelimitp */
149 1, 30, &_vp_peakatt_B,
152 1, -30.f, /* suppress any noise curve over maxspec+n */
153 .4f,.4f, /* low/high window */
156 /*63 125 250 500 1k 2k 4k 8k 16k*/
157 { 0, 0, 0, 0, 0, 0, 0, 0, -6, -6, -6, -6, 0, 0, 0, 0, 0},
158 {.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.4f,.5f,.6f,.7f,.7f},
160 105.f, /* even decade + 5 is important; saves an rint() later in a
165 static vorbis_info_time0 _time_set_44c_C={0};
167 static vorbis_info_floor1 _floor_set_44c_C0={
174 {{2},{-1,3,4,5},{-1,6,7,8}},
182 2,1,4, 11,8,14, 23,20,26,
183 41,35,48, 84,69,103},
191 static vorbis_info_floor1 _floor_set_44c_C={
193 {0,1,2,2,2,2,2, 3,3,3},
211 6,3,10, 22,18,26, 41,36,47,
212 69,61,78, 112,99,126, 185,162,211,
213 329,282,387, 672,553,825
221 static vorbis_info_residue0 _residue_set_44c_C0={
223 {0,1,1,1,1,1,1,1,3,7},
254 static vorbis_info_residue0 _residue_set_44c_C={
256 {0,1,1,1,1,1,1,1,3,7},
287 static vorbis_info_mapping0 _mapping_set_44c_C0={
288 1, {0,0}, {0}, {0}, {0}, {0,0}, 1,{0},{1}};
289 static vorbis_info_mapping0 _mapping_set_44c_C={
290 1, {0,0}, {0}, {1}, {1}, {1,2}, 1,{0},{1}};
292 static vorbis_info_mode _mode_set_44c_C0={0,0,0,0};
293 static vorbis_info_mode _mode_set_44c_C={1,0,0,1};
295 codec_setup_info info_44c_C={
297 /* smallblock, largeblock */
299 /* modes,maps,times,floors,residues,books,psys */
300 2, 2, 1, 2, 2, 37, 3,
302 {&_mode_set_44c_C0,&_mode_set_44c_C},
304 {0,0},{&_mapping_set_44c_C0,&_mapping_set_44c_C},
306 {0,0},{&_time_set_44c_C},
308 {1,1},{&_floor_set_44c_C0,&_floor_set_44c_C},
310 {2,2},{&_residue_set_44c_C0,&_residue_set_44c_C},
314 &_huff_book_line_128x19_class1,
315 &_huff_book_line_128x19_class2, /* 1 */
317 &_huff_book_line_128x19_0sub0, /* 2 */
318 &_huff_book_line_128x19_1sub1, /* 3 */
319 &_huff_book_line_128x19_1sub2,
320 &_huff_book_line_128x19_1sub3, /* 5 */
321 &_huff_book_line_128x19_2sub1,
322 &_huff_book_line_128x19_2sub2, /* 7 */
323 &_huff_book_line_128x19_2sub3,
325 &_huff_book_line_1024x31_class0,
326 &_huff_book_line_1024x31_class1, /* 10 */
327 &_huff_book_line_1024x31_class2,
328 &_huff_book_line_1024x31_class3, /* 12 */
330 &_huff_book_line_1024x31_0sub0,
331 &_huff_book_line_1024x31_0sub1, /* 14 */
332 &_huff_book_line_1024x31_1sub0,
333 &_huff_book_line_1024x31_1sub1,
334 &_huff_book_line_1024x31_2sub1,
335 &_huff_book_line_1024x31_2sub2, /* 18 */
336 &_huff_book_line_1024x31_2sub3,
337 &_huff_book_line_1024x31_3sub1,
338 &_huff_book_line_1024x31_3sub2,
339 &_huff_book_line_1024x31_3sub3, /* 22 */
341 &_huff_book_res_44c_C_128aux,
342 &_huff_book_res_44c_C_1024aux,
360 {&_psy_set_44c_C0,&_psy_set_44c_CT,&_psy_set_44c_C},