2007-02-27 07:30:40 +01:00
|
|
|
/*
|
|
|
|
* DCA compatible decoder data
|
|
|
|
*
|
2007-02-27 10:56:09 +01:00
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2007-02-27 07:30:40 +01:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2007-02-27 10:56:09 +01:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2007-02-27 07:30:40 +01:00
|
|
|
*
|
2007-02-27 10:56:09 +01:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2007-02-27 07:30:40 +01:00
|
|
|
* 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
|
2007-02-27 10:56:09 +01:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2007-02-27 07:30:40 +01:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
2008-08-31 09:39:47 +02:00
|
|
|
#ifndef AVCODEC_DCADATA_H
|
|
|
|
#define AVCODEC_DCADATA_H
|
2007-06-17 02:01:30 +02:00
|
|
|
|
2007-06-17 00:59:13 +02:00
|
|
|
#include <stdint.h>
|
2014-09-08 19:40:26 +02:00
|
|
|
|
2015-02-15 20:03:03 +01:00
|
|
|
extern const uint32_t ff_dca_bit_rates[32];
|
2007-06-17 00:59:13 +02:00
|
|
|
|
2015-02-15 20:03:03 +01:00
|
|
|
extern const uint8_t ff_dca_channels[16];
|
2007-02-27 07:30:40 +01:00
|
|
|
|
2016-01-07 15:15:22 +01:00
|
|
|
extern const uint8_t ff_dca_bits_per_sample[8];
|
|
|
|
|
|
|
|
extern const uint8_t ff_dca_dmix_primary_nch[8];
|
2007-02-27 07:30:40 +01:00
|
|
|
|
2015-02-15 20:03:03 +01:00
|
|
|
extern const int16_t ff_dca_adpcm_vb[4096][4];
|
2007-02-27 07:30:40 +01:00
|
|
|
|
2015-02-15 20:03:03 +01:00
|
|
|
extern const uint32_t ff_dca_scale_factor_quant6[64];
|
|
|
|
extern const uint32_t ff_dca_scale_factor_quant7[128];
|
2007-02-27 07:30:40 +01:00
|
|
|
|
2016-01-07 15:15:22 +01:00
|
|
|
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];
|
|
|
|
|
2015-02-15 20:03:03 +01:00
|
|
|
extern const uint32_t ff_dca_lossy_quant[32];
|
2007-02-27 07:30:40 +01:00
|
|
|
|
2015-02-15 20:03:03 +01:00
|
|
|
extern const uint32_t ff_dca_lossless_quant[32];
|
2007-02-27 07:30:40 +01:00
|
|
|
|
2015-02-15 20:03:03 +01:00
|
|
|
extern const int8_t ff_dca_high_freq_vq[1024][32];
|
2007-02-27 07:30:40 +01:00
|
|
|
|
2015-02-15 20:03:03 +01:00
|
|
|
extern const float ff_dca_fir_32bands_perfect[512];
|
|
|
|
extern const float ff_dca_fir_32bands_nonperfect[512];
|
2007-02-27 07:30:40 +01:00
|
|
|
|
2015-02-15 20:03:03 +01:00
|
|
|
extern const float ff_dca_lfe_fir_64[256];
|
|
|
|
extern const float ff_dca_lfe_fir_128[256];
|
2014-02-11 11:45:27 +01:00
|
|
|
extern const float ff_dca_fir_64bands[1024];
|
2007-02-27 07:30:40 +01:00
|
|
|
|
2016-01-07 15:15:22 +01:00
|
|
|
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)
|
2014-02-11 11:45:27 +01:00
|
|
|
|
|
|
|
extern const uint16_t ff_dca_dmixtable[FF_DCA_DMIXTABLE_SIZE];
|
|
|
|
extern const uint32_t ff_dca_inv_dmixtable[FF_DCA_INV_DMIXTABLE_SIZE];
|
2007-02-27 07:30:40 +01:00
|
|
|
|
2016-01-07 15:15:22 +01:00
|
|
|
extern const uint16_t ff_dca_xll_refl_coeff[128];
|
|
|
|
|
|
|
|
extern const int32_t ff_dca_xll_band_coeff[20];
|
|
|
|
|
2014-02-11 11:45:27 +01:00
|
|
|
extern const int32_t ff_dca_sampling_freqs[16];
|
|
|
|
|
2015-02-15 20:03:03 +01:00
|
|
|
extern const int8_t ff_dca_lfe_index[16];
|
2007-02-27 07:30:40 +01:00
|
|
|
|
2015-02-15 20:03:03 +01:00
|
|
|
extern const int8_t ff_dca_channel_reorder_lfe[16][9];
|
|
|
|
extern const int8_t ff_dca_channel_reorder_nolfe[16][9];
|
2007-02-27 07:30:40 +01:00
|
|
|
|
2015-02-15 20:03:03 +01:00
|
|
|
extern const uint16_t ff_dca_vlc_offs[63];
|
2014-09-22 18:05:40 +02:00
|
|
|
|
2008-08-31 09:39:47 +02:00
|
|
|
#endif /* AVCODEC_DCADATA_H */
|