Mercurial > libavcodec.hg
diff mpegvideo.c @ 1494:3ee63c12ea30 libavcodec
optionally try to encode each MB with MV=<0,0> and choose the one with better RD
author | michaelni |
---|---|
date | Thu, 02 Oct 2003 00:24:34 +0000 |
parents | 0355f2b3519a |
children | 37e16bd36d2c |
line wrap: on
line diff
--- a/mpegvideo.c Wed Oct 01 23:34:46 2003 +0000 +++ b/mpegvideo.c Thu Oct 02 00:24:34 2003 +0000 @@ -3676,6 +3676,15 @@ encode_mb_hq(s, &backup_s, &best_s, MB_TYPE_INTER, pb, pb2, tex_pb, &dmin, &next_block, s->mv[0][0][0], s->mv[0][0][1]); } + if(mb_type&MB_TYPE_SKIPED){ + s->mv_dir = MV_DIR_FORWARD; + s->mv_type = MV_TYPE_16X16; + s->mb_intra= 0; + s->mv[0][0][0] = 0; + s->mv[0][0][1] = 0; + encode_mb_hq(s, &backup_s, &best_s, MB_TYPE_SKIPED, pb, pb2, tex_pb, + &dmin, &next_block, s->mv[0][0][0], s->mv[0][0][1]); + } if(mb_type&MB_TYPE_INTER4V){ s->mv_dir = MV_DIR_FORWARD; s->mv_type = MV_TYPE_8X8;