Originally committed as revision 21097 to svn://svn.ffmpeg.org/ffmpeg/trunk
Michael Niedermayer authored on 2010/01/09 02:41:14... | ... |
@@ -44,7 +44,7 @@ const uint8_t ff_mpeg4_DCtab_chrom[13][2] = |
44 | 44 |
{1,9}, {1,10}, {1,11}, {1,12}, |
45 | 45 |
}; |
46 | 46 |
|
47 |
-const uint16_t intra_vlc[103][2] = { |
|
47 |
+const uint16_t ff_mpeg4_intra_vlc[103][2] = { |
|
48 | 48 |
{ 0x2, 2 }, |
49 | 49 |
{ 0x6, 3 },{ 0xf, 4 },{ 0xd, 5 },{ 0xc, 5 }, |
50 | 50 |
{ 0x15, 6 },{ 0x13, 6 },{ 0x12, 6 },{ 0x17, 7 }, |
... | ... |
@@ -74,7 +74,7 @@ const uint16_t intra_vlc[103][2] = { |
74 | 74 |
{ 0x5f, 12 },{ 0x3, 7 }, |
75 | 75 |
}; |
76 | 76 |
|
77 |
-const int8_t intra_level[102] = { |
|
77 |
+const int8_t ff_mpeg4_intra_level[102] = { |
|
78 | 78 |
1, 2, 3, 4, 5, 6, 7, 8, |
79 | 79 |
9, 10, 11, 12, 13, 14, 15, 16, |
80 | 80 |
17, 18, 19, 20, 21, 22, 23, 24, |
... | ... |
@@ -90,7 +90,7 @@ const int8_t intra_level[102] = { |
90 | 90 |
1, 1, 1, 1, 1, 1, |
91 | 91 |
}; |
92 | 92 |
|
93 |
-const int8_t intra_run[102] = { |
|
93 |
+const int8_t ff_mpeg4_intra_run[102] = { |
|
94 | 94 |
0, 0, 0, 0, 0, 0, 0, 0, |
95 | 95 |
0, 0, 0, 0, 0, 0, 0, 0, |
96 | 96 |
0, 0, 0, 0, 0, 0, 0, 0, |
... | ... |
@@ -106,12 +106,12 @@ const int8_t intra_run[102] = { |
106 | 106 |
15, 16, 17, 18, 19, 20, |
107 | 107 |
}; |
108 | 108 |
|
109 |
-RLTable rl_intra = { |
|
109 |
+RLTable ff_mpeg4_rl_intra = { |
|
110 | 110 |
102, |
111 | 111 |
67, |
112 |
- intra_vlc, |
|
113 |
- intra_run, |
|
114 |
- intra_level, |
|
112 |
+ ff_mpeg4_intra_vlc, |
|
113 |
+ ff_mpeg4_intra_run, |
|
114 |
+ ff_mpeg4_intra_level, |
|
115 | 115 |
}; |
116 | 116 |
|
117 | 117 |
/* Note this is identical to the intra rvlc except that it is reordered. */ |
... | ... |
@@ -57,10 +57,10 @@ |
57 | 57 |
extern const uint8_t ff_mpeg4_DCtab_lum[13][2]; |
58 | 58 |
extern const uint8_t ff_mpeg4_DCtab_chrom[13][2]; |
59 | 59 |
|
60 |
-extern const uint16_t intra_vlc[103][2]; |
|
61 |
-extern const int8_t intra_level[102]; |
|
62 |
-extern const int8_t intra_run[102]; |
|
63 |
-extern RLTable rl_intra; |
|
60 |
+extern const uint16_t ff_mpeg4_intra_vlc[103][2]; |
|
61 |
+extern const int8_t ff_mpeg4_intra_level[102]; |
|
62 |
+extern const int8_t ff_mpeg4_intra_run[102]; |
|
63 |
+extern RLTable ff_mpeg4_rl_intra; |
|
64 | 64 |
|
65 | 65 |
/* Note this is identical to the intra rvlc except that it is reordered. */ |
66 | 66 |
extern const uint16_t inter_rvlc[170][2]; |
... | ... |
@@ -872,8 +872,8 @@ static inline int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block, |
872 | 872 |
rl = &rvlc_rl_intra; |
873 | 873 |
rl_vlc = rvlc_rl_intra.rl_vlc[0]; |
874 | 874 |
}else{ |
875 |
- rl = &rl_intra; |
|
876 |
- rl_vlc = rl_intra.rl_vlc[0]; |
|
875 |
+ rl = &ff_mpeg4_rl_intra; |
|
876 |
+ rl_vlc = ff_mpeg4_rl_intra.rl_vlc[0]; |
|
877 | 877 |
} |
878 | 878 |
if (s->ac_pred) { |
879 | 879 |
if (dc_pred_dir == 0) |
... | ... |
@@ -2200,10 +2200,10 @@ static av_cold int decode_init(AVCodecContext *avctx) |
2200 | 2200 |
if (!done) { |
2201 | 2201 |
done = 1; |
2202 | 2202 |
|
2203 |
- init_rl(&rl_intra, ff_mpeg4_static_rl_table_store[0]); |
|
2203 |
+ init_rl(&ff_mpeg4_rl_intra, ff_mpeg4_static_rl_table_store[0]); |
|
2204 | 2204 |
init_rl(&rvlc_rl_inter, ff_mpeg4_static_rl_table_store[1]); |
2205 | 2205 |
init_rl(&rvlc_rl_intra, ff_mpeg4_static_rl_table_store[2]); |
2206 |
- INIT_VLC_RL(rl_intra, 554); |
|
2206 |
+ INIT_VLC_RL(ff_mpeg4_rl_intra, 554); |
|
2207 | 2207 |
INIT_VLC_RL(rvlc_rl_inter, 1072); |
2208 | 2208 |
INIT_VLC_RL(rvlc_rl_intra, 1072); |
2209 | 2209 |
INIT_VLC_STATIC(&dc_lum, DC_VLC_BITS, 10 /* 13 */, |
... | ... |
@@ -309,7 +309,7 @@ static inline void mpeg4_encode_block(MpegEncContext * s, DCTELEM * block, int n |
309 | 309 |
mpeg4_encode_dc(dc_pb, intra_dc, n); |
310 | 310 |
if(last_index<1) return; |
311 | 311 |
i = 1; |
312 |
- rl = &rl_intra; |
|
312 |
+ rl = &ff_mpeg4_rl_intra; |
|
313 | 313 |
bits_tab= uni_mpeg4_intra_rl_bits; |
314 | 314 |
len_tab = uni_mpeg4_intra_rl_len; |
315 | 315 |
} else { |
... | ... |
@@ -1252,9 +1252,9 @@ static av_cold int encode_init(AVCodecContext *avctx) |
1252 | 1252 |
|
1253 | 1253 |
init_uni_dc_tab(); |
1254 | 1254 |
|
1255 |
- init_rl(&rl_intra, ff_mpeg4_static_rl_table_store[0]); |
|
1255 |
+ init_rl(&ff_mpeg4_rl_intra, ff_mpeg4_static_rl_table_store[0]); |
|
1256 | 1256 |
|
1257 |
- init_uni_mpeg4_rl_tab(&rl_intra, uni_mpeg4_intra_rl_bits, uni_mpeg4_intra_rl_len); |
|
1257 |
+ init_uni_mpeg4_rl_tab(&ff_mpeg4_rl_intra, uni_mpeg4_intra_rl_bits, uni_mpeg4_intra_rl_len); |
|
1258 | 1258 |
init_uni_mpeg4_rl_tab(&rl_inter, uni_mpeg4_inter_rl_bits, uni_mpeg4_inter_rl_len); |
1259 | 1259 |
} |
1260 | 1260 |
|
... | ... |
@@ -596,9 +596,9 @@ extern const uint16_t inter_vlc[103][2]; |
596 | 596 |
extern const int8_t inter_level[102]; |
597 | 597 |
extern const int8_t inter_run[102]; |
598 | 598 |
|
599 |
-extern const uint16_t intra_vlc[103][2]; |
|
600 |
-extern const int8_t intra_level[102]; |
|
601 |
-extern const int8_t intra_run[102]; |
|
599 |
+extern const uint16_t ff_mpeg4_intra_vlc[103][2]; |
|
600 |
+extern const int8_t ff_mpeg4_intra_level[102]; |
|
601 |
+extern const int8_t ff_mpeg4_intra_run[102]; |
|
602 | 602 |
|
603 | 603 |
RLTable rl_table[NB_RL_TABLES] = { |
604 | 604 |
/* intra luminance tables */ |
... | ... |
@@ -622,9 +622,9 @@ RLTable rl_table[NB_RL_TABLES] = { |
622 | 622 |
{ |
623 | 623 |
102, |
624 | 624 |
67, |
625 |
- intra_vlc, |
|
626 |
- intra_run, |
|
627 |
- intra_level, |
|
625 |
+ ff_mpeg4_intra_vlc, |
|
626 |
+ ff_mpeg4_intra_run, |
|
627 |
+ ff_mpeg4_intra_level, |
|
628 | 628 |
}, |
629 | 629 |
/* intra chrominance / non intra tables */ |
630 | 630 |
/* low motion inter */ |