examples/sfexamples/oggvorbiscodec/src/libvorbis/lib/modes/setup_44.h

00001 /********************************************************************
00002  *                                                                  *
00003  * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
00004  * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
00005  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
00006  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
00007  *                                                                  *
00008  * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002             *
00009  * by the XIPHOPHORUS Company http://www.xiph.org/                  *
00010  *                                                                  *
00011  ********************************************************************
00012 
00013  function: toplevel settings for 44.1/48kHz
00014  last mod: $Id: setup_44.h 7187 2004-07-20 07:24:27Z xiphmont $
00015 
00016  ********************************************************************/
00017 
00018 #include "modes/floor_all.h"
00019 #include "modes/residue_44.h"
00020 #include "modes/psych_44.h"
00021 
00022 static double rate_mapping_44_stereo[12]={
00023   22500.,32000.,40000.,48000.,56000.,64000.,
00024   80000.,96000.,112000.,128000.,160000.,250001.
00025 };
00026 
00027 static double quality_mapping_44[12]={
00028   -.1,.0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1.0
00029 };
00030 
00031 static int blocksize_short_44[11]={
00032   512,256,256,256,256,256,256,256,256,256,256
00033 };
00034 static int blocksize_long_44[11]={
00035   4096,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048
00036 };
00037 
00038 static double _psy_compand_short_mapping[12]={
00039   0.5, 1., 1., 1.3, 1.6, 2., 2., 2., 2., 2., 2., 2.
00040 };
00041 static double _psy_compand_long_mapping[12]={
00042   3.5, 4., 4., 4.3, 4.6, 5., 5., 5., 5., 5., 5., 5.
00043 };
00044 
00045 static double _global_mapping_44[12]={
00046   /* 1., 1., 1.5, 2., 2., 2.5, 2.7, 3.0, 3.5, 4., 4. */
00047  0., 1., 1., 1.5, 2., 2., 2.5, 2.7, 3.0, 3.7, 4., 4.
00048 };
00049 
00050 static int _floor_short_mapping_44[11]={
00051   1,0,0,2,2,4,5,5,5,5,5
00052 };
00053 static int _floor_long_mapping_44[11]={
00054   8,7,7,7,7,7,7,7,7,7,7
00055 };
00056 
00057 ve_setup_data_template ve_setup_44_stereo={
00058   11,
00059   rate_mapping_44_stereo,
00060   quality_mapping_44,
00061   2,
00062   40000,
00063   50000,
00064   
00065   blocksize_short_44,
00066   blocksize_long_44,
00067 
00068   _psy_tone_masteratt_44,
00069   _psy_tone_0dB,
00070   _psy_tone_suppress,
00071 
00072   _vp_tonemask_adj_otherblock,
00073   _vp_tonemask_adj_longblock,
00074   _vp_tonemask_adj_otherblock,
00075 
00076   _psy_noiseguards_44,
00077   _psy_noisebias_impulse,
00078   _psy_noisebias_padding,
00079   _psy_noisebias_trans,
00080   _psy_noisebias_long,
00081   _psy_noise_suppress,
00082   
00083   _psy_compand_44,
00084   _psy_compand_short_mapping,
00085   _psy_compand_long_mapping,
00086 
00087   {_noise_start_short_44,_noise_start_long_44},
00088   {_noise_part_short_44,_noise_part_long_44},
00089   _noise_thresh_44,
00090 
00091   _psy_ath_floater,
00092   _psy_ath_abs,
00093   
00094   _psy_lowpass_44,
00095 
00096   _psy_global_44,
00097   _global_mapping_44,
00098   _psy_stereo_modes_44,
00099 
00100   _floor_books,
00101   _floor,
00102   _floor_short_mapping_44,
00103   _floor_long_mapping_44,
00104 
00105   _mapres_template_44_stereo
00106 };
00107 

Generated by  doxygen 1.6.2