dbf-halloween2015
diff libs/vorbis/modes/setup_16.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_16.h Sun Nov 01 00:36:56 2015 +0200 1.3 @@ -0,0 +1,153 @@ 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: 16kHz settings 1.17 + last mod: $Id: setup_16.h 16894 2010-02-12 20:32:12Z xiphmont $ 1.18 + 1.19 + ********************************************************************/ 1.20 + 1.21 +#include "psych_16.h" 1.22 +#include "residue_16.h" 1.23 + 1.24 +static const int blocksize_16_short[3]={ 1.25 + 1024,512,512 1.26 +}; 1.27 +static const int blocksize_16_long[3]={ 1.28 + 1024,1024,1024 1.29 +}; 1.30 + 1.31 +static const int _floor_mapping_16a[]={ 1.32 + 9,3,3 1.33 +}; 1.34 +static const int _floor_mapping_16b[]={ 1.35 + 9,9,9 1.36 +}; 1.37 +static const int *_floor_mapping_16[]={ 1.38 + _floor_mapping_16a, 1.39 + _floor_mapping_16b 1.40 +}; 1.41 + 1.42 +static const double rate_mapping_16[4]={ 1.43 + 12000.,20000.,44000.,86000. 1.44 +}; 1.45 + 1.46 +static const double rate_mapping_16_uncoupled[4]={ 1.47 + 16000.,28000.,64000.,100000. 1.48 +}; 1.49 + 1.50 +static const double _global_mapping_16[4]={ 1., 2., 3., 4. }; 1.51 + 1.52 +static const double quality_mapping_16[4]={ -.1,.05,.5,1. }; 1.53 + 1.54 +static const double _psy_compand_16_mapping[4]={ 0., .8, 1., 1.}; 1.55 + 1.56 +static const ve_setup_data_template ve_setup_16_stereo={ 1.57 + 3, 1.58 + rate_mapping_16, 1.59 + quality_mapping_16, 1.60 + 2, 1.61 + 15000, 1.62 + 19000, 1.63 + 1.64 + blocksize_16_short, 1.65 + blocksize_16_long, 1.66 + 1.67 + _psy_tone_masteratt_16, 1.68 + _psy_tone_0dB, 1.69 + _psy_tone_suppress, 1.70 + 1.71 + _vp_tonemask_adj_16, 1.72 + _vp_tonemask_adj_16, 1.73 + _vp_tonemask_adj_16, 1.74 + 1.75 + _psy_noiseguards_16, 1.76 + _psy_noisebias_16_impulse, 1.77 + _psy_noisebias_16_short, 1.78 + _psy_noisebias_16_short, 1.79 + _psy_noisebias_16, 1.80 + _psy_noise_suppress, 1.81 + 1.82 + _psy_compand_8, 1.83 + _psy_compand_16_mapping, 1.84 + _psy_compand_16_mapping, 1.85 + 1.86 + {_noise_start_16,_noise_start_16}, 1.87 + { _noise_part_16, _noise_part_16}, 1.88 + _noise_thresh_16, 1.89 + 1.90 + _psy_ath_floater_16, 1.91 + _psy_ath_abs_16, 1.92 + 1.93 + _psy_lowpass_16, 1.94 + 1.95 + _psy_global_44, 1.96 + _global_mapping_16, 1.97 + _psy_stereo_modes_16, 1.98 + 1.99 + _floor_books, 1.100 + _floor, 1.101 + 2, 1.102 + _floor_mapping_16, 1.103 + 1.104 + _mapres_template_16_stereo 1.105 +}; 1.106 + 1.107 +static const ve_setup_data_template ve_setup_16_uncoupled={ 1.108 + 3, 1.109 + rate_mapping_16_uncoupled, 1.110 + quality_mapping_16, 1.111 + -1, 1.112 + 15000, 1.113 + 19000, 1.114 + 1.115 + blocksize_16_short, 1.116 + blocksize_16_long, 1.117 + 1.118 + _psy_tone_masteratt_16, 1.119 + _psy_tone_0dB, 1.120 + _psy_tone_suppress, 1.121 + 1.122 + _vp_tonemask_adj_16, 1.123 + _vp_tonemask_adj_16, 1.124 + _vp_tonemask_adj_16, 1.125 + 1.126 + _psy_noiseguards_16, 1.127 + _psy_noisebias_16_impulse, 1.128 + _psy_noisebias_16_short, 1.129 + _psy_noisebias_16_short, 1.130 + _psy_noisebias_16, 1.131 + _psy_noise_suppress, 1.132 + 1.133 + _psy_compand_8, 1.134 + _psy_compand_16_mapping, 1.135 + _psy_compand_16_mapping, 1.136 + 1.137 + {_noise_start_16,_noise_start_16}, 1.138 + { _noise_part_16, _noise_part_16}, 1.139 + _noise_thresh_16, 1.140 + 1.141 + _psy_ath_floater_16, 1.142 + _psy_ath_abs_16, 1.143 + 1.144 + _psy_lowpass_16, 1.145 + 1.146 + _psy_global_44, 1.147 + _global_mapping_16, 1.148 + _psy_stereo_modes_16, 1.149 + 1.150 + _floor_books, 1.151 + _floor, 1.152 + 2, 1.153 + _floor_mapping_16, 1.154 + 1.155 + _mapres_template_16_uncoupled 1.156 +};