comparison h264.c @ 8742:ecabe55b66bb libavcodec

Remove CONFIG_H264_ENCODER references
author mru
date Wed, 04 Feb 2009 21:28:58 +0000
parents 5d7ebbb7e91b
children 4f1567ce75c4
comparison
equal deleted inserted replaced
8741:0975a4c09974 8742:ecabe55b66bb
2677 MpegEncContext * const s = &h->s; 2677 MpegEncContext * const s = &h->s;
2678 const int mb_xy= h->mb_xy; 2678 const int mb_xy= h->mb_xy;
2679 const int mb_type= s->current_picture.mb_type[mb_xy]; 2679 const int mb_type= s->current_picture.mb_type[mb_xy];
2680 int is_complex = CONFIG_SMALL || h->is_complex || IS_INTRA_PCM(mb_type) || s->qscale == 0; 2680 int is_complex = CONFIG_SMALL || h->is_complex || IS_INTRA_PCM(mb_type) || s->qscale == 0;
2681 2681
2682 if(CONFIG_H264_ENCODER && !s->decode)
2683 return;
2684
2685 if (is_complex) 2682 if (is_complex)
2686 hl_decode_mb_complex(h); 2683 hl_decode_mb_complex(h);
2687 else hl_decode_mb_simple(h); 2684 else hl_decode_mb_simple(h);
2688 } 2685 }
2689 2686
6603 const int part_mask= s->partitioned_frame ? (AC_END|AC_ERROR) : 0x7F; 6600 const int part_mask= s->partitioned_frame ? (AC_END|AC_ERROR) : 0x7F;
6604 6601
6605 s->mb_skip_run= -1; 6602 s->mb_skip_run= -1;
6606 6603
6607 h->is_complex = FRAME_MBAFF || s->picture_structure != PICT_FRAME || s->codec_id != CODEC_ID_H264 || 6604 h->is_complex = FRAME_MBAFF || s->picture_structure != PICT_FRAME || s->codec_id != CODEC_ID_H264 ||
6608 (CONFIG_GRAY && (s->flags&CODEC_FLAG_GRAY)) || (CONFIG_H264_ENCODER && s->encoding); 6605 (CONFIG_GRAY && (s->flags&CODEC_FLAG_GRAY));
6609 6606
6610 if( h->pps.cabac ) { 6607 if( h->pps.cabac ) {
6611 int i; 6608 int i;
6612 6609
6613 /* realign */ 6610 /* realign */