comparison ac3tab.h @ 4679:acdd4b24f5c5 libavcodec

hardcode ff_ac3_frame_sizes table
author jbr
date Sun, 18 Mar 2007 04:53:21 +0000
parents 056127e5df89
children
comparison
equal deleted inserted replaced
4678:ae5abc4dc946 4679:acdd4b24f5c5
24 * tables taken directly from AC3 spec. 24 * tables taken directly from AC3 spec.
25 */ 25 */
26 26
27 /** 27 /**
28 * Possible frame sizes. 28 * Possible frame sizes.
29 * Generated at runtime to match ATSC A/52 Table 5.18 Frame Size Code Table. 29 * from ATSC A/52 Table 5.18 Frame Size Code Table.
30 */ 30 */
31 uint16_t ff_ac3_frame_sizes[38][3]; 31 const uint16_t ff_ac3_frame_sizes[38][3] = {
32 { 64, 69, 96 },
33 { 64, 70, 96 },
34 { 80, 87, 120 },
35 { 80, 88, 120 },
36 { 96, 104, 144 },
37 { 96, 105, 144 },
38 { 112, 121, 168 },
39 { 112, 122, 168 },
40 { 128, 139, 192 },
41 { 128, 140, 192 },
42 { 160, 174, 240 },
43 { 160, 175, 240 },
44 { 192, 208, 288 },
45 { 192, 209, 288 },
46 { 224, 243, 336 },
47 { 224, 244, 336 },
48 { 256, 278, 384 },
49 { 256, 279, 384 },
50 { 320, 348, 480 },
51 { 320, 349, 480 },
52 { 384, 417, 576 },
53 { 384, 418, 576 },
54 { 448, 487, 672 },
55 { 448, 488, 672 },
56 { 512, 557, 768 },
57 { 512, 558, 768 },
58 { 640, 696, 960 },
59 { 640, 697, 960 },
60 { 768, 835, 1152 },
61 { 768, 836, 1152 },
62 { 896, 975, 1344 },
63 { 896, 976, 1344 },
64 { 1024, 1114, 1536 },
65 { 1024, 1115, 1536 },
66 { 1152, 1253, 1728 },
67 { 1152, 1254, 1728 },
68 { 1280, 1393, 1920 },
69 { 1280, 1394, 1920 },
70 };
32 71
33 /** 72 /**
34 * Maps audio coding mode (acmod) to number of full-bandwidth channels. 73 * Maps audio coding mode (acmod) to number of full-bandwidth channels.
35 * from ATSC A/52 Table 5.8 Audio Coding Mode 74 * from ATSC A/52 Table 5.8 Audio Coding Mode
36 */ 75 */