Revision a7c6e117 libavcodec/ac3tab.c

View differences:

libavcodec/ac3tab.c
79 79
    2, 1, 2, 3, 3, 4, 4, 5
80 80
};
81 81

  
82
/**
83
 * Table to remap channels from SMPTE order to AC-3 order.
84
 * [channel_mode][lfe][ch]
85
 */
86
const uint8_t ff_ac3_enc_channel_map[8][2][6] = {
87
    { { 0, 1,          }, { 0, 1, 2,         } },
88
    { { 0,             }, { 0, 1,            } },
89
    { { 0, 1,          }, { 0, 1, 2,         } },
90
    { { 0, 2, 1,       }, { 0, 2, 1, 3,      } },
91
    { { 0, 1, 2,       }, { 0, 1, 3, 2,      } },
92
    { { 0, 2, 1, 3,    }, { 0, 2, 1, 4, 3,   } },
93
    { { 0, 1, 2, 3, 4, }, { 0, 1, 3, 4, 2,   } },
94
    { { 0, 2, 1, 3, 4, }, { 0, 2, 1, 4, 5, 3 } },
95
};
96

  
82 97
/* possible frequencies */
83 98
const uint16_t ff_ac3_sample_rate_tab[3] = { 48000, 44100, 32000 };
84 99

  

Also available in: Unified diff