setup_8.h 2.9 KB

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