comparison h264.c @ 6784:2e43999e8ee6 libavcodec

Use h->mb_xy directly in decode_cabac_residual().
author astrange
date Sun, 11 May 2008 19:18:39 +0000
parents df0893f4fd86
children e8bb31e67146
comparison
equal deleted inserted replaced
6783:df0893f4fd86 6784:2e43999e8ee6
5492 #endif 5492 #endif
5493 } 5493 }
5494 assert(coeff_count > 0); 5494 assert(coeff_count > 0);
5495 5495
5496 if( cat == 0 ) 5496 if( cat == 0 )
5497 h->cbp_table[mb_xy] |= 0x100; 5497 h->cbp_table[h->mb_xy] |= 0x100;
5498 else if( cat == 1 || cat == 2 ) 5498 else if( cat == 1 || cat == 2 )
5499 h->non_zero_count_cache[scan8[n]] = coeff_count; 5499 h->non_zero_count_cache[scan8[n]] = coeff_count;
5500 else if( cat == 3 ) 5500 else if( cat == 3 )
5501 h->cbp_table[mb_xy] |= 0x40 << n; 5501 h->cbp_table[h->mb_xy] |= 0x40 << n;
5502 else if( cat == 4 ) 5502 else if( cat == 4 )
5503 h->non_zero_count_cache[scan8[16+n]] = coeff_count; 5503 h->non_zero_count_cache[scan8[16+n]] = coeff_count;
5504 else { 5504 else {
5505 assert( cat == 5 ); 5505 assert( cat == 5 );
5506 fill_rectangle(&h->non_zero_count_cache[scan8[n]], 2, 2, 8, coeff_count, 1); 5506 fill_rectangle(&h->non_zero_count_cache[scan8[n]], 2, 2, 8, coeff_count, 1);