Mercurial > libavcodec.hg
comparison msmpeg4.c @ 10816:9abebeca7d1b libavcodec
Rename DCtab_*, its a global variable and it helps understanding if mpeg4
is in its name.
author | michael |
---|---|
date | Fri, 08 Jan 2010 17:28:43 +0000 |
parents | 4605bd2fdb7f |
children | 514dc1c87b2e |
comparison
equal
deleted
inserted
replaced
10815:2b0c54f9f9c2 | 10816:9abebeca7d1b |
---|---|
96 l= (-level) ^ ((1 << size) - 1); | 96 l= (-level) ^ ((1 << size) - 1); |
97 else | 97 else |
98 l= level; | 98 l= level; |
99 | 99 |
100 /* luminance h263 */ | 100 /* luminance h263 */ |
101 uni_code= DCtab_lum[size][0]; | 101 uni_code= ff_mpeg4_DCtab_lum[size][0]; |
102 uni_len = DCtab_lum[size][1]; | 102 uni_len = ff_mpeg4_DCtab_lum[size][1]; |
103 uni_code ^= (1<<uni_len)-1; //M$ does not like compatibility | 103 uni_code ^= (1<<uni_len)-1; //M$ does not like compatibility |
104 | 104 |
105 if (size > 0) { | 105 if (size > 0) { |
106 uni_code<<=size; uni_code|=l; | 106 uni_code<<=size; uni_code|=l; |
107 uni_len+=size; | 107 uni_len+=size; |
112 } | 112 } |
113 v2_dc_lum_table[level+256][0]= uni_code; | 113 v2_dc_lum_table[level+256][0]= uni_code; |
114 v2_dc_lum_table[level+256][1]= uni_len; | 114 v2_dc_lum_table[level+256][1]= uni_len; |
115 | 115 |
116 /* chrominance h263 */ | 116 /* chrominance h263 */ |
117 uni_code= DCtab_chrom[size][0]; | 117 uni_code= ff_mpeg4_DCtab_chrom[size][0]; |
118 uni_len = DCtab_chrom[size][1]; | 118 uni_len = ff_mpeg4_DCtab_chrom[size][1]; |
119 uni_code ^= (1<<uni_len)-1; //M$ does not like compatibility | 119 uni_code ^= (1<<uni_len)-1; //M$ does not like compatibility |
120 | 120 |
121 if (size > 0) { | 121 if (size > 0) { |
122 uni_code<<=size; uni_code|=l; | 122 uni_code<<=size; uni_code|=l; |
123 uni_len+=size; | 123 uni_len+=size; |