dcadata.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*
  2. * DCA compatible decoder data
  3. *
  4. * This file is part of FFmpeg.
  5. *
  6. * FFmpeg is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * FFmpeg is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with FFmpeg; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. */
  20. #ifndef AVCODEC_DCADATA_H
  21. #define AVCODEC_DCADATA_H
  22. #include <stdint.h>
  23. #include "dcahuff.h"
  24. #define DCA_ADPCM_COEFFS 4
  25. #define DCA_ADPCM_VQCODEBOOK_SZ 4096
  26. extern const uint32_t ff_dca_bit_rates[32];
  27. extern const uint8_t ff_dca_channels[16];
  28. extern const uint8_t ff_dca_dmix_primary_nch[8];
  29. extern const uint8_t ff_dca_quant_index_sel_nbits[DCA_CODE_BOOKS];
  30. extern const uint8_t ff_dca_quant_index_group_size[DCA_CODE_BOOKS];
  31. extern const int16_t ff_dca_adpcm_vb[DCA_ADPCM_VQCODEBOOK_SZ][DCA_ADPCM_COEFFS];
  32. extern const uint32_t ff_dca_scale_factor_quant6[64];
  33. extern const uint32_t ff_dca_scale_factor_quant7[128];
  34. extern const uint32_t ff_dca_joint_scale_factors[129];
  35. extern const uint32_t ff_dca_scale_factor_adj[4];
  36. extern const uint32_t ff_dca_quant_levels[32];
  37. extern const uint32_t ff_dca_lossy_quant[32];
  38. extern const uint32_t ff_dca_lossless_quant[32];
  39. extern const int8_t ff_dca_high_freq_vq[1024][32];
  40. extern const float ff_dca_fir_32bands_perfect[512];
  41. extern const float ff_dca_fir_32bands_nonperfect[512];
  42. extern const float ff_dca_lfe_fir_64[256];
  43. extern const float ff_dca_lfe_fir_128[256];
  44. extern const float ff_dca_fir_64bands[1024];
  45. extern const int32_t ff_dca_fir_32bands_perfect_fixed[512];
  46. extern const int32_t ff_dca_fir_32bands_nonperfect_fixed[512];
  47. extern const int32_t ff_dca_lfe_fir_64_fixed[256];
  48. extern const int32_t ff_dca_fir_64bands_fixed[1024];
  49. #define FF_DCA_DMIXTABLE_SIZE 242U
  50. #define FF_DCA_INV_DMIXTABLE_SIZE 201U
  51. #define FF_DCA_DMIXTABLE_OFFSET (FF_DCA_DMIXTABLE_SIZE - FF_DCA_INV_DMIXTABLE_SIZE)
  52. extern const uint16_t ff_dca_dmixtable[FF_DCA_DMIXTABLE_SIZE];
  53. extern const uint32_t ff_dca_inv_dmixtable[FF_DCA_INV_DMIXTABLE_SIZE];
  54. extern const uint16_t ff_dca_xll_refl_coeff[128];
  55. extern const int32_t ff_dca_xll_band_coeff[20];
  56. extern const uint16_t ff_dca_avg_g3_freqs[3];
  57. extern const uint16_t ff_dca_fst_amp[44];
  58. extern const uint8_t ff_dca_freq_to_sb[32];
  59. extern const int8_t ff_dca_ph0_shift[8];
  60. extern const uint8_t ff_dca_grid_1_to_scf[11];
  61. extern const uint8_t ff_dca_grid_2_to_scf[3];
  62. extern const uint8_t ff_dca_scf_to_grid_1[32];
  63. extern const uint8_t ff_dca_scf_to_grid_2[32];
  64. extern const uint8_t ff_dca_grid_1_weights[12][32];
  65. extern const uint8_t ff_dca_sb_reorder[8][8];
  66. extern const int8_t ff_dca_lfe_delta_index_16[8];
  67. extern const int8_t ff_dca_lfe_delta_index_24[32];
  68. extern const uint16_t ff_dca_rsd_pack_5_in_8[256];
  69. extern const uint8_t ff_dca_rsd_pack_3_in_7[128][3];
  70. extern const float ff_dca_rsd_level_2a[2];
  71. extern const float ff_dca_rsd_level_2b[2];
  72. extern const float ff_dca_rsd_level_3[3];
  73. extern const float ff_dca_rsd_level_5[5];
  74. extern const float ff_dca_rsd_level_8[8];
  75. extern const float ff_dca_rsd_level_16[16];
  76. extern const float ff_dca_synth_env[32];
  77. extern const float ff_dca_corr_cf[32][11];
  78. extern const float ff_dca_quant_amp[57];
  79. extern const float ff_dca_st_coeff[34];
  80. extern const float ff_dca_long_window[128];
  81. extern const float ff_dca_lfe_step_size_16[101];
  82. extern const float ff_dca_lfe_step_size_24[144];
  83. extern const float ff_dca_bank_coeff[10];
  84. extern const float ff_dca_lfe_iir[5][4];
  85. #endif /* AVCODEC_DCADATA_H */