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