dbf-halloween2015
diff libs/vorbis/modes/setup_44.h @ 1:c3f5c32cb210
barfed all the libraries in the source tree to make porting easier
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 01 Nov 2015 00:36:56 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libs/vorbis/modes/setup_44.h Sun Nov 01 00:36:56 2015 +0200 1.3 @@ -0,0 +1,117 @@ 1.4 +/******************************************************************** 1.5 + * * 1.6 + * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * 1.7 + * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * 1.8 + * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * 1.9 + * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * 1.10 + * * 1.11 + * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 * 1.12 + * by the Xiph.Org Foundation http://www.xiph.org/ * 1.13 + * * 1.14 + ******************************************************************** 1.15 + 1.16 + function: toplevel settings for 44.1/48kHz 1.17 + last mod: $Id: setup_44.h 16962 2010-03-11 07:30:34Z xiphmont $ 1.18 + 1.19 + ********************************************************************/ 1.20 + 1.21 +#include "modes/floor_all.h" 1.22 +#include "modes/residue_44.h" 1.23 +#include "modes/psych_44.h" 1.24 + 1.25 +static const double rate_mapping_44_stereo[12]={ 1.26 + 22500.,32000.,40000.,48000.,56000.,64000., 1.27 + 80000.,96000.,112000.,128000.,160000.,250001. 1.28 +}; 1.29 + 1.30 +static const double quality_mapping_44[12]={ 1.31 + -.1,.0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1.0 1.32 +}; 1.33 + 1.34 +static const int blocksize_short_44[11]={ 1.35 + 512,256,256,256,256,256,256,256,256,256,256 1.36 +}; 1.37 +static const int blocksize_long_44[11]={ 1.38 + 4096,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048 1.39 +}; 1.40 + 1.41 +static const double _psy_compand_short_mapping[12]={ 1.42 + 0.5, 1., 1., 1.3, 1.6, 2., 2., 2., 2., 2., 2., 2. 1.43 +}; 1.44 +static const double _psy_compand_long_mapping[12]={ 1.45 + 3.5, 4., 4., 4.3, 4.6, 5., 5., 5., 5., 5., 5., 5. 1.46 +}; 1.47 + 1.48 +static const double _global_mapping_44[12]={ 1.49 + /* 1., 1., 1.5, 2., 2., 2.5, 2.7, 3.0, 3.5, 4., 4. */ 1.50 + 0., 1., 1., 1.5, 2., 2., 2.5, 2.7, 3.0, 3.7, 4., 4. 1.51 +}; 1.52 + 1.53 +static const int _floor_mapping_44a[11]={ 1.54 + 1,0,0,2,2,4,5,5,5,5,5 1.55 +}; 1.56 + 1.57 +static const int _floor_mapping_44b[11]={ 1.58 + 8,7,7,7,7,7,7,7,7,7,7 1.59 +}; 1.60 + 1.61 +static const int _floor_mapping_44c[11]={ 1.62 + 10,10,10,10,10,10,10,10,10,10,10 1.63 +}; 1.64 + 1.65 +static const int *_floor_mapping_44[]={ 1.66 + _floor_mapping_44a, 1.67 + _floor_mapping_44b, 1.68 + _floor_mapping_44c, 1.69 +}; 1.70 + 1.71 +static const ve_setup_data_template ve_setup_44_stereo={ 1.72 + 11, 1.73 + rate_mapping_44_stereo, 1.74 + quality_mapping_44, 1.75 + 2, 1.76 + 40000, 1.77 + 50000, 1.78 + 1.79 + blocksize_short_44, 1.80 + blocksize_long_44, 1.81 + 1.82 + _psy_tone_masteratt_44, 1.83 + _psy_tone_0dB, 1.84 + _psy_tone_suppress, 1.85 + 1.86 + _vp_tonemask_adj_otherblock, 1.87 + _vp_tonemask_adj_longblock, 1.88 + _vp_tonemask_adj_otherblock, 1.89 + 1.90 + _psy_noiseguards_44, 1.91 + _psy_noisebias_impulse, 1.92 + _psy_noisebias_padding, 1.93 + _psy_noisebias_trans, 1.94 + _psy_noisebias_long, 1.95 + _psy_noise_suppress, 1.96 + 1.97 + _psy_compand_44, 1.98 + _psy_compand_short_mapping, 1.99 + _psy_compand_long_mapping, 1.100 + 1.101 + {_noise_start_short_44,_noise_start_long_44}, 1.102 + {_noise_part_short_44,_noise_part_long_44}, 1.103 + _noise_thresh_44, 1.104 + 1.105 + _psy_ath_floater, 1.106 + _psy_ath_abs, 1.107 + 1.108 + _psy_lowpass_44, 1.109 + 1.110 + _psy_global_44, 1.111 + _global_mapping_44, 1.112 + _psy_stereo_modes_44, 1.113 + 1.114 + _floor_books, 1.115 + _floor, 1.116 + 2, 1.117 + _floor_mapping_44, 1.118 + 1.119 + _mapres_template_44_stereo 1.120 +};