Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
1493:ad7e62df9962 | 1494:3ee63c12ea30 |
---|---|
3674 s->mv[0][0][0] = s->p_mv_table[xy][0]; | 3674 s->mv[0][0][0] = s->p_mv_table[xy][0]; |
3675 s->mv[0][0][1] = s->p_mv_table[xy][1]; | 3675 s->mv[0][0][1] = s->p_mv_table[xy][1]; |
3676 encode_mb_hq(s, &backup_s, &best_s, MB_TYPE_INTER, pb, pb2, tex_pb, | 3676 encode_mb_hq(s, &backup_s, &best_s, MB_TYPE_INTER, pb, pb2, tex_pb, |
3677 &dmin, &next_block, s->mv[0][0][0], s->mv[0][0][1]); | 3677 &dmin, &next_block, s->mv[0][0][0], s->mv[0][0][1]); |
3678 } | 3678 } |
3679 if(mb_type&MB_TYPE_SKIPED){ | |
3680 s->mv_dir = MV_DIR_FORWARD; | |
3681 s->mv_type = MV_TYPE_16X16; | |
3682 s->mb_intra= 0; | |
3683 s->mv[0][0][0] = 0; | |
3684 s->mv[0][0][1] = 0; | |
3685 encode_mb_hq(s, &backup_s, &best_s, MB_TYPE_SKIPED, pb, pb2, tex_pb, | |
3686 &dmin, &next_block, s->mv[0][0][0], s->mv[0][0][1]); | |
3687 } | |
3679 if(mb_type&MB_TYPE_INTER4V){ | 3688 if(mb_type&MB_TYPE_INTER4V){ |
3680 s->mv_dir = MV_DIR_FORWARD; | 3689 s->mv_dir = MV_DIR_FORWARD; |
3681 s->mv_type = MV_TYPE_8X8; | 3690 s->mv_type = MV_TYPE_8X8; |
3682 s->mb_intra= 0; | 3691 s->mb_intra= 0; |
3683 for(i=0; i<4; i++){ | 3692 for(i=0; i<4; i++){ |