dcadata.h 2.21 KB
Newer Older
Kostya Shishkov's avatar
Kostya Shishkov committed
1 2 3
/*
 * DCA compatible decoder data
 *
4
 * This file is part of Libav.
5
 *
6
 * Libav is free software; you can redistribute it and/or
Kostya Shishkov's avatar
Kostya Shishkov committed
7 8
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
9
 * version 2.1 of the License, or (at your option) any later version.
Kostya Shishkov's avatar
Kostya Shishkov committed
10
 *
11
 * Libav is distributed in the hope that it will be useful,
Kostya Shishkov's avatar
Kostya Shishkov committed
12 13 14 15 16
 * 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
17
 * License along with Libav; if not, write to the Free Software
Kostya Shishkov's avatar
Kostya Shishkov committed
18 19 20
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

21 22
#ifndef AVCODEC_DCADATA_H
#define AVCODEC_DCADATA_H
23

24
#include <stdint.h>
25

26
extern const uint32_t ff_dca_bit_rates[32];
27

28
extern const uint8_t ff_dca_channels[16];
Kostya Shishkov's avatar
Kostya Shishkov committed
29

30
extern const uint8_t ff_dca_bits_per_sample[7];
Kostya Shishkov's avatar
Kostya Shishkov committed
31

32
extern const int16_t ff_dca_adpcm_vb[4096][4];
Kostya Shishkov's avatar
Kostya Shishkov committed
33

34 35
extern const uint32_t ff_dca_scale_factor_quant6[64];
extern const uint32_t ff_dca_scale_factor_quant7[128];
Kostya Shishkov's avatar
Kostya Shishkov committed
36

37
extern const uint32_t ff_dca_lossy_quant[32];
Kostya Shishkov's avatar
Kostya Shishkov committed
38

39
extern const uint32_t ff_dca_lossless_quant[32];
Kostya Shishkov's avatar
Kostya Shishkov committed
40

41
extern const int8_t ff_dca_high_freq_vq[1024][32];
Kostya Shishkov's avatar
Kostya Shishkov committed
42

43 44
extern const float ff_dca_fir_32bands_perfect[512];
extern const float ff_dca_fir_32bands_nonperfect[512];
Kostya Shishkov's avatar
Kostya Shishkov committed
45

46 47
extern const float ff_dca_lfe_fir_64[256];
extern const float ff_dca_lfe_fir_128[256];
48 49
extern const float ff_dca_lfe_xll_fir_64[256];
extern const float ff_dca_fir_64bands[1024];
Kostya Shishkov's avatar
Kostya Shishkov committed
50

51 52 53 54 55
#define FF_DCA_DMIXTABLE_SIZE      242
#define FF_DCA_INV_DMIXTABLE_SIZE  201

extern const uint16_t ff_dca_dmixtable[FF_DCA_DMIXTABLE_SIZE];
extern const uint32_t ff_dca_inv_dmixtable[FF_DCA_INV_DMIXTABLE_SIZE];
Kostya Shishkov's avatar
Kostya Shishkov committed
56

57
extern const float ff_dca_default_coeffs[10][6][2];
Kostya Shishkov's avatar
Kostya Shishkov committed
58

59 60
extern const int32_t ff_dca_sampling_freqs[16];

61
extern const int8_t ff_dca_lfe_index[16];
Kostya Shishkov's avatar
Kostya Shishkov committed
62

63 64 65 66
extern const int8_t ff_dca_channel_reorder_lfe[16][9];
extern const int8_t ff_dca_channel_reorder_lfe_xch[16][9];
extern const int8_t ff_dca_channel_reorder_nolfe[16][9];
extern const int8_t ff_dca_channel_reorder_nolfe_xch[16][9];
Kostya Shishkov's avatar
Kostya Shishkov committed
67

68
extern const uint16_t ff_dca_vlc_offs[63];
69

70
#endif /* AVCODEC_DCADATA_H */