Mercurial > libavcodec.hg
comparison wmv2.c @ 3454:de0ed6497a13 libavcodec
remove STATS code (probably hasnt been used for years ..., and its not completely clear what it was good for anyway)
author | michael |
---|---|
date | Sun, 09 Jul 2006 10:33:49 +0000 |
parents | 072dbc669253 |
children | 0082fb8c77b6 |
comparison
equal
deleted
inserted
replaced
3453:e3f5377bddb2 | 3454:de0ed6497a13 |
---|---|
205 | 205 |
206 handle_slices(s); | 206 handle_slices(s); |
207 | 207 |
208 if (!s->mb_intra) { | 208 if (!s->mb_intra) { |
209 /* compute cbp */ | 209 /* compute cbp */ |
210 set_stat(ST_INTER_MB); | |
211 cbp = 0; | 210 cbp = 0; |
212 for (i = 0; i < 6; i++) { | 211 for (i = 0; i < 6; i++) { |
213 if (s->block_last_index[i] >= 0) | 212 if (s->block_last_index[i] >= 0) |
214 cbp |= 1 << (5 - i); | 213 cbp |= 1 << (5 - i); |
215 } | 214 } |
242 if (coded_cbp) | 241 if (coded_cbp) |
243 printf("cbp=%x %x\n", cbp, coded_cbp); | 242 printf("cbp=%x %x\n", cbp, coded_cbp); |
244 #endif | 243 #endif |
245 | 244 |
246 if (s->pict_type == I_TYPE) { | 245 if (s->pict_type == I_TYPE) { |
247 set_stat(ST_INTRA_MB); | |
248 put_bits(&s->pb, | 246 put_bits(&s->pb, |
249 ff_msmp4_mb_i_table[coded_cbp][1], ff_msmp4_mb_i_table[coded_cbp][0]); | 247 ff_msmp4_mb_i_table[coded_cbp][1], ff_msmp4_mb_i_table[coded_cbp][0]); |
250 } else { | 248 } else { |
251 put_bits(&s->pb, | 249 put_bits(&s->pb, |
252 wmv2_inter_table[w->cbp_table_index][cbp][1], | 250 wmv2_inter_table[w->cbp_table_index][cbp][1], |
253 wmv2_inter_table[w->cbp_table_index][cbp][0]); | 251 wmv2_inter_table[w->cbp_table_index][cbp][0]); |
254 } | 252 } |
255 set_stat(ST_INTRA_MB); | |
256 put_bits(&s->pb, 1, 0); /* no AC prediction yet */ | 253 put_bits(&s->pb, 1, 0); /* no AC prediction yet */ |
257 if(s->inter_intra_pred){ | 254 if(s->inter_intra_pred){ |
258 s->h263_aic_dir=0; | 255 s->h263_aic_dir=0; |
259 put_bits(&s->pb, table_inter_intra[s->h263_aic_dir][1], table_inter_intra[s->h263_aic_dir][0]); | 256 put_bits(&s->pb, table_inter_intra[s->h263_aic_dir][1], table_inter_intra[s->h263_aic_dir][0]); |
260 } | 257 } |