Mercurial > libavcodec.hg
diff ac3tab.h @ 4645:056127e5df89 libavcodec
remove redundancy in AC-3 parser by using common tables from ac3tab.h
author | jbr |
---|---|
date | Sun, 11 Mar 2007 02:13:05 +0000 |
parents | 1e175640dad3 |
children | acdd4b24f5c5 |
line wrap: on
line diff
--- a/ac3tab.h Sat Mar 10 09:20:07 2007 +0000 +++ b/ac3tab.h Sun Mar 11 02:13:05 2007 +0000 @@ -24,6 +24,20 @@ * tables taken directly from AC3 spec. */ +/** + * Possible frame sizes. + * Generated at runtime to match ATSC A/52 Table 5.18 Frame Size Code Table. + */ +uint16_t ff_ac3_frame_sizes[38][3]; + +/** + * Maps audio coding mode (acmod) to number of full-bandwidth channels. + * from ATSC A/52 Table 5.8 Audio Coding Mode + */ +const uint8_t ff_ac3_channels[8] = { + 2, 1, 2, 3, 3, 4, 4, 5 +}; + /* possible frequencies */ const uint16_t ff_ac3_freqs[3] = { 48000, 44100, 32000 };