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