comparison 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
comparison
equal deleted inserted replaced
4644:414d484f6483 4645:056127e5df89
21 21
22 /** 22 /**
23 * @file ac3tab.h 23 * @file ac3tab.h
24 * tables taken directly from AC3 spec. 24 * tables taken directly from AC3 spec.
25 */ 25 */
26
27 /**
28 * Possible frame sizes.
29 * Generated at runtime to match ATSC A/52 Table 5.18 Frame Size Code Table.
30 */
31 uint16_t ff_ac3_frame_sizes[38][3];
32
33 /**
34 * Maps audio coding mode (acmod) to number of full-bandwidth channels.
35 * from ATSC A/52 Table 5.8 Audio Coding Mode
36 */
37 const uint8_t ff_ac3_channels[8] = {
38 2, 1, 2, 3, 3, 4, 4, 5
39 };
26 40
27 /* possible frequencies */ 41 /* possible frequencies */
28 const uint16_t ff_ac3_freqs[3] = { 48000, 44100, 32000 }; 42 const uint16_t ff_ac3_freqs[3] = { 48000, 44100, 32000 };
29 43
30 /* possible bitrates */ 44 /* possible bitrates */