michael@0: /******************************************************************** michael@0: * * michael@0: * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * michael@0: * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * michael@0: * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * michael@0: * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * michael@0: * * michael@0: * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 * michael@0: * by the Xiph.Org Foundation http://www.xiph.org/ * michael@0: * * michael@0: ******************************************************************** michael@0: michael@0: function: 16kHz settings michael@0: last mod: $Id: setup_16.h 16894 2010-02-12 20:32:12Z xiphmont $ michael@0: michael@0: ********************************************************************/ michael@0: michael@0: #include "psych_16.h" michael@0: #include "residue_16.h" michael@0: michael@0: static const int blocksize_16_short[3]={ michael@0: 1024,512,512 michael@0: }; michael@0: static const int blocksize_16_long[3]={ michael@0: 1024,1024,1024 michael@0: }; michael@0: michael@0: static const int _floor_mapping_16a[]={ michael@0: 9,3,3 michael@0: }; michael@0: static const int _floor_mapping_16b[]={ michael@0: 9,9,9 michael@0: }; michael@0: static const int *_floor_mapping_16[]={ michael@0: _floor_mapping_16a, michael@0: _floor_mapping_16b michael@0: }; michael@0: michael@0: static const double rate_mapping_16[4]={ michael@0: 12000.,20000.,44000.,86000. michael@0: }; michael@0: michael@0: static const double rate_mapping_16_uncoupled[4]={ michael@0: 16000.,28000.,64000.,100000. michael@0: }; michael@0: michael@0: static const double _global_mapping_16[4]={ 1., 2., 3., 4. }; michael@0: michael@0: static const double quality_mapping_16[4]={ -.1,.05,.5,1. }; michael@0: michael@0: static const double _psy_compand_16_mapping[4]={ 0., .8, 1., 1.}; michael@0: michael@0: static const ve_setup_data_template ve_setup_16_stereo={ michael@0: 3, michael@0: rate_mapping_16, michael@0: quality_mapping_16, michael@0: 2, michael@0: 15000, michael@0: 19000, michael@0: michael@0: blocksize_16_short, michael@0: blocksize_16_long, michael@0: michael@0: _psy_tone_masteratt_16, michael@0: _psy_tone_0dB, michael@0: _psy_tone_suppress, michael@0: michael@0: _vp_tonemask_adj_16, michael@0: _vp_tonemask_adj_16, michael@0: _vp_tonemask_adj_16, michael@0: michael@0: _psy_noiseguards_16, michael@0: _psy_noisebias_16_impulse, michael@0: _psy_noisebias_16_short, michael@0: _psy_noisebias_16_short, michael@0: _psy_noisebias_16, michael@0: _psy_noise_suppress, michael@0: michael@0: _psy_compand_8, michael@0: _psy_compand_16_mapping, michael@0: _psy_compand_16_mapping, michael@0: michael@0: {_noise_start_16,_noise_start_16}, michael@0: { _noise_part_16, _noise_part_16}, michael@0: _noise_thresh_16, michael@0: michael@0: _psy_ath_floater_16, michael@0: _psy_ath_abs_16, michael@0: michael@0: _psy_lowpass_16, michael@0: michael@0: _psy_global_44, michael@0: _global_mapping_16, michael@0: _psy_stereo_modes_16, michael@0: michael@0: _floor_books, michael@0: _floor, michael@0: 2, michael@0: _floor_mapping_16, michael@0: michael@0: _mapres_template_16_stereo michael@0: }; michael@0: michael@0: static const ve_setup_data_template ve_setup_16_uncoupled={ michael@0: 3, michael@0: rate_mapping_16_uncoupled, michael@0: quality_mapping_16, michael@0: -1, michael@0: 15000, michael@0: 19000, michael@0: michael@0: blocksize_16_short, michael@0: blocksize_16_long, michael@0: michael@0: _psy_tone_masteratt_16, michael@0: _psy_tone_0dB, michael@0: _psy_tone_suppress, michael@0: michael@0: _vp_tonemask_adj_16, michael@0: _vp_tonemask_adj_16, michael@0: _vp_tonemask_adj_16, michael@0: michael@0: _psy_noiseguards_16, michael@0: _psy_noisebias_16_impulse, michael@0: _psy_noisebias_16_short, michael@0: _psy_noisebias_16_short, michael@0: _psy_noisebias_16, michael@0: _psy_noise_suppress, michael@0: michael@0: _psy_compand_8, michael@0: _psy_compand_16_mapping, michael@0: _psy_compand_16_mapping, michael@0: michael@0: {_noise_start_16,_noise_start_16}, michael@0: { _noise_part_16, _noise_part_16}, michael@0: _noise_thresh_16, michael@0: michael@0: _psy_ath_floater_16, michael@0: _psy_ath_abs_16, michael@0: michael@0: _psy_lowpass_16, michael@0: michael@0: _psy_global_44, michael@0: _global_mapping_16, michael@0: _psy_stereo_modes_16, michael@0: michael@0: _floor_books, michael@0: _floor, michael@0: 2, michael@0: _floor_mapping_16, michael@0: michael@0: _mapres_template_16_uncoupled michael@0: };