comparison wmv2.c @ 2474:81a9f883a17a libavcodec

In that patch: - avctx and gb elements were removed from VC9Context, hence a larger diff - some code was added to h263dec.c regarding CODEC_ID_WMV3 (should apply to CODEC_ID_VC9 too) - VLC tables and other related tables were made global whenever this seemed necessary; appropriate changes were therefore made to other parts of the code using those tables - the change for the bitplane management to a struct (some of them should eventually be mapped to MpegEncContext arrays) wasn't associated with the proper frees; should be fixed now patch by anonymous better names for globalized tables by me
author michael
date Sun, 30 Jan 2005 16:34:57 +0000
parents 4225c131a2eb
children e25782262d7d
comparison
equal deleted inserted replaced
2473:73afecc117a3 2474:81a9f883a17a
242 #endif 242 #endif
243 243
244 if (s->pict_type == I_TYPE) { 244 if (s->pict_type == I_TYPE) {
245 set_stat(ST_INTRA_MB); 245 set_stat(ST_INTRA_MB);
246 put_bits(&s->pb, 246 put_bits(&s->pb,
247 table_mb_intra[coded_cbp][1], table_mb_intra[coded_cbp][0]); 247 ff_msmp4_mb_i_table[coded_cbp][1], ff_msmp4_mb_i_table[coded_cbp][0]);
248 } else { 248 } else {
249 put_bits(&s->pb, 249 put_bits(&s->pb,
250 wmv2_inter_table[w->cbp_table_index][cbp][1], 250 wmv2_inter_table[w->cbp_table_index][cbp][1],
251 wmv2_inter_table[w->cbp_table_index][cbp][0]); 251 wmv2_inter_table[w->cbp_table_index][cbp][0]);
252 } 252 }
732 s->mb_intra = (~code & 0x40) >> 6; 732 s->mb_intra = (~code & 0x40) >> 6;
733 733
734 cbp = code & 0x3f; 734 cbp = code & 0x3f;
735 } else { 735 } else {
736 s->mb_intra = 1; 736 s->mb_intra = 1;
737 code = get_vlc2(&s->gb, mb_intra_vlc.table, MB_INTRA_VLC_BITS, 2); 737 code = get_vlc2(&s->gb, ff_msmp4_mb_i_vlc.table, MB_INTRA_VLC_BITS, 2);
738 if (code < 0){ 738 if (code < 0){
739 av_log(s->avctx, AV_LOG_ERROR, "II-cbp illegal at %d %d\n", s->mb_x, s->mb_y); 739 av_log(s->avctx, AV_LOG_ERROR, "II-cbp illegal at %d %d\n", s->mb_x, s->mb_y);
740 return -1; 740 return -1;
741 } 741 }
742 /* predict coded block pattern */ 742 /* predict coded block pattern */