setup_11.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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: 11kHz settings
  13. last mod: $Id: setup_11.h 16894 2010-02-12 20:32:12Z xiphmont $
  14. ********************************************************************/
  15. #include "psych_11.h"
  16. static const int blocksize_11[2]={
  17. 512,512
  18. };
  19. static const int _floor_mapping_11a[]={
  20. 6,6
  21. };
  22. static const int *_floor_mapping_11[]={
  23. _floor_mapping_11a
  24. };
  25. static const double rate_mapping_11[3]={
  26. 8000.,13000.,44000.,
  27. };
  28. static const double rate_mapping_11_uncoupled[3]={
  29. 12000.,20000.,50000.,
  30. };
  31. static const double quality_mapping_11[3]={
  32. -.1,.0,1.
  33. };
  34. static const ve_setup_data_template ve_setup_11_stereo={
  35. 2,
  36. rate_mapping_11,
  37. quality_mapping_11,
  38. 2,
  39. 9000,
  40. 15000,
  41. blocksize_11,
  42. blocksize_11,
  43. _psy_tone_masteratt_11,
  44. _psy_tone_0dB,
  45. _psy_tone_suppress,
  46. _vp_tonemask_adj_11,
  47. NULL,
  48. _vp_tonemask_adj_11,
  49. _psy_noiseguards_8,
  50. _psy_noisebias_11,
  51. _psy_noisebias_11,
  52. NULL,
  53. NULL,
  54. _psy_noise_suppress,
  55. _psy_compand_8,
  56. _psy_compand_8_mapping,
  57. NULL,
  58. {_noise_start_8,_noise_start_8},
  59. {_noise_part_8,_noise_part_8},
  60. _noise_thresh_11,
  61. _psy_ath_floater_8,
  62. _psy_ath_abs_8,
  63. _psy_lowpass_11,
  64. _psy_global_44,
  65. _global_mapping_8,
  66. _psy_stereo_modes_8,
  67. _floor_books,
  68. _floor,
  69. 1,
  70. _floor_mapping_11,
  71. _mapres_template_8_stereo
  72. };
  73. static const ve_setup_data_template ve_setup_11_uncoupled={
  74. 2,
  75. rate_mapping_11_uncoupled,
  76. quality_mapping_11,
  77. -1,
  78. 9000,
  79. 15000,
  80. blocksize_11,
  81. blocksize_11,
  82. _psy_tone_masteratt_11,
  83. _psy_tone_0dB,
  84. _psy_tone_suppress,
  85. _vp_tonemask_adj_11,
  86. NULL,
  87. _vp_tonemask_adj_11,
  88. _psy_noiseguards_8,
  89. _psy_noisebias_11,
  90. _psy_noisebias_11,
  91. NULL,
  92. NULL,
  93. _psy_noise_suppress,
  94. _psy_compand_8,
  95. _psy_compand_8_mapping,
  96. NULL,
  97. {_noise_start_8,_noise_start_8},
  98. {_noise_part_8,_noise_part_8},
  99. _noise_thresh_11,
  100. _psy_ath_floater_8,
  101. _psy_ath_abs_8,
  102. _psy_lowpass_11,
  103. _psy_global_44,
  104. _global_mapping_8,
  105. _psy_stereo_modes_8,
  106. _floor_books,
  107. _floor,
  108. 1,
  109. _floor_mapping_11,
  110. _mapres_template_8_uncoupled
  111. };