Mercurial > libavcodec.hg
comparison h261data.h @ 4170:f97a2081b5b1 libavcodec
make some symbols static
author | mru |
---|---|
date | Sat, 11 Nov 2006 20:54:48 +0000 |
parents | c8c591fe26f8 |
children | 65b1bfb3a74c |
comparison
equal
deleted
inserted
replaced
4169:8d67ae8320dc | 4170:f97a2081b5b1 |
---|---|
24 * H.261 tables. | 24 * H.261 tables. |
25 */ | 25 */ |
26 #define MB_TYPE_H261_FIL 0x800000 | 26 #define MB_TYPE_H261_FIL 0x800000 |
27 | 27 |
28 // H.261 VLC table for macroblock addressing | 28 // H.261 VLC table for macroblock addressing |
29 const uint8_t h261_mba_code[35] = { | 29 static const uint8_t h261_mba_code[35] = { |
30 1, 3, 2, 3, | 30 1, 3, 2, 3, |
31 2, 3, 2, 7, | 31 2, 3, 2, 7, |
32 6, 11, 10, 9, | 32 6, 11, 10, 9, |
33 8, 7, 6, 23, | 33 8, 7, 6, 23, |
34 22, 21, 20, 19, | 34 22, 21, 20, 19, |
38 24, | 38 24, |
39 15, //(MBA stuffing) | 39 15, //(MBA stuffing) |
40 1 //(start code) | 40 1 //(start code) |
41 }; | 41 }; |
42 | 42 |
43 const uint8_t h261_mba_bits[35] = { | 43 static const uint8_t h261_mba_bits[35] = { |
44 1, 3, 3, 4, | 44 1, 3, 3, 4, |
45 4, 5, 5, 7, | 45 4, 5, 5, 7, |
46 7, 8, 8, 8, | 46 7, 8, 8, 8, |
47 8, 8, 8, 10, | 47 8, 8, 8, 10, |
48 10, 10, 10, 10, | 48 10, 10, 10, 10, |
53 11, //(MBA stuffing) | 53 11, //(MBA stuffing) |
54 16 //(start code) | 54 16 //(start code) |
55 }; | 55 }; |
56 | 56 |
57 //H.261 VLC table for macroblock type | 57 //H.261 VLC table for macroblock type |
58 const uint8_t h261_mtype_code[10] = { | 58 static const uint8_t h261_mtype_code[10] = { |
59 1, 1, 1, 1, | 59 1, 1, 1, 1, |
60 1, 1, 1, 1, | 60 1, 1, 1, 1, |
61 1, 1 | 61 1, 1 |
62 }; | 62 }; |
63 | 63 |
64 const uint8_t h261_mtype_bits[10] = { | 64 static const uint8_t h261_mtype_bits[10] = { |
65 4, 7, 1, 5, | 65 4, 7, 1, 5, |
66 9, 8, 10, 3, | 66 9, 8, 10, 3, |
67 2, 6 | 67 2, 6 |
68 }; | 68 }; |
69 | 69 |
79 MB_TYPE_CBP | MB_TYPE_16x16 | MB_TYPE_H261_FIL, | 79 MB_TYPE_CBP | MB_TYPE_16x16 | MB_TYPE_H261_FIL, |
80 MB_TYPE_QUANT | MB_TYPE_CBP | MB_TYPE_16x16 | MB_TYPE_H261_FIL | 80 MB_TYPE_QUANT | MB_TYPE_CBP | MB_TYPE_16x16 | MB_TYPE_H261_FIL |
81 }; | 81 }; |
82 | 82 |
83 //H.261 VLC table for motion vectors | 83 //H.261 VLC table for motion vectors |
84 const uint8_t h261_mv_tab[17][2] = { | 84 static const uint8_t h261_mv_tab[17][2] = { |
85 {1,1}, {1,2}, {1,3}, {1,4}, {3,6}, {5,7}, {4,7}, {3,7}, | 85 {1,1}, {1,2}, {1,3}, {1,4}, {3,6}, {5,7}, {4,7}, {3,7}, |
86 {11,9}, {10,9}, {9,9}, {17,10}, {16,10}, {15,10}, {14,10}, {13,10}, {12,10} | 86 {11,9}, {10,9}, {9,9}, {17,10}, {16,10}, {15,10}, {14,10}, {13,10}, {12,10} |
87 }; | 87 }; |
88 | 88 |
89 static const int mvmap[17] = | 89 static const int mvmap[17] = |
90 { | 90 { |
91 0, -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16 | 91 0, -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16 |
92 }; | 92 }; |
93 | 93 |
94 //H.261 VLC table for coded block pattern | 94 //H.261 VLC table for coded block pattern |
95 const uint8_t h261_cbp_tab[63][2] = | 95 static const uint8_t h261_cbp_tab[63][2] = |
96 { | 96 { |
97 {11,5}, {9,5}, {13,6}, {13,4}, {23,7}, {19,7}, {31,8}, {12,4}, | 97 {11,5}, {9,5}, {13,6}, {13,4}, {23,7}, {19,7}, {31,8}, {12,4}, |
98 {22,7}, {18,7}, {30,8}, {19,5}, {27,8}, {23,8}, {19,8}, {11,4}, | 98 {22,7}, {18,7}, {30,8}, {19,5}, {27,8}, {23,8}, {19,8}, {11,4}, |
99 {21,7}, {17,7}, {29,8}, {17,5}, {25,8}, {21,8}, {17,8}, {15,6}, | 99 {21,7}, {17,7}, {29,8}, {17,5}, {25,8}, {21,8}, {17,8}, {15,6}, |
100 {15,8}, {13,8}, {3,9}, {15,5}, {11,8}, {7,8}, {7,9}, {10,4}, | 100 {15,8}, {13,8}, {3,9}, {15,5}, {11,8}, {7,8}, {7,9}, {10,4}, |
103 {26,8}, {22,8}, {18,8}, {13,5}, {9,8}, {5,8}, {5,9}, {12,5}, | 103 {26,8}, {22,8}, {18,8}, {13,5}, {9,8}, {5,8}, {5,9}, {12,5}, |
104 {8,8}, {4,8}, {4,9}, {7,3}, {10,5}, {8,5}, {12,6} | 104 {8,8}, {4,8}, {4,9}, {7,3}, {10,5}, {8,5}, {12,6} |
105 }; | 105 }; |
106 | 106 |
107 //H.261 VLC table for transform coefficients | 107 //H.261 VLC table for transform coefficients |
108 const uint16_t h261_tcoeff_vlc[65][2] = { | 108 static const uint16_t h261_tcoeff_vlc[65][2] = { |
109 { 0x2, 2 }, { 0x3, 2 },{ 0x4, 4 },{ 0x5, 5 }, | 109 { 0x2, 2 }, { 0x3, 2 },{ 0x4, 4 },{ 0x5, 5 }, |
110 { 0x6, 7 },{ 0x26, 8 },{ 0x21, 8 },{ 0xa, 10 }, | 110 { 0x6, 7 },{ 0x26, 8 },{ 0x21, 8 },{ 0xa, 10 }, |
111 { 0x1d, 12 },{ 0x18, 12 },{ 0x13, 12 },{ 0x10 , 12 }, | 111 { 0x1d, 12 },{ 0x18, 12 },{ 0x13, 12 },{ 0x10 , 12 }, |
112 { 0x1a, 13},{ 0x19, 13 }, { 0x18, 13 }, { 0x17, 13 }, | 112 { 0x1a, 13},{ 0x19, 13 }, { 0x18, 13 }, { 0x17, 13 }, |
113 { 0x3, 3 }, { 0x6, 6 }, { 0x25 , 8 }, { 0xc, 10 }, | 113 { 0x3, 3 }, { 0x6, 6 }, { 0x25 , 8 }, { 0xc, 10 }, |
123 { 0x19, 12 }, { 0x17, 12 }, { 0x16, 12}, { 0x1f, 13}, | 123 { 0x19, 12 }, { 0x17, 12 }, { 0x16, 12}, { 0x1f, 13}, |
124 { 0x1e, 13 }, { 0x1d, 13 }, { 0x1c, 13}, { 0x1b, 13}, | 124 { 0x1e, 13 }, { 0x1d, 13 }, { 0x1c, 13}, { 0x1b, 13}, |
125 { 0x1, 6 } //escape | 125 { 0x1, 6 } //escape |
126 }; | 126 }; |
127 | 127 |
128 const int8_t h261_tcoeff_level[64] = { | 128 static const int8_t h261_tcoeff_level[64] = { |
129 0, 1, 2, 3, 4, 5, 6, 7, | 129 0, 1, 2, 3, 4, 5, 6, 7, |
130 8, 9, 10, 11, 12, 13, 14, 15, | 130 8, 9, 10, 11, 12, 13, 14, 15, |
131 1, 2, 3, 4, 5, 6, 7, 1, | 131 1, 2, 3, 4, 5, 6, 7, 1, |
132 2, 3, 4, 5, 1, 2, 3, 4, | 132 2, 3, 4, 5, 1, 2, 3, 4, |
133 1, 2, 3, 1, 2, 3, 1, 2, | 133 1, 2, 3, 1, 2, 3, 1, 2, |
134 1, 2, 1, 2, 1, 2, 1, 2, | 134 1, 2, 1, 2, 1, 2, 1, 2, |
135 1, 1, 1, 1, 1, 1, 1, 1, | 135 1, 1, 1, 1, 1, 1, 1, 1, |
136 1, 1, 1, 1, 1, 1, 1, 1 | 136 1, 1, 1, 1, 1, 1, 1, 1 |
137 }; | 137 }; |
138 | 138 |
139 const int8_t h261_tcoeff_run[64] = { | 139 static const int8_t h261_tcoeff_run[64] = { |
140 0, | 140 0, |
141 0, 0, 0, 0, 0, 0, 0, 0, | 141 0, 0, 0, 0, 0, 0, 0, 0, |
142 0, 0, 0, 0, 0, 0, 0, 1, | 142 0, 0, 0, 0, 0, 0, 0, 1, |
143 1, 1, 1, 1, 1, 1, 2, 2, | 143 1, 1, 1, 1, 1, 1, 2, 2, |
144 2, 2, 2, 3, 3, 3, 3, 4, | 144 2, 2, 2, 3, 3, 3, 3, 4, |