opustab.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /*
  2. * Copyright (c) 2012 Andrew D'Addesio
  3. * Copyright (c) 2013-2014 Mozilla Corporation
  4. * Copyright (c) 2016 Rostislav Pehlivanov <atomnuker@gmail.com>
  5. *
  6. * This file is part of FFmpeg.
  7. *
  8. * FFmpeg is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2.1 of the License, or (at your option) any later version.
  12. *
  13. * FFmpeg is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with FFmpeg; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. */
  22. #ifndef AVCODEC_OPUSTAB_H
  23. #define AVCODEC_OPUSTAB_H
  24. #include "libavutil/mem.h"
  25. #include <stdint.h>
  26. extern const uint8_t ff_celt_band_end[];
  27. extern const uint8_t ff_opus_default_coupled_streams[];
  28. extern const uint16_t ff_silk_model_stereo_s1[];
  29. extern const uint16_t ff_silk_model_stereo_s2[];
  30. extern const uint16_t ff_silk_model_stereo_s3[];
  31. extern const uint16_t ff_silk_model_mid_only[];
  32. extern const uint16_t ff_silk_model_frame_type_inactive[];
  33. extern const uint16_t ff_silk_model_frame_type_active[];
  34. extern const uint16_t ff_silk_model_gain_highbits[3][9];
  35. extern const uint16_t ff_silk_model_gain_lowbits[];
  36. extern const uint16_t ff_silk_model_gain_delta[];
  37. extern const uint16_t ff_silk_model_lsf_s1[2][2][33];
  38. extern const uint16_t ff_silk_model_lsf_s2[32][10];
  39. extern const uint16_t ff_silk_model_lsf_s2_ext[];
  40. extern const uint16_t ff_silk_model_lsf_interpolation_offset[];
  41. extern const uint16_t ff_silk_model_pitch_highbits[];
  42. extern const uint16_t ff_silk_model_pitch_lowbits_nb[];
  43. extern const uint16_t ff_silk_model_pitch_lowbits_mb[];
  44. extern const uint16_t ff_silk_model_pitch_lowbits_wb[];
  45. extern const uint16_t ff_silk_model_pitch_delta[];
  46. extern const uint16_t ff_silk_model_pitch_contour_nb10ms[];
  47. extern const uint16_t ff_silk_model_pitch_contour_nb20ms[];
  48. extern const uint16_t ff_silk_model_pitch_contour_mbwb10ms[];
  49. extern const uint16_t ff_silk_model_pitch_contour_mbwb20ms[];
  50. extern const uint16_t ff_silk_model_ltp_filter[];
  51. extern const uint16_t ff_silk_model_ltp_filter0_sel[];
  52. extern const uint16_t ff_silk_model_ltp_filter1_sel[];
  53. extern const uint16_t ff_silk_model_ltp_filter2_sel[];
  54. extern const uint16_t ff_silk_model_ltp_scale_index[];
  55. extern const uint16_t ff_silk_model_lcg_seed[];
  56. extern const uint16_t ff_silk_model_exc_rate[2][10];
  57. extern const uint16_t ff_silk_model_pulse_count[11][19];
  58. extern const uint16_t ff_silk_model_pulse_location[4][168];
  59. extern const uint16_t ff_silk_model_excitation_lsb[];
  60. extern const uint16_t ff_silk_model_excitation_sign[3][2][7][3];
  61. extern const int16_t ff_silk_stereo_weights[];
  62. extern const uint8_t ff_silk_lsf_s2_model_sel_nbmb[32][10];
  63. extern const uint8_t ff_silk_lsf_s2_model_sel_wb[32][16];
  64. extern const uint8_t ff_silk_lsf_pred_weights_nbmb[2][9];
  65. extern const uint8_t ff_silk_lsf_pred_weights_wb[2][15];
  66. extern const uint8_t ff_silk_lsf_weight_sel_nbmb[32][9];
  67. extern const uint8_t ff_silk_lsf_weight_sel_wb[32][15];
  68. extern const uint8_t ff_silk_lsf_codebook_nbmb[32][10];
  69. extern const uint8_t ff_silk_lsf_codebook_wb[32][16];
  70. extern const uint16_t ff_silk_lsf_min_spacing_nbmb[];
  71. extern const uint16_t ff_silk_lsf_min_spacing_wb[];
  72. extern const uint8_t ff_silk_lsf_ordering_nbmb[];
  73. extern const uint8_t ff_silk_lsf_ordering_wb[];
  74. extern const int16_t ff_silk_cosine[];
  75. extern const uint16_t ff_silk_pitch_scale[];
  76. extern const uint16_t ff_silk_pitch_min_lag[];
  77. extern const uint16_t ff_silk_pitch_max_lag[];
  78. extern const int8_t ff_silk_pitch_offset_nb10ms[3][2];
  79. extern const int8_t ff_silk_pitch_offset_nb20ms[11][4];
  80. extern const int8_t ff_silk_pitch_offset_mbwb10ms[12][2];
  81. extern const int8_t ff_silk_pitch_offset_mbwb20ms[34][4];
  82. extern const int8_t ff_silk_ltp_filter0_taps[8][5];
  83. extern const int8_t ff_silk_ltp_filter1_taps[16][5];
  84. extern const int8_t ff_silk_ltp_filter2_taps[32][5];
  85. extern const uint16_t ff_silk_ltp_scale_factor[];
  86. extern const uint8_t ff_silk_shell_blocks[3][2];
  87. extern const uint8_t ff_silk_quant_offset[2][2];
  88. extern const int ff_silk_stereo_interp_len[3];
  89. extern const uint16_t ff_celt_model_tapset[];
  90. extern const uint16_t ff_celt_model_spread[];
  91. extern const uint16_t ff_celt_model_alloc_trim[];
  92. extern const uint16_t ff_celt_model_energy_small[];
  93. extern const uint8_t ff_celt_freq_bands[];
  94. extern const uint8_t ff_celt_freq_range[];
  95. extern const uint8_t ff_celt_log_freq_range[];
  96. extern const int8_t ff_celt_tf_select[4][2][2][2];
  97. extern const float ff_celt_mean_energy[];
  98. extern const float ff_celt_alpha_coef[];
  99. extern const float ff_celt_beta_coef[];
  100. extern const uint8_t ff_celt_coarse_energy_dist[4][2][42];
  101. extern const uint8_t ff_celt_static_alloc[11][21];
  102. extern const uint8_t ff_celt_static_caps[4][2][21];
  103. extern const uint8_t ff_celt_cache_bits[392];
  104. extern const int16_t ff_celt_cache_index[105];
  105. extern const uint8_t ff_celt_log2_frac[];
  106. extern const uint8_t ff_celt_bit_interleave[];
  107. extern const uint8_t ff_celt_bit_deinterleave[];
  108. extern const uint8_t ff_celt_hadamard_order[];
  109. extern const uint16_t ff_celt_qn_exp2[];
  110. extern const uint32_t ff_celt_pvq_u[1272];
  111. extern const float ff_celt_postfilter_taps[3][3];
  112. extern const float ff_celt_window2[120];
  113. extern const float *ff_celt_window;
  114. extern const uint32_t * const ff_celt_pvq_u_row[15];
  115. #endif /* AVCODEC_OPUSTAB_H */