setup_8.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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: 8kHz settings
  13. ********************************************************************/
  14. #include "psych_8.h"
  15. #include "residue_8.h"
  16. static const int blocksize_8[2]={
  17. 512,512
  18. };
  19. static const int _floor_mapping_8a[]={
  20. 6,6
  21. };
  22. static const int *_floor_mapping_8[]={
  23. _floor_mapping_8a
  24. };
  25. static const double rate_mapping_8[3]={
  26. 6000.,9000.,32000.,
  27. };
  28. static const double rate_mapping_8_uncoupled[3]={
  29. 8000.,14000.,42000.,
  30. };
  31. static const double quality_mapping_8[3]={
  32. -.1,.0,1.
  33. };
  34. static const double _psy_compand_8_mapping[3]={ 0., 1., 1.};
  35. static const double _global_mapping_8[3]={ 1., 2., 3. };
  36. static const ve_setup_data_template ve_setup_8_stereo={
  37. 2,
  38. rate_mapping_8,
  39. quality_mapping_8,
  40. 2,
  41. 8000,
  42. 9000,
  43. blocksize_8,
  44. blocksize_8,
  45. _psy_tone_masteratt_8,
  46. _psy_tone_0dB,
  47. _psy_tone_suppress,
  48. _vp_tonemask_adj_8,
  49. NULL,
  50. _vp_tonemask_adj_8,
  51. _psy_noiseguards_8,
  52. _psy_noisebias_8,
  53. _psy_noisebias_8,
  54. NULL,
  55. NULL,
  56. _psy_noise_suppress,
  57. _psy_compand_8,
  58. _psy_compand_8_mapping,
  59. NULL,
  60. {_noise_start_8,_noise_start_8},
  61. {_noise_part_8,_noise_part_8},
  62. _noise_thresh_5only,
  63. _psy_ath_floater_8,
  64. _psy_ath_abs_8,
  65. _psy_lowpass_8,
  66. _psy_global_44,
  67. _global_mapping_8,
  68. _psy_stereo_modes_8,
  69. _floor_books,
  70. _floor,
  71. 1,
  72. _floor_mapping_8,
  73. _mapres_template_8_stereo
  74. };
  75. static const ve_setup_data_template ve_setup_8_uncoupled={
  76. 2,
  77. rate_mapping_8_uncoupled,
  78. quality_mapping_8,
  79. -1,
  80. 8000,
  81. 9000,
  82. blocksize_8,
  83. blocksize_8,
  84. _psy_tone_masteratt_8,
  85. _psy_tone_0dB,
  86. _psy_tone_suppress,
  87. _vp_tonemask_adj_8,
  88. NULL,
  89. _vp_tonemask_adj_8,
  90. _psy_noiseguards_8,
  91. _psy_noisebias_8,
  92. _psy_noisebias_8,
  93. NULL,
  94. NULL,
  95. _psy_noise_suppress,
  96. _psy_compand_8,
  97. _psy_compand_8_mapping,
  98. NULL,
  99. {_noise_start_8,_noise_start_8},
  100. {_noise_part_8,_noise_part_8},
  101. _noise_thresh_5only,
  102. _psy_ath_floater_8,
  103. _psy_ath_abs_8,
  104. _psy_lowpass_8,
  105. _psy_global_44,
  106. _global_mapping_8,
  107. _psy_stereo_modes_8,
  108. _floor_books,
  109. _floor,
  110. 1,
  111. _floor_mapping_8,
  112. _mapres_template_8_uncoupled
  113. };