comparison h264.c @ 8354:5e6f65181881 libavcodec

Move ENABLE_SMALL back to the per MB check, as otherwise gcc wont remove the code.
author michael
date Tue, 16 Dec 2008 20:43:39 +0000
parents add1a0d65370
children 179f8e1327ce
comparison
equal deleted inserted replaced
8353:add1a0d65370 8354:5e6f65181881
2608 2608
2609 static void hl_decode_mb(H264Context *h){ 2609 static void hl_decode_mb(H264Context *h){
2610 MpegEncContext * const s = &h->s; 2610 MpegEncContext * const s = &h->s;
2611 const int mb_xy= h->mb_xy; 2611 const int mb_xy= h->mb_xy;
2612 const int mb_type= s->current_picture.mb_type[mb_xy]; 2612 const int mb_type= s->current_picture.mb_type[mb_xy];
2613 int is_complex = h->is_complex || IS_INTRA_PCM(mb_type) || s->qscale == 0; 2613 int is_complex = ENABLE_SMALL || h->is_complex || IS_INTRA_PCM(mb_type) || s->qscale == 0;
2614 2614
2615 if(ENABLE_H264_ENCODER && !s->decode) 2615 if(ENABLE_H264_ENCODER && !s->decode)
2616 return; 2616 return;
2617 2617
2618 if (is_complex) 2618 if (is_complex)
6570 const int part_mask= s->partitioned_frame ? (AC_END|AC_ERROR) : 0x7F; 6570 const int part_mask= s->partitioned_frame ? (AC_END|AC_ERROR) : 0x7F;
6571 6571
6572 s->mb_skip_run= -1; 6572 s->mb_skip_run= -1;
6573 6573
6574 h->is_complex = FRAME_MBAFF || s->picture_structure != PICT_FRAME || s->codec_id != CODEC_ID_H264 || 6574 h->is_complex = FRAME_MBAFF || s->picture_structure != PICT_FRAME || s->codec_id != CODEC_ID_H264 ||
6575 (ENABLE_GRAY && (s->flags&CODEC_FLAG_GRAY)) || (ENABLE_H264_ENCODER && s->encoding) || ENABLE_SMALL; 6575 (ENABLE_GRAY && (s->flags&CODEC_FLAG_GRAY)) || (ENABLE_H264_ENCODER && s->encoding);
6576 6576
6577 if( h->pps.cabac ) { 6577 if( h->pps.cabac ) {
6578 int i; 6578 int i;
6579 6579
6580 /* realign */ 6580 /* realign */