libavcodec/dcadata.h
01ca9ac3
 /*
  * DCA compatible decoder data
  *
bf925c05
  * This file is part of FFmpeg.
  *
  * FFmpeg is free software; you can redistribute it and/or
01ca9ac3
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
bf925c05
  * version 2.1 of the License, or (at your option) any later version.
01ca9ac3
  *
bf925c05
  * FFmpeg is distributed in the hope that it will be useful,
01ca9ac3
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
bf925c05
  * License along with FFmpeg; if not, write to the Free Software
01ca9ac3
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
98790382
 #ifndef AVCODEC_DCADATA_H
 #define AVCODEC_DCADATA_H
699b3f99
 
99545457
 #include <stdint.h>
45ff7c93
 
c2500d62
 #include "dcahuff.h"
 
b8c2b9c3
 #define DCA_ADPCM_COEFFS        4
 #define DCA_ADPCM_VQCODEBOOK_SZ 4096
 
3a651f59
 extern const uint32_t ff_dca_bit_rates[32];
99545457
 
3a651f59
 extern const uint8_t ff_dca_channels[16];
01ca9ac3
 
9a0a3bbe
 extern const uint8_t ff_dca_dmix_primary_nch[8];
01ca9ac3
 
c2500d62
 extern const uint8_t ff_dca_quant_index_sel_nbits[DCA_CODE_BOOKS];
 extern const uint8_t ff_dca_quant_index_group_size[DCA_CODE_BOOKS];
 
b8c2b9c3
 extern const int16_t ff_dca_adpcm_vb[DCA_ADPCM_VQCODEBOOK_SZ][DCA_ADPCM_COEFFS];
01ca9ac3
 
3a651f59
 extern const uint32_t ff_dca_scale_factor_quant6[64];
 extern const uint32_t ff_dca_scale_factor_quant7[128];
01ca9ac3
 
9a0a3bbe
 extern const uint32_t ff_dca_joint_scale_factors[129];
 
 extern const uint32_t ff_dca_scale_factor_adj[4];
 
 extern const uint32_t ff_dca_quant_levels[32];
 
3a651f59
 extern const uint32_t ff_dca_lossy_quant[32];
01ca9ac3
 
3a651f59
 extern const uint32_t ff_dca_lossless_quant[32];
01ca9ac3
 
3a651f59
 extern const int8_t ff_dca_high_freq_vq[1024][32];
01ca9ac3
 
3a651f59
 extern const float ff_dca_fir_32bands_perfect[512];
 extern const float ff_dca_fir_32bands_nonperfect[512];
01ca9ac3
 
3a651f59
 extern const float ff_dca_lfe_fir_64[256];
 extern const float ff_dca_lfe_fir_128[256];
217e4ff4
 extern const float ff_dca_fir_64bands[1024];
01ca9ac3
 
9a0a3bbe
 extern const int32_t ff_dca_fir_32bands_perfect_fixed[512];
 extern const int32_t ff_dca_fir_32bands_nonperfect_fixed[512];
 extern const int32_t ff_dca_lfe_fir_64_fixed[256];
 extern const int32_t ff_dca_fir_64bands_fixed[1024];
 
 #define FF_DCA_DMIXTABLE_SIZE       242U
 #define FF_DCA_INV_DMIXTABLE_SIZE   201U
 #define FF_DCA_DMIXTABLE_OFFSET     (FF_DCA_DMIXTABLE_SIZE - FF_DCA_INV_DMIXTABLE_SIZE)
217e4ff4
 
 extern const uint16_t ff_dca_dmixtable[FF_DCA_DMIXTABLE_SIZE];
 extern const uint32_t ff_dca_inv_dmixtable[FF_DCA_INV_DMIXTABLE_SIZE];
01ca9ac3
 
9a0a3bbe
 extern const uint16_t ff_dca_xll_refl_coeff[128];
 
 extern const int32_t ff_dca_xll_band_coeff[20];
 
6c44696b
 extern const uint16_t ff_dca_avg_g3_freqs[3];
 
 extern const uint16_t ff_dca_fst_amp[44];
 
 extern const uint8_t ff_dca_freq_to_sb[32];
 
 extern const int8_t ff_dca_ph0_shift[8];
 
 extern const uint8_t ff_dca_grid_1_to_scf[11];
 extern const uint8_t ff_dca_grid_2_to_scf[3];
 
 extern const uint8_t ff_dca_scf_to_grid_1[32];
 extern const uint8_t ff_dca_scf_to_grid_2[32];
 
 extern const uint8_t ff_dca_grid_1_weights[12][32];
 
 extern const uint8_t ff_dca_sb_reorder[8][8];
 
 extern const int8_t ff_dca_lfe_delta_index_16[8];
 extern const int8_t ff_dca_lfe_delta_index_24[32];
 
 extern const uint16_t ff_dca_rsd_pack_5_in_8[256];
 extern const uint8_t ff_dca_rsd_pack_3_in_7[128][3];
 
 extern const float ff_dca_rsd_level_2a[2];
 extern const float ff_dca_rsd_level_2b[2];
 extern const float ff_dca_rsd_level_3[3];
 extern const float ff_dca_rsd_level_5[5];
 extern const float ff_dca_rsd_level_8[8];
 extern const float ff_dca_rsd_level_16[16];
 
 extern const float ff_dca_synth_env[32];
 
 extern const float ff_dca_corr_cf[32][11];
 
 extern const float ff_dca_quant_amp[57];
 
 extern const float ff_dca_st_coeff[34];
 
 extern const float ff_dca_long_window[128];
 
 extern const float ff_dca_lfe_step_size_16[101];
 extern const float ff_dca_lfe_step_size_24[144];
 
 extern const float ff_dca_bank_coeff[10];
 extern const float ff_dca_lfe_iir[5][4];
 
98790382
 #endif /* AVCODEC_DCADATA_H */