1 /********************************************************************
3 * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE. *
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
5 * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE. *
6 * PLEASE READ THESE TERMS DISTRIBUTING. *
8 * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-1999 *
9 * by 1999 Monty <monty@xiph.org> and The XIPHOPHORUS Company *
10 * http://www.xiph.org/ *
12 ********************************************************************
14 function: predefined encoding modes
15 author: Monty <xiphmont@mit.edu>
16 modifications by: Monty
17 last modification date: Oct 22 1999
19 ********************************************************************/
27 double threshhold_points[THRESH_POINTS]=
29 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 */
30 {0.,.01,.02,.03,.04,.06,.08,.1,.15,.2,.25,.3,.34,.4,.45,.5,.6,.7,.8,1.};
32 vorbis_info predef_modes[]={
33 /* CD quality stereo, no channel coupling */
35 /* channels, sample rate, upperkbps, nominalkbps, lowerkbps */
37 /* dummy, dummy, dummy, dummy */
39 /* smallblock, largeblock, LPC order (small, large) */
41 /* spectral octaves (small, large), spectral channels */
43 /* thresh sample period, preecho clamp trigger threshhold, range, dummy */
45 /* noise masking curve dB attenuation levels [20] */
46 {-12,-12,-18,-18,-18,-18,-18,-18,-18,-12,
47 -8,-4,0,0,1,2,3,3,4,5},
48 /*{-100,-100,-100,-100,-100,-100,-100,-24,-24,-24,
49 -24,-24,-24,-24,-24,-24,-24,-24,-24,-24}*/
50 /* noise masking scale biases */
52 /* tone masking curve dB attenuation levels [20] */
53 {-20,-20,-20,-20,-20,-20,-20,-20,-20,-20,
54 -20,-20,-20,-20,-20,-20,-20,-20,-20,-20},
55 /* tone masking rolloff settings (dB per octave), octave bias */
61 #define predef_mode_max 0