setup_32.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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: toplevel settings for 32kHz
  13. last mod: $Id$
  14. ********************************************************************/
  15. static double rate_mapping_32[13]={
  16. // 18000.,28000.,35000.,45000.,56000.,60000.,
  17. 14000.,21000.,28000.,35000.,45000.,56000.,60000.,
  18. 75000.,90000.,100000.,115000.,150000.,190000.,
  19. };
  20. static double rate_mapping_32_un[13]={
  21. // 30000.,42000.,52000.,64000.,72000.,78000.,
  22. 26000.,32000.,42000.,52000.,64000.,72000.,78000.,
  23. 86000.,92000.,110000.,120000.,140000.,190000.,
  24. };
  25. static double _psy_lowpass_32[13]={
  26. // 12.3,13.,13.,14.,15.,99.,99.,99.,99.,99.,99.,99.
  27. 12.1,12.6,13.,13.,14.,15.,99.,99.,99.,99.,99.,99.,99.
  28. };
  29. static int _floor_short_mapping_32[12]={
  30. 1,1,0,0,2,2,4,5,5,5,5,5
  31. };
  32. static int _floor_long_mapping_32[12]={
  33. 8,8,7,7,7,7,7,7,7,7,7,7
  34. };
  35. ve_setup_data_template ve_setup_32_stereo={
  36. // 11,
  37. 12,
  38. rate_mapping_32,
  39. quality_mapping_44,
  40. 2,
  41. 26000,
  42. 40000,
  43. blocksize_short_44,
  44. blocksize_long_44,
  45. _psy_tone_masteratt_44,
  46. _psy_tone_0dB,
  47. _psy_tone_suppress,
  48. _vp_tonemask_adj_otherblock,
  49. _vp_tonemask_adj_longblock,
  50. _vp_tonemask_adj_otherblock,
  51. _psy_noiseguards_44,
  52. _psy_noisebias_impulse,
  53. _psy_noisebias_padding,
  54. _psy_noisebias_trans,
  55. _psy_noisebias_long,
  56. _psy_noise_suppress,
  57. _psy_compand_44,
  58. _psy_compand_short_mapping,
  59. _psy_compand_long_mapping,
  60. {_noise_start_short_32,_noise_start_long_32},
  61. {_noise_part_short_44,_noise_part_long_44},
  62. _noise_thresh_44,
  63. _psy_ath_floater,
  64. _psy_ath_abs,
  65. _psy_lowpass_32,
  66. _psy_global_44,
  67. _global_mapping_44,
  68. _psy_stereo_modes_44,
  69. _floor_books,
  70. _floor,
  71. _floor_short_mapping_32,
  72. _floor_long_mapping_32,
  73. _mapres_template_44_stereo
  74. };
  75. ve_setup_data_template ve_setup_32_uncoupled={
  76. // 11,
  77. 12,
  78. rate_mapping_32_un,
  79. quality_mapping_44,
  80. -1,
  81. 26000,
  82. 40000,
  83. blocksize_short_44,
  84. blocksize_long_44,
  85. _psy_tone_masteratt_44,
  86. _psy_tone_0dB,
  87. _psy_tone_suppress,
  88. _vp_tonemask_adj_otherblock,
  89. _vp_tonemask_adj_longblock,
  90. _vp_tonemask_adj_otherblock,
  91. _psy_noiseguards_44,
  92. _psy_noisebias_impulse,
  93. _psy_noisebias_padding,
  94. _psy_noisebias_trans,
  95. _psy_noisebias_long,
  96. _psy_noise_suppress,
  97. _psy_compand_44,
  98. _psy_compand_short_mapping,
  99. _psy_compand_long_mapping,
  100. {_noise_start_short_32,_noise_start_long_32},
  101. {_noise_part_short_44,_noise_part_long_44},
  102. _noise_thresh_44,
  103. _psy_ath_floater,
  104. _psy_ath_abs,
  105. _psy_lowpass_32,
  106. _psy_global_44,
  107. _global_mapping_44,
  108. NULL,
  109. _floor_books,
  110. _floor,
  111. _floor_short_mapping_32,
  112. _floor_long_mapping_32,
  113. _mapres_template_44_uncoupled
  114. };