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_44_Y.h,v 1.1 2001/08/13 11:30:59 xiphmont Exp $
16 ********************************************************************/
18 #ifndef _V_MODES_44_Y_H_
19 #define _V_MODES_44_Y_H_
22 #include "vorbis/codec.h"
25 #include "books/line_128x7_class1.vqh"
26 #include "books/line_128x7_class2.vqh"
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"
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_44_Y_128aux.vqh"
53 #include "books/res_44_Y_1024aux.vqh"
55 #include "books/res_Z_1.vqh"
56 #include "books/res_Z_2.vqh"
57 #include "books/res_Z_3.vqh"
58 #include "books/res_Z_4.vqh"
59 #include "books/res_Z_5.vqh"
60 #include "books/res_Z_6.vqh"
61 #include "books/res_Z_6a.vqh"
62 #include "books/res_Z_6b.vqh"
64 #include "maskadj_Z.h"
66 static vorbis_info_psy_global _psy_set_44_YG={
68 8, /* lines per eighth octave */
70 /* thresh sample period, preecho clamp trigger threshhold, range, minenergy */
71 256, {26.f,26.f,26.f,30.f}, {-90.f,-90.f,-90.f,-90.f}, -90.f,
77 static struct vp_couple_pass _psy_pass_44_Y[]={
81 static vorbis_info_psy _psy_set_44_Y0={
82 ATH_Bark_dB_lineaggressive,
86 0.f, -24.f,&_vp_tonemask_consbass_Z,
87 /* peakattp, curvelimitp */
91 1,-24.f, /* suppress any noise curve over maxspec+n */
92 1.f, 1.f, /* low/high window */
95 /*63 125 250 500 1k 2k 4k 8k 16k*/
96 {-20,-20,-20,-20,-20,-20,-10, -5, 0, 0, 1, 1, 2, 2, 2, 2, 4},
97 {1.f,1.f,1.f,1.f,1.f,1.f,.8f,.7f,.7f,.7f,.7f,.7f,.8f,.88f,.89f,.9f,.9f},
99 95.f, /* even decade + 5 is important; saves an rint() later in a
105 static vorbis_info_psy _psy_set_44_YT={
106 ATH_Bark_dB_lineaggressive,
110 0.f,-20.f,&_vp_tonemask_consbass_Z,
111 /* peakattp,curvelimitp */
112 1, 0, &_vp_peakatt_Z,
115 1, -24.f, /* suppress any noise curve over maxspec+n */
116 .5f,.5f, /* low/high window */
119 /*63 125 250 500 1k 2k 4k 8k 16k*/
120 {-20,-20,-20,-20,-20,-20,-20, -6, 2, 2, 2, 2, 3, 3, 3, 4, 6},
121 {1.f,1.f,1.f,1.f,1.f,1.f,.8f,.7f,.7f,.7f,.7f,.7f,.8f,.88f,.89f,.9f,.9f},
123 95.f, /* even decade + 5 is important; saves an rint() later in a
128 static vorbis_info_psy _psy_set_44_Y={
129 ATH_Bark_dB_lineaggressive,
133 0.f,-20.f,&_vp_tonemask_Z,
134 /* peakattp, curvelimitp */
135 1, 0, &_vp_peakatt_Z,
138 1, -24.f, /* suppress any noise curve over maxspec+n */
139 .5f,.5f, /* low/high window */
142 /*63 125 250 500 1k 2k 4k 8k 16k*/
143 {-20,-20,-20,-20,-20,-20,-10,-6, 0, 0, 1, 1, 2, 2, 2, 2, 6},
144 {1.f,1.f,1.f,1.f,1.f,1.f,.8f,.7f,.7f,.7f,.7f,.8f,.85f,.88f,.89f,.9f,.9f},
146 95.f, /* even decade + 5 is important; saves an rint() later in a
151 static vorbis_info_time0 _time_set_44_Y={0};
153 static vorbis_info_floor1 _floor_set_44_Y0={
160 {{2},{-1,3,4,5},{-1,6,7,8}},
176 static vorbis_info_floor1 _floor_set_44_Y={
178 {0,1,2,2,2,2,2, 3,3,3},
196 6,3,10, 22,18,26, 41,36,47,
197 69,61,78, 112,99,126, 185,162,211,
198 329,282,387, 672,553,825
206 static vorbis_info_residue0 _residue_set_44_Y0={
209 {25, 26, 27, 28, 29, 30, 31, 32},
210 {9999, 3,9999, 9999, 9999, 9999, 9999},
211 {.5, 1.5f,1.5, 2.5, 7.5, 22.5f},
213 {99, 99,99, 99, 99, 99},
216 static vorbis_info_residue0 _residue_set_44_Y={
219 {25, 26, 27, 28, 29, 30, 31, 32},
220 {9999, 4,9999, 9999, 9999, 9999, 9999},
221 {.5, 1.5f,1.5, 2.5, 7.5, 22.5f},
223 {99, 99,99, 99, 99, 99},
226 static vorbis_info_mapping0 _mapping_set_44_Y0={
227 1, {0,0}, {0}, {0}, {0}, {0,0}, 0,{0},{0}};
228 static vorbis_info_mapping0 _mapping_set_44_Y={
229 1, {0,0}, {0}, {1}, {1}, {1,2}, 0,{0},{0}};
231 static vorbis_info_mode _mode_set_44_Y0={0,0,0,0};
232 static vorbis_info_mode _mode_set_44_Y={1,0,0,1};
234 codec_setup_info info_44_Y={
236 /* smallblock, largeblock */
238 /* modes,maps,times,floors,residues,books,psys */
239 2, 2, 1, 2, 2, 33, 3,
241 {&_mode_set_44_Y0,&_mode_set_44_Y},
243 {0,0},{&_mapping_set_44_Y0,&_mapping_set_44_Y},
245 {0,0},{&_time_set_44_Y},
247 {1,1},{&_floor_set_44_Y0,&_floor_set_44_Y},
249 {0,0},{&_residue_set_44_Y0,&_residue_set_44_Y},
253 &_huff_book_line_128x7_class1,
254 &_huff_book_line_128x7_class2, /* 1 */
256 &_huff_book_line_128x7_0sub0, /* 2 */
257 &_huff_book_line_128x7_1sub1, /* 3 */
258 &_huff_book_line_128x7_1sub2,
259 &_huff_book_line_128x7_1sub3, /* 5 */
260 &_huff_book_line_128x7_2sub1,
261 &_huff_book_line_128x7_2sub2, /* 7 */
262 &_huff_book_line_128x7_2sub3,
264 &_huff_book_line_1024x31_class0,
265 &_huff_book_line_1024x31_class1, /* 10 */
266 &_huff_book_line_1024x31_class2,
267 &_huff_book_line_1024x31_class3, /* 12 */
269 &_huff_book_line_1024x31_0sub0,
270 &_huff_book_line_1024x31_0sub1, /* 14 */
271 &_huff_book_line_1024x31_1sub0,
272 &_huff_book_line_1024x31_1sub1,
273 &_huff_book_line_1024x31_2sub1,
274 &_huff_book_line_1024x31_2sub2, /* 18 */
275 &_huff_book_line_1024x31_2sub3,
276 &_huff_book_line_1024x31_3sub1,
277 &_huff_book_line_1024x31_3sub2,
278 &_huff_book_line_1024x31_3sub3, /* 22 */
280 &_huff_book_res_44_Y_128aux,
281 &_huff_book_res_44_Y_1024aux,
294 {&_psy_set_44_Y0,&_psy_set_44_YT,&_psy_set_44_Y},