setup_22.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /********************************************************************
  2. * *
  3. * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
  4. * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
  5. * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
  6. * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
  7. * *
  8. * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 *
  9. * by the Xiph.Org Foundation http://www.xiph.org/ *
  10. * *
  11. ********************************************************************
  12. function: 22kHz settings
  13. last mod: $Id: setup_22.h 17026 2010-03-25 05:00:27Z xiphmont $
  14. ********************************************************************/
  15. static const double rate_mapping_22[4]={
  16. 15000.,20000.,44000.,86000.
  17. };
  18. static const double rate_mapping_22_uncoupled[4]={
  19. 16000.,28000.,50000.,90000.
  20. };
  21. static const double _psy_lowpass_22[4]={9.5,11.,30.,99.};
  22. static const ve_setup_data_template ve_setup_22_stereo={
  23. 3,
  24. rate_mapping_22,
  25. quality_mapping_16,
  26. 2,
  27. 19000,
  28. 26000,
  29. blocksize_16_short,
  30. blocksize_16_long,
  31. _psy_tone_masteratt_16,
  32. _psy_tone_0dB,
  33. _psy_tone_suppress,
  34. _vp_tonemask_adj_16,
  35. _vp_tonemask_adj_16,
  36. _vp_tonemask_adj_16,
  37. _psy_noiseguards_16,
  38. _psy_noisebias_16_impulse,
  39. _psy_noisebias_16_short,
  40. _psy_noisebias_16_short,
  41. _psy_noisebias_16,
  42. _psy_noise_suppress,
  43. _psy_compand_8,
  44. _psy_compand_16_mapping,
  45. _psy_compand_16_mapping,
  46. {_noise_start_16,_noise_start_16},
  47. { _noise_part_16, _noise_part_16},
  48. _noise_thresh_16,
  49. _psy_ath_floater_16,
  50. _psy_ath_abs_16,
  51. _psy_lowpass_22,
  52. _psy_global_44,
  53. _global_mapping_16,
  54. _psy_stereo_modes_16,
  55. _floor_books,
  56. _floor,
  57. 2,
  58. _floor_mapping_16,
  59. _mapres_template_16_stereo
  60. };
  61. static const ve_setup_data_template ve_setup_22_uncoupled={
  62. 3,
  63. rate_mapping_22_uncoupled,
  64. quality_mapping_16,
  65. -1,
  66. 19000,
  67. 26000,
  68. blocksize_16_short,
  69. blocksize_16_long,
  70. _psy_tone_masteratt_16,
  71. _psy_tone_0dB,
  72. _psy_tone_suppress,
  73. _vp_tonemask_adj_16,
  74. _vp_tonemask_adj_16,
  75. _vp_tonemask_adj_16,
  76. _psy_noiseguards_16,
  77. _psy_noisebias_16_impulse,
  78. _psy_noisebias_16_short,
  79. _psy_noisebias_16_short,
  80. _psy_noisebias_16,
  81. _psy_noise_suppress,
  82. _psy_compand_8,
  83. _psy_compand_16_mapping,
  84. _psy_compand_16_mapping,
  85. {_noise_start_16,_noise_start_16},
  86. { _noise_part_16, _noise_part_16},
  87. _noise_thresh_16,
  88. _psy_ath_floater_16,
  89. _psy_ath_abs_16,
  90. _psy_lowpass_22,
  91. _psy_global_44,
  92. _global_mapping_16,
  93. _psy_stereo_modes_16,
  94. _floor_books,
  95. _floor,
  96. 2,
  97. _floor_mapping_16,
  98. _mapres_template_16_uncoupled
  99. };