setup_44.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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-2002 *
  9. * by the XIPHOPHORUS Company http://www.xiph.org/ *
  10. * *
  11. ********************************************************************
  12. function: toplevel settings for 44.1/48kHz
  13. last mod: $Id: setup_44.h,v 1.9 2002/07/11 08:57:29 xiphmont Exp $
  14. ********************************************************************/
  15. #include "modes/floor_all.h"
  16. #include "modes/residue_44.h"
  17. #include "modes/psych_44.h"
  18. static double rate_mapping_44_stereo_low[2]={
  19. 22500.,32000.
  20. };
  21. static double rate_mapping_44_stereo[11]={
  22. 32000.,40000.,48000.,56000.,64000.,
  23. 80000.,96000.,112000.,128000.,160000.,250001.
  24. };
  25. static double quality_mapping_44_stereo_low[2]={
  26. -.1,.0,
  27. };
  28. static double quality_mapping_44[11]={
  29. .0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1.0
  30. };
  31. static int blocksize_short_44_low[1]={
  32. 512
  33. };
  34. static int blocksize_long_44_low[1]={
  35. 4096
  36. };
  37. static int blocksize_short_44[10]={
  38. 256,256,256,256,256,256,256,256,256,256
  39. };
  40. static int blocksize_long_44[10]={
  41. 2048,2048,2048,2048,2048,2048,2048,2048,2048,2048
  42. };
  43. static double _psy_compand_short_mapping[11]={
  44. 1., 1., 1.3, 1.6, 2., 2., 2., 2., 2., 2., 2.
  45. };
  46. static double _psy_compand_long_mapping[11]={
  47. 4., 4., 4.3, 4.6, 5., 5., 5., 5., 5., 5., 5.
  48. };
  49. static double _global_mapping_44[11]={
  50. 1., 1., 1.5, 2., 2., 2.5, 2.7, 3.0, 3.5, 4., 4.
  51. };
  52. static double _global_mapping_44_low[2]={
  53. 0., 1.,
  54. };
  55. static int _floor_short_mapping_44_low[1]={
  56. 1,
  57. };
  58. static int _floor_long_mapping_44_low[1]={
  59. 8
  60. };
  61. static int _floor_short_mapping_44[10]={
  62. 0,0,2,2,4,5,5,5,5,5
  63. };
  64. static int _floor_long_mapping_44[10]={
  65. 7,7,7,7,7,7,7,7,7,7
  66. };
  67. ve_setup_data_template ve_setup_44_stereo={
  68. 10,
  69. rate_mapping_44_stereo,
  70. quality_mapping_44,
  71. 2,
  72. 40000,
  73. 50000,
  74. blocksize_short_44,
  75. blocksize_long_44,
  76. _psy_tone_masteratt_44,
  77. _psy_tone_0dB,
  78. _psy_tone_suppress,
  79. _vp_tonemask_adj_otherblock,
  80. _vp_tonemask_adj_longblock,
  81. _vp_tonemask_adj_otherblock,
  82. _psy_noiseguards_44,
  83. _psy_noisebias_impulse,
  84. _psy_noisebias_padding,
  85. _psy_noisebias_trans,
  86. _psy_noisebias_long,
  87. _psy_noise_suppress,
  88. _psy_compand_44,
  89. _psy_compand_short_mapping,
  90. _psy_compand_long_mapping,
  91. {_noise_start_short_44,_noise_start_long_44},
  92. {_noise_part_short_44,_noise_part_long_44},
  93. _noise_thresh_44,
  94. _psy_ath_floater,
  95. _psy_ath_abs,
  96. _psy_lowpass_44,
  97. _psy_global_44,
  98. _global_mapping_44,
  99. _psy_stereo_modes_44,
  100. _floor_books,
  101. _floor,
  102. _floor_short_mapping_44,
  103. _floor_long_mapping_44,
  104. _mapres_template_44_stereo
  105. };
  106. ve_setup_data_template ve_setup_44_stereo_low={
  107. 1,
  108. rate_mapping_44_stereo_low,
  109. quality_mapping_44_stereo_low,
  110. 2,
  111. 40000,
  112. 50000,
  113. blocksize_short_44_low,
  114. blocksize_long_44_low,
  115. _psy_tone_masteratt_44_low,
  116. _psy_tone_0dB,
  117. _psy_tone_suppress,
  118. _vp_tonemask_adj_otherblock,
  119. _vp_tonemask_adj_longblock,
  120. _vp_tonemask_adj_otherblock,
  121. _psy_noiseguards_44,
  122. _psy_noisebias_trans_low,
  123. _psy_noisebias_trans_low,
  124. _psy_noisebias_trans_low,
  125. _psy_noisebias_long_low,
  126. _psy_noise_suppress,
  127. _psy_compand_44,
  128. _psy_compand_short_mapping,
  129. _psy_compand_long_mapping,
  130. {_noise_start_short_44_low,_noise_start_long_44_low},
  131. {_noise_part_short_44,_noise_part_long_44},
  132. _noise_thresh_44,
  133. _psy_ath_floater,
  134. _psy_ath_abs,
  135. _psy_lowpass_44_low,
  136. _psy_global_44,
  137. _global_mapping_44_low,
  138. _psy_stereo_modes_44_low,
  139. _floor_books,
  140. _floor,
  141. _floor_short_mapping_44_low,
  142. _floor_long_mapping_44_low,
  143. _mapres_template_44_stereo
  144. };