setup_16.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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: 16kHz settings
  13. last mod: $Id$
  14. ********************************************************************/
  15. #include "psych_16.h"
  16. #include "residue_16.h"
  17. static const int blocksize_16_short[3]={
  18. 1024,512,512
  19. };
  20. static const int blocksize_16_long[3]={
  21. 1024,1024,1024
  22. };
  23. static const int _floor_mapping_16_short[3]={
  24. 9,3,3
  25. };
  26. static const int _floor_mapping_16[3]={
  27. 9,9,9
  28. };
  29. static const double rate_mapping_16[4]={
  30. 12000.,20000.,44000.,86000.
  31. };
  32. static const double rate_mapping_16_uncoupled[4]={
  33. 16000.,28000.,64000.,100000.
  34. };
  35. static const double _global_mapping_16[4]={ 1., 2., 3., 4. };
  36. static const double quality_mapping_16[4]={ -.1,.05,.5,1. };
  37. static const double _psy_compand_16_mapping[4]={ 0., .8, 1., 1.};
  38. static const ve_setup_data_template ve_setup_16_stereo={
  39. 3,
  40. rate_mapping_16,
  41. quality_mapping_16,
  42. 2,
  43. 15000,
  44. 19000,
  45. blocksize_16_short,
  46. blocksize_16_long,
  47. _psy_tone_masteratt_16,
  48. _psy_tone_0dB,
  49. _psy_tone_suppress,
  50. _vp_tonemask_adj_16,
  51. _vp_tonemask_adj_16,
  52. _vp_tonemask_adj_16,
  53. _psy_noiseguards_16,
  54. _psy_noisebias_16_impulse,
  55. _psy_noisebias_16_short,
  56. _psy_noisebias_16_short,
  57. _psy_noisebias_16,
  58. _psy_noise_suppress,
  59. _psy_compand_8,
  60. _psy_compand_16_mapping,
  61. _psy_compand_16_mapping,
  62. {_noise_start_16,_noise_start_16},
  63. { _noise_part_16, _noise_part_16},
  64. _noise_thresh_16,
  65. _psy_ath_floater_16,
  66. _psy_ath_abs_16,
  67. _psy_lowpass_16,
  68. _psy_global_44,
  69. _global_mapping_16,
  70. _psy_stereo_modes_16,
  71. _floor_books,
  72. _floor,
  73. _floor_mapping_16_short,
  74. _floor_mapping_16,
  75. _mapres_template_16_stereo
  76. };
  77. static const ve_setup_data_template ve_setup_16_uncoupled={
  78. 3,
  79. rate_mapping_16_uncoupled,
  80. quality_mapping_16,
  81. -1,
  82. 15000,
  83. 19000,
  84. blocksize_16_short,
  85. blocksize_16_long,
  86. _psy_tone_masteratt_16,
  87. _psy_tone_0dB,
  88. _psy_tone_suppress,
  89. _vp_tonemask_adj_16,
  90. _vp_tonemask_adj_16,
  91. _vp_tonemask_adj_16,
  92. _psy_noiseguards_16,
  93. _psy_noisebias_16_impulse,
  94. _psy_noisebias_16_short,
  95. _psy_noisebias_16_short,
  96. _psy_noisebias_16,
  97. _psy_noise_suppress,
  98. _psy_compand_8,
  99. _psy_compand_16_mapping,
  100. _psy_compand_16_mapping,
  101. {_noise_start_16,_noise_start_16},
  102. { _noise_part_16, _noise_part_16},
  103. _noise_thresh_16,
  104. _psy_ath_floater_16,
  105. _psy_ath_abs_16,
  106. _psy_lowpass_16,
  107. _psy_global_44,
  108. _global_mapping_16,
  109. _psy_stereo_modes_16,
  110. _floor_books,
  111. _floor,
  112. _floor_mapping_16_short,
  113. _floor_mapping_16,
  114. _mapres_template_16_uncoupled
  115. };