FFmpeg
dcadata.h
Go to the documentation of this file.
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 
21 #ifndef AVCODEC_DCADATA_H
22 #define AVCODEC_DCADATA_H
23 
24 #include <stdint.h>
25 
26 #include "dcahuff.h"
27 
28 #define DCA_ADPCM_COEFFS 4
29 #define DCA_ADPCM_VQCODEBOOK_SZ 4096
30 
31 extern const uint32_t ff_dca_bit_rates[32];
32 
33 extern const uint8_t ff_dca_channels[16];
34 
35 extern const uint8_t ff_dca_dmix_primary_nch[8];
36 
37 extern const uint8_t ff_dca_quant_index_sel_nbits[DCA_CODE_BOOKS];
38 extern const uint8_t ff_dca_quant_index_group_size[DCA_CODE_BOOKS];
39 
41 
42 extern const uint32_t ff_dca_scale_factor_quant6[64];
43 extern const uint32_t ff_dca_scale_factor_quant7[128];
44 
45 extern const uint32_t ff_dca_joint_scale_factors[129];
46 
47 extern const uint32_t ff_dca_scale_factor_adj[4];
48 
49 extern const uint32_t ff_dca_quant_levels[32];
50 
51 extern const uint32_t ff_dca_lossy_quant[32];
52 
53 extern const uint32_t ff_dca_lossless_quant[32];
54 
55 extern const int8_t ff_dca_high_freq_vq[1024][32];
56 
57 extern const float ff_dca_fir_32bands_perfect[512];
58 extern const float ff_dca_fir_32bands_nonperfect[512];
59 
60 extern const float ff_dca_lfe_fir_64[256];
61 extern const float ff_dca_lfe_fir_128[256];
62 extern const float ff_dca_fir_64bands[1024];
63 
66 extern const int32_t ff_dca_lfe_fir_64_fixed[256];
67 extern const int32_t ff_dca_fir_64bands_fixed[1024];
68 
69 #define FF_DCA_DMIXTABLE_SIZE 242U
70 #define FF_DCA_INV_DMIXTABLE_SIZE 201U
71 #define FF_DCA_DMIXTABLE_OFFSET (FF_DCA_DMIXTABLE_SIZE - FF_DCA_INV_DMIXTABLE_SIZE)
72 
73 extern const uint16_t ff_dca_dmixtable[FF_DCA_DMIXTABLE_SIZE];
74 extern const uint32_t ff_dca_inv_dmixtable[FF_DCA_INV_DMIXTABLE_SIZE];
75 
76 extern const uint16_t ff_dca_xll_refl_coeff[128];
77 
78 extern const int32_t ff_dca_xll_band_coeff[20];
79 
80 extern const uint16_t ff_dca_avg_g3_freqs[3];
81 
82 extern const uint16_t ff_dca_fst_amp[44];
83 
84 extern const uint8_t ff_dca_freq_to_sb[32];
85 
86 extern const int8_t ff_dca_ph0_shift[8];
87 
88 extern const uint8_t ff_dca_grid_1_to_scf[11];
89 extern const uint8_t ff_dca_grid_2_to_scf[3];
90 
91 extern const uint8_t ff_dca_scf_to_grid_1[32];
92 extern const uint8_t ff_dca_scf_to_grid_2[32];
93 
94 extern const uint8_t ff_dca_grid_1_weights[12][32];
95 
96 extern const uint8_t ff_dca_sb_reorder[8][8];
97 
98 extern const int8_t ff_dca_lfe_delta_index_16[8];
99 extern const int8_t ff_dca_lfe_delta_index_24[32];
100 
101 extern const uint16_t ff_dca_rsd_pack_5_in_8[256];
102 extern const uint8_t ff_dca_rsd_pack_3_in_7[128][3];
103 
104 extern const float ff_dca_rsd_level_2a[2];
105 extern const float ff_dca_rsd_level_2b[2];
106 extern const float ff_dca_rsd_level_3[3];
107 extern const float ff_dca_rsd_level_5[5];
108 extern const float ff_dca_rsd_level_8[8];
109 extern const float ff_dca_rsd_level_16[16];
110 
111 extern const float ff_dca_synth_env[32];
112 
113 extern const float ff_dca_corr_cf[32][11];
114 
115 extern const float ff_dca_quant_amp[57];
116 
117 extern const float ff_dca_st_coeff[34];
118 
119 extern const float ff_dca_long_window[128];
120 
121 extern const float ff_dca_lfe_step_size_16[101];
122 extern const float ff_dca_lfe_step_size_24[144];
123 
124 extern const float ff_dca_bank_coeff[10];
125 extern const float ff_dca_lfe_iir[5][4];
126 
127 #endif /* AVCODEC_DCADATA_H */
ff_dca_fir_64bands
const float ff_dca_fir_64bands[1024]
Definition: dcadata.c:7550
ff_dca_lfe_fir_64_fixed
const int32_t ff_dca_lfe_fir_64_fixed[256]
Definition: dcadata.c:8336
ff_dca_st_coeff
const float ff_dca_st_coeff[34]
Definition: dcadata.c:9049
ff_dca_scale_factor_quant7
const uint32_t ff_dca_scale_factor_quant7[128]
Definition: dcadata.c:4172
ff_dca_xll_refl_coeff
const uint16_t ff_dca_xll_refl_coeff[128]
Definition: dcadata.c:8705
ff_dca_channels
const uint8_t ff_dca_channels[16]
Definition: dcadata.c:41
ff_dca_lfe_delta_index_16
const int8_t ff_dca_lfe_delta_index_16[8]
Definition: dcadata.c:8847
ff_dca_bit_rates
const uint32_t ff_dca_bit_rates[32]
Definition: dcadata.c:32
ff_dca_quant_levels
const uint32_t ff_dca_quant_levels[32]
Definition: dcadata.c:4215
ff_dca_high_freq_vq
const int8_t ff_dca_high_freq_vq[1024][32]
Definition: dcadata.c:4240
ff_dca_lossy_quant
const uint32_t ff_dca_lossy_quant[32]
Definition: dcadata.c:4223
ff_dca_sb_reorder
const uint8_t ff_dca_sb_reorder[8][8]
Definition: dcadata.c:8836
ff_dca_rsd_level_2b
const float ff_dca_rsd_level_2b[2]
Definition: dcadata.c:8930
ff_dca_lfe_step_size_24
const float ff_dca_lfe_step_size_24[144]
Definition: dcadata.c:9133
ff_dca_joint_scale_factors
const uint32_t ff_dca_joint_scale_factors[129]
Definition: dcadata.c:4191
ff_dca_bank_coeff
const float ff_dca_bank_coeff[10]
Definition: dcadata.c:9184
ff_dca_inv_dmixtable
const uint32_t ff_dca_inv_dmixtable[FF_DCA_INV_DMIXTABLE_SIZE]
Definition: dcadata.c:8676
ff_dca_rsd_level_16
const float ff_dca_rsd_level_16[16]
Definition: dcadata.c:8946
ff_dca_scale_factor_quant6
const uint32_t ff_dca_scale_factor_quant6[64]
Definition: dcadata.c:4161
ff_dca_grid_2_to_scf
const uint8_t ff_dca_grid_2_to_scf[3]
Definition: dcadata.c:8761
DCA_ADPCM_COEFFS
#define DCA_ADPCM_COEFFS
Definition: dcadata.h:28
ff_dca_fir_64bands_fixed
const int32_t ff_dca_fir_64bands_fixed[1024]
Definition: dcadata.c:8371
ff_dca_synth_env
const float ff_dca_synth_env[32]
Definition: dcadata.c:8953
ff_dca_freq_to_sb
const uint8_t ff_dca_freq_to_sb[32]
Definition: dcadata.c:8748
ff_dca_dmixtable
const uint16_t ff_dca_dmixtable[FF_DCA_DMIXTABLE_SIZE]
Definition: dcadata.c:8642
ff_dca_corr_cf
const float ff_dca_corr_cf[32][11]
Definition: dcadata.c:8964
ff_dca_adpcm_vb
const int16_t ff_dca_adpcm_vb[DCA_ADPCM_VQCODEBOOK_SZ][DCA_ADPCM_COEFFS]
Definition: dcadata.c:60
ff_dca_fir_32bands_nonperfect_fixed
const int32_t ff_dca_fir_32bands_nonperfect_fixed[512]
Definition: dcadata.c:8205
ff_dca_scf_to_grid_1
const uint8_t ff_dca_scf_to_grid_1[32]
Definition: dcadata.c:8765
ff_dca_rsd_pack_5_in_8
const uint16_t ff_dca_rsd_pack_5_in_8[256]
Definition: dcadata.c:8856
DCA_ADPCM_VQCODEBOOK_SZ
#define DCA_ADPCM_VQCODEBOOK_SZ
Definition: dcadata.h:29
ff_dca_lfe_delta_index_24
const int8_t ff_dca_lfe_delta_index_24[32]
Definition: dcadata.c:8851
ff_dca_dmix_primary_nch
const uint8_t ff_dca_dmix_primary_nch[8]
Definition: dcadata.c:45
ff_dca_grid_1_weights
const uint8_t ff_dca_grid_1_weights[12][32]
Definition: dcadata.c:8775
dcahuff.h
ff_dca_rsd_pack_3_in_7
const uint8_t ff_dca_rsd_pack_3_in_7[128][3]
Definition: dcadata.c:8891
ff_dca_rsd_level_3
const float ff_dca_rsd_level_3[3]
Definition: dcadata.c:8934
DCA_CODE_BOOKS
#define DCA_CODE_BOOKS
Definition: dcahuff.h:33
ff_dca_scale_factor_adj
const uint32_t ff_dca_scale_factor_adj[4]
Definition: dcadata.c:4211
ff_dca_xll_band_coeff
const int32_t ff_dca_xll_band_coeff[20]
Definition: dcadata.c:8724
ff_dca_lfe_fir_128
const float ff_dca_lfe_fir_128[256]
Definition: dcadata.c:7482
ff_dca_fir_32bands_nonperfect
const float ff_dca_fir_32bands_nonperfect[512]
Definition: dcadata.c:6808
ff_dca_rsd_level_5
const float ff_dca_rsd_level_5[5]
Definition: dcadata.c:8938
ff_dca_avg_g3_freqs
const uint16_t ff_dca_avg_g3_freqs[3]
Definition: dcadata.c:8732
ff_dca_ph0_shift
const int8_t ff_dca_ph0_shift[8]
Definition: dcadata.c:8753
ff_dca_rsd_level_8
const float ff_dca_rsd_level_8[8]
Definition: dcadata.c:8942
FF_DCA_DMIXTABLE_SIZE
#define FF_DCA_DMIXTABLE_SIZE
Definition: dcadata.h:69
ff_dca_quant_index_sel_nbits
const uint8_t ff_dca_quant_index_sel_nbits[DCA_CODE_BOOKS]
Definition: dcadata.c:49
ff_dca_lfe_step_size_16
const float ff_dca_lfe_step_size_16[101]
Definition: dcadata.c:9096
ff_dca_rsd_level_2a
const float ff_dca_rsd_level_2a[2]
Definition: dcadata.c:8926
ff_dca_scf_to_grid_2
const uint8_t ff_dca_scf_to_grid_2[32]
Definition: dcadata.c:8770
FF_DCA_INV_DMIXTABLE_SIZE
#define FF_DCA_INV_DMIXTABLE_SIZE
Definition: dcadata.h:70
ff_dca_fst_amp
const uint16_t ff_dca_fst_amp[44]
Definition: dcadata.c:8734
ff_dca_fir_32bands_perfect_fixed
const int32_t ff_dca_fir_32bands_perfect_fixed[512]
Definition: dcadata.c:8074
ff_dca_grid_1_to_scf
const uint8_t ff_dca_grid_1_to_scf[11]
Definition: dcadata.c:8757
int32_t
int32_t
Definition: audioconvert.c:56
ff_dca_quant_index_group_size
const uint8_t ff_dca_quant_index_group_size[DCA_CODE_BOOKS]
Definition: dcadata.c:53
ff_dca_fir_32bands_perfect
const float ff_dca_fir_32bands_perfect[512]
Definition: dcadata.c:6293
ff_dca_lossless_quant
const uint32_t ff_dca_lossless_quant[32]
Definition: dcadata.c:4231
ff_dca_lfe_fir_64
const float ff_dca_lfe_fir_64[256]
Definition: dcadata.c:7339
ff_dca_lfe_iir
const float ff_dca_lfe_iir[5][4]
Definition: dcadata.c:9190
ff_dca_quant_amp
const float ff_dca_quant_amp[57]
Definition: dcadata.c:9031
ff_dca_long_window
const float ff_dca_long_window[128]
Definition: dcadata.c:9061