79
80
2, 1, 2, 3, 3, 4, 4, 5
84
* Maps audio coding mode (acmod) to channel layout mask.
86
const uint16_t ff_ac3_channel_layout_tab[8] = {
97
#define COMMON_CHANNEL_MAP \
98
{ { 0, 1, }, { 0, 1, 2, } },\
99
{ { 0, }, { 0, 1, } },\
100
{ { 0, 1, }, { 0, 1, 2, } },\
101
{ { 0, 2, 1, }, { 0, 2, 1, 3, } },\
102
{ { 0, 1, 2, }, { 0, 1, 3, 2, } },\
103
{ { 0, 2, 1, 3, }, { 0, 2, 1, 4, 3, } },
106
* Table to remap channels from SMPTE order to AC-3 order.
107
* [channel_mode][lfe][ch]
109
const uint8_t ff_ac3_enc_channel_map[8][2][6] = {
111
{ { 0, 1, 2, 3, }, { 0, 1, 3, 4, 2, } },
112
{ { 0, 2, 1, 3, 4, }, { 0, 2, 1, 4, 5, 3 } },
116
* Table to remap channels from from AC-3 order to SMPTE order.
117
* [channel_mode][lfe][ch]
119
const uint8_t ff_ac3_dec_channel_map[8][2][6] = {
121
{ { 0, 1, 2, 3, }, { 0, 1, 4, 2, 3, } },
122
{ { 0, 2, 1, 3, 4, }, { 0, 2, 1, 5, 3, 4 } },
82
125
/* possible frequencies */
83
126
const uint16_t ff_ac3_sample_rate_tab[3] = { 48000, 44100, 32000 };