Path: blob/master/thirdparty/libvorbis/modes/setup_44.h
9898 views
/********************************************************************1* *2* THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *3* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *4* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *5* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *6* *7* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 *8* by the Xiph.Org Foundation https://xiph.org/ *9* *10********************************************************************1112function: toplevel settings for 44.1/48kHz1314********************************************************************/1516#include "modes/floor_all.h"17#include "modes/residue_44.h"18#include "modes/psych_44.h"1920static const double rate_mapping_44_stereo[12]={2122500.,32000.,40000.,48000.,56000.,64000.,2280000.,96000.,112000.,128000.,160000.,250001.23};2425static const double quality_mapping_44[12]={26-.1,.0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1.027};2829static const int blocksize_short_44[11]={30512,256,256,256,256,256,256,256,256,256,25631};32static const int blocksize_long_44[11]={334096,2048,2048,2048,2048,2048,2048,2048,2048,2048,204834};3536static const double _psy_compand_short_mapping[12]={370.5, 1., 1., 1.3, 1.6, 2., 2., 2., 2., 2., 2., 2.38};39static const double _psy_compand_long_mapping[12]={403.5, 4., 4., 4.3, 4.6, 5., 5., 5., 5., 5., 5., 5.41};4243static const double _global_mapping_44[12]={44/* 1., 1., 1.5, 2., 2., 2.5, 2.7, 3.0, 3.5, 4., 4. */450., 1., 1., 1.5, 2., 2., 2.5, 2.7, 3.0, 3.7, 4., 4.46};4748static const int _floor_mapping_44a[11]={491,0,0,2,2,4,5,5,5,5,550};5152static const int _floor_mapping_44b[11]={538,7,7,7,7,7,7,7,7,7,754};5556static const int _floor_mapping_44c[11]={5710,10,10,10,10,10,10,10,10,10,1058};5960static const int *_floor_mapping_44[]={61_floor_mapping_44a,62_floor_mapping_44b,63_floor_mapping_44c,64};6566static const ve_setup_data_template ve_setup_44_stereo={6711,68rate_mapping_44_stereo,69quality_mapping_44,702,7140000,7250000,7374blocksize_short_44,75blocksize_long_44,7677_psy_tone_masteratt_44,78_psy_tone_0dB,79_psy_tone_suppress,8081_vp_tonemask_adj_otherblock,82_vp_tonemask_adj_longblock,83_vp_tonemask_adj_otherblock,8485_psy_noiseguards_44,86_psy_noisebias_impulse,87_psy_noisebias_padding,88_psy_noisebias_trans,89_psy_noisebias_long,90_psy_noise_suppress,9192_psy_compand_44,93_psy_compand_short_mapping,94_psy_compand_long_mapping,9596{_noise_start_short_44,_noise_start_long_44},97{_noise_part_short_44,_noise_part_long_44},98_noise_thresh_44,99100_psy_ath_floater,101_psy_ath_abs,102103_psy_lowpass_44,104105_psy_global_44,106_global_mapping_44,107_psy_stereo_modes_44,108109_floor_books,110_floor,1112,112_floor_mapping_44,113114_mapres_template_44_stereo115};116117118