comparison h264.c @ 5783:4b5dc5ad7410 libavcodec

Edge emulation for fields. Part of PAFF implementation patch by Jeff Downs, heydowns a borg d com original thread: Subject: [FFmpeg-devel] [PATCH] Implement PAFF in H.264 Date: 18/09/07 20:30
author andoma
date Sat, 06 Oct 2007 15:47:02 +0000
parents 58647a83d416
children af2dab646def
comparison
equal deleted inserted replaced
5782:58647a83d416 5783:4b5dc5ad7410
4094 4094
4095 h0->last_slice_type = slice_type; 4095 h0->last_slice_type = slice_type;
4096 h->slice_num = ++h0->current_slice; 4096 h->slice_num = ++h0->current_slice;
4097 4097
4098 h->emu_edge_width= (s->flags&CODEC_FLAG_EMU_EDGE) ? 0 : 16; 4098 h->emu_edge_width= (s->flags&CODEC_FLAG_EMU_EDGE) ? 0 : 16;
4099 h->emu_edge_height= FRAME_MBAFF ? 0 : h->emu_edge_width; 4099 h->emu_edge_height= (FRAME_MBAFF || FIELD_PICTURE) ? 0 : h->emu_edge_width;
4100 4100
4101 if(s->avctx->debug&FF_DEBUG_PICT_INFO){ 4101 if(s->avctx->debug&FF_DEBUG_PICT_INFO){
4102 av_log(h->s.avctx, AV_LOG_DEBUG, "slice:%d %s mb:%d %c pps:%u frame:%d poc:%d/%d ref:%d/%d qp:%d loop:%d:%d:%d weight:%d%s\n", 4102 av_log(h->s.avctx, AV_LOG_DEBUG, "slice:%d %s mb:%d %c pps:%u frame:%d poc:%d/%d ref:%d/%d qp:%d loop:%d:%d:%d weight:%d%s\n",
4103 h->slice_num, 4103 h->slice_num,
4104 (s->picture_structure==PICT_FRAME ? "F" : s->picture_structure==PICT_TOP_FIELD ? "T" : "B"), 4104 (s->picture_structure==PICT_FRAME ? "F" : s->picture_structure==PICT_TOP_FIELD ? "T" : "B"),