setup_16.h 3.3 KB

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