setup_22.h 2.8 KB

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