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