Mercurial > libavcodec.hg
comparison h264.c @ 6785:e8bb31e67146 libavcodec
Remove newly unused variables.
author | astrange |
---|---|
date | Sun, 11 May 2008 19:22:28 +0000 |
parents | 2e43999e8ee6 |
children | 5ddf098691d3 |
comparison
equal
deleted
inserted
replaced
6784:2e43999e8ee6 | 6785:e8bb31e67146 |
---|---|
548 | 548 |
549 h->neighbor_transform_size= !!IS_8x8DCT(top_type) + !!IS_8x8DCT(left_type[0]); | 549 h->neighbor_transform_size= !!IS_8x8DCT(top_type) + !!IS_8x8DCT(left_type[0]); |
550 } | 550 } |
551 | 551 |
552 static inline void write_back_intra_pred_mode(H264Context *h){ | 552 static inline void write_back_intra_pred_mode(H264Context *h){ |
553 MpegEncContext * const s = &h->s; | |
554 const int mb_xy= h->mb_xy; | 553 const int mb_xy= h->mb_xy; |
555 | 554 |
556 h->intra4x4_pred_mode[mb_xy][0]= h->intra4x4_pred_mode_cache[7+8*1]; | 555 h->intra4x4_pred_mode[mb_xy][0]= h->intra4x4_pred_mode_cache[7+8*1]; |
557 h->intra4x4_pred_mode[mb_xy][1]= h->intra4x4_pred_mode_cache[7+8*2]; | 556 h->intra4x4_pred_mode[mb_xy][1]= h->intra4x4_pred_mode_cache[7+8*2]; |
558 h->intra4x4_pred_mode[mb_xy][2]= h->intra4x4_pred_mode_cache[7+8*3]; | 557 h->intra4x4_pred_mode[mb_xy][2]= h->intra4x4_pred_mode_cache[7+8*3]; |
644 if(min<0) return DC_PRED; | 643 if(min<0) return DC_PRED; |
645 else return min; | 644 else return min; |
646 } | 645 } |
647 | 646 |
648 static inline void write_back_non_zero_count(H264Context *h){ | 647 static inline void write_back_non_zero_count(H264Context *h){ |
649 MpegEncContext * const s = &h->s; | |
650 const int mb_xy= h->mb_xy; | 648 const int mb_xy= h->mb_xy; |
651 | 649 |
652 h->non_zero_count[mb_xy][0]= h->non_zero_count_cache[7+8*1]; | 650 h->non_zero_count[mb_xy][0]= h->non_zero_count_cache[7+8*1]; |
653 h->non_zero_count[mb_xy][1]= h->non_zero_count_cache[7+8*2]; | 651 h->non_zero_count[mb_xy][1]= h->non_zero_count_cache[7+8*2]; |
654 h->non_zero_count[mb_xy][2]= h->non_zero_count_cache[7+8*3]; | 652 h->non_zero_count[mb_xy][2]= h->non_zero_count_cache[7+8*3]; |
2724 hl_decode_mb_internal(h, 0); | 2722 hl_decode_mb_internal(h, 0); |
2725 } | 2723 } |
2726 | 2724 |
2727 static void hl_decode_mb(H264Context *h){ | 2725 static void hl_decode_mb(H264Context *h){ |
2728 MpegEncContext * const s = &h->s; | 2726 MpegEncContext * const s = &h->s; |
2729 const int mb_x= s->mb_x; | |
2730 const int mb_y= s->mb_y; | |
2731 const int mb_xy= h->mb_xy; | 2727 const int mb_xy= h->mb_xy; |
2732 const int mb_type= s->current_picture.mb_type[mb_xy]; | 2728 const int mb_type= s->current_picture.mb_type[mb_xy]; |
2733 int is_complex = FRAME_MBAFF || MB_FIELD || IS_INTRA_PCM(mb_type) || s->codec_id != CODEC_ID_H264 || (ENABLE_GRAY && (s->flags&CODEC_FLAG_GRAY)) || s->encoding; | 2729 int is_complex = FRAME_MBAFF || MB_FIELD || IS_INTRA_PCM(mb_type) || s->codec_id != CODEC_ID_H264 || (ENABLE_GRAY && (s->flags&CODEC_FLAG_GRAY)) || s->encoding; |
2734 | 2730 |
2735 if(!s->decode) | 2731 if(!s->decode) |
5372 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, | 5368 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, |
5373 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8 | 5369 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8 |
5374 }; | 5370 }; |
5375 | 5371 |
5376 static void decode_cabac_residual( H264Context *h, DCTELEM *block, int cat, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff) { | 5372 static void decode_cabac_residual( H264Context *h, DCTELEM *block, int cat, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff) { |
5377 const int mb_xy = h->mb_xy; | |
5378 static const int significant_coeff_flag_offset[2][6] = { | 5373 static const int significant_coeff_flag_offset[2][6] = { |
5379 { 105+0, 105+15, 105+29, 105+44, 105+47, 402 }, | 5374 { 105+0, 105+15, 105+29, 105+44, 105+47, 402 }, |
5380 { 277+0, 277+15, 277+29, 277+44, 277+47, 436 } | 5375 { 277+0, 277+15, 277+29, 277+44, 277+47, 436 } |
5381 }; | 5376 }; |
5382 static const int last_coeff_flag_offset[2][6] = { | 5377 static const int last_coeff_flag_offset[2][6] = { |