setup_22.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 https://xiph.org/ *
  10. * *
  11. ********************************************************************
  12. function: 22kHz settings
  13. ********************************************************************/
  14. static const double rate_mapping_22[4]={
  15. 15000.,20000.,44000.,86000.
  16. };
  17. static const double rate_mapping_22_uncoupled[4]={
  18. 16000.,28000.,50000.,90000.
  19. };
  20. static const double _psy_lowpass_22[4]={9.5,11.,30.,99.};
  21. static const ve_setup_data_template ve_setup_22_stereo={
  22. 3,
  23. rate_mapping_22,
  24. quality_mapping_16,
  25. 2,
  26. 19000,
  27. 26000,
  28. blocksize_16_short,
  29. blocksize_16_long,
  30. _psy_tone_masteratt_16,
  31. _psy_tone_0dB,
  32. _psy_tone_suppress,
  33. _vp_tonemask_adj_16,
  34. _vp_tonemask_adj_16,
  35. _vp_tonemask_adj_16,
  36. _psy_noiseguards_16,
  37. _psy_noisebias_16_impulse,
  38. _psy_noisebias_16_short,
  39. _psy_noisebias_16_short,
  40. _psy_noisebias_16,
  41. _psy_noise_suppress,
  42. _psy_compand_8,
  43. _psy_compand_16_mapping,
  44. _psy_compand_16_mapping,
  45. {_noise_start_16,_noise_start_16},
  46. { _noise_part_16, _noise_part_16},
  47. _noise_thresh_16,
  48. _psy_ath_floater_16,
  49. _psy_ath_abs_16,
  50. _psy_lowpass_22,
  51. _psy_global_44,
  52. _global_mapping_16,
  53. _psy_stereo_modes_16,
  54. _floor_books,
  55. _floor,
  56. 2,
  57. _floor_mapping_16,
  58. _mapres_template_16_stereo
  59. };
  60. static const ve_setup_data_template ve_setup_22_uncoupled={
  61. 3,
  62. rate_mapping_22_uncoupled,
  63. quality_mapping_16,
  64. -1,
  65. 19000,
  66. 26000,
  67. blocksize_16_short,
  68. blocksize_16_long,
  69. _psy_tone_masteratt_16,
  70. _psy_tone_0dB,
  71. _psy_tone_suppress,
  72. _vp_tonemask_adj_16,
  73. _vp_tonemask_adj_16,
  74. _vp_tonemask_adj_16,
  75. _psy_noiseguards_16,
  76. _psy_noisebias_16_impulse,
  77. _psy_noisebias_16_short,
  78. _psy_noisebias_16_short,
  79. _psy_noisebias_16,
  80. _psy_noise_suppress,
  81. _psy_compand_8,
  82. _psy_compand_16_mapping,
  83. _psy_compand_16_mapping,
  84. {_noise_start_16,_noise_start_16},
  85. { _noise_part_16, _noise_part_16},
  86. _noise_thresh_16,
  87. _psy_ath_floater_16,
  88. _psy_ath_abs_16,
  89. _psy_lowpass_22,
  90. _psy_global_44,
  91. _global_mapping_16,
  92. _psy_stereo_modes_16,
  93. _floor_books,
  94. _floor,
  95. 2,
  96. _floor_mapping_16,
  97. _mapres_template_16_uncoupled
  98. };