28 #ifndef AVCODEC_AACENCTAB_H 29 #define AVCODEC_AACENCTAB_H 39 #define AAC_MAX_CHANNELS 16 41 extern const uint8_t *ff_aac_swb_size_1024[];
42 extern const int ff_aac_swb_size_1024_len;
43 extern const uint8_t *ff_aac_swb_size_128[];
44 extern const int ff_aac_swb_size_128_len;
47 static const int64_t aac_normal_chan_layouts[7] = {
50 AV_CH_LAYOUT_SURROUND,
52 AV_CH_LAYOUT_5POINT0_BACK,
53 AV_CH_LAYOUT_5POINT1_BACK,
58 static const uint8_t aac_chan_configs[AAC_MAX_CHANNELS][6] = {
61 {2, TYPE_SCE, TYPE_CPE},
62 {3, TYPE_SCE, TYPE_CPE, TYPE_SCE},
63 {3, TYPE_SCE, TYPE_CPE, TYPE_CPE},
64 {4, TYPE_SCE, TYPE_CPE, TYPE_CPE, TYPE_LFE},
66 {5, TYPE_SCE, TYPE_CPE, TYPE_CPE, TYPE_CPE, TYPE_LFE},
72 static const uint8_t aac_chan_maps[AAC_MAX_CHANNELS][AAC_MAX_CHANNELS] = {
80 { 2, 0, 1, 6, 7, 4, 5, 3 },
85 static const int mpeg4audio_sample_rates[16] = {
86 96000, 88200, 64000, 48000, 44100, 32000,
87 24000, 22050, 16000, 12000, 11025, 8000, 7350
91 static const uint8_t run_value_bits_long[64] = {
92 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
93 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 10,
94 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
95 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 15
99 static const uint8_t run_value_bits_short[16] = {
100 3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 9
104 static const uint8_t tns_min_sfb_short[16] = {
105 2, 2, 2, 3, 3, 4, 6, 6, 8, 10, 10, 12, 12, 12, 12, 12
108 static const uint8_t tns_min_sfb_long[16] = {
109 12, 13, 15, 16, 17, 20, 25, 26, 24, 28, 30, 31, 31, 31, 31, 31
112 static const uint8_t *
const tns_min_sfb[2] = {
113 tns_min_sfb_long, tns_min_sfb_short
116 static const uint8_t *
const run_value_bits[2] = {
117 run_value_bits_long, run_value_bits_short
121 static const uint8_t aac_cb_out_map[
CB_TOT_ALL] = {0,1,2,3,4,5,6,7,8,9,10,11,13,14,15};
123 static const uint8_t aac_cb_in_map[
CB_TOT_ALL+1] = {0,1,2,3,4,5,6,7,8,9,10,11,0,12,13,14};
125 static const uint8_t aac_cb_range [12] = {0, 3, 3, 3, 3, 9, 9, 8, 8, 13, 13, 17};
126 static const uint8_t aac_cb_maxval[12] = {0, 1, 1, 2, 2, 4, 4, 7, 7, 12, 12, 16};
128 static const unsigned char aac_maxval_cb[] = {
129 0, 1, 3, 5, 5, 7, 7, 7, 9, 9, 9, 9, 9, 11
132 static const int aacenc_profiles[] = {
136 FF_PROFILE_MPEG2_AAC_LOW,
#define CB_TOT_ALL
Total number of codebooks, including special ones.
Definition: aacenctab.h:37