setup_8.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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 const int blocksize_8[2]={
  18. 512,512
  19. };
  20. static const int _floor_mapping_8[2]={
  21. 6,6,
  22. };
  23. static const double rate_mapping_8[3]={
  24. 6000.,9000.,32000.,
  25. };
  26. static const double rate_mapping_8_uncoupled[3]={
  27. 8000.,14000.,42000.,
  28. };
  29. static const double quality_mapping_8[3]={
  30. -.1,.0,1.
  31. };
  32. static const double _psy_compand_8_mapping[3]={ 0., 1., 1.};
  33. static const double _global_mapping_8[3]={ 1., 2., 3. };
  34. static const ve_setup_data_template ve_setup_8_stereo={
  35. 2,
  36. rate_mapping_8,
  37. quality_mapping_8,
  38. 2,
  39. 8000,
  40. 9000,
  41. blocksize_8,
  42. blocksize_8,
  43. _psy_tone_masteratt_8,
  44. _psy_tone_0dB,
  45. _psy_tone_suppress,
  46. _vp_tonemask_adj_8,
  47. NULL,
  48. _vp_tonemask_adj_8,
  49. _psy_noiseguards_8,
  50. _psy_noisebias_8,
  51. _psy_noisebias_8,
  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_5only,
  61. _psy_ath_floater_8,
  62. _psy_ath_abs_8,
  63. _psy_lowpass_8,
  64. _psy_global_44,
  65. _global_mapping_8,
  66. _psy_stereo_modes_8,
  67. _floor_books,
  68. _floor,
  69. _floor_mapping_8,
  70. NULL,
  71. _mapres_template_8_stereo
  72. };
  73. static const ve_setup_data_template ve_setup_8_uncoupled={
  74. 2,
  75. rate_mapping_8_uncoupled,
  76. quality_mapping_8,
  77. -1,
  78. 8000,
  79. 9000,
  80. blocksize_8,
  81. blocksize_8,
  82. _psy_tone_masteratt_8,
  83. _psy_tone_0dB,
  84. _psy_tone_suppress,
  85. _vp_tonemask_adj_8,
  86. NULL,
  87. _vp_tonemask_adj_8,
  88. _psy_noiseguards_8,
  89. _psy_noisebias_8,
  90. _psy_noisebias_8,
  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_5only,
  100. _psy_ath_floater_8,
  101. _psy_ath_abs_8,
  102. _psy_lowpass_8,
  103. _psy_global_44,
  104. _global_mapping_8,
  105. _psy_stereo_modes_8,
  106. _floor_books,
  107. _floor,
  108. _floor_mapping_8,
  109. NULL,
  110. _mapres_template_8_uncoupled
  111. };