Mercurial > libavcodec.hg
comparison vc1.c @ 3523:7407a264d243 libavcodec
Set MpegEncContext->mspel flag (here it indicates that bicubic MC will be use)
author | kostya |
---|---|
date | Sat, 29 Jul 2006 03:11:14 +0000 |
parents | 5de1edac254e |
children | 3187e7ffe52d |
comparison
equal
deleted
inserted
replaced
3522:5de1edac254e | 3523:7407a264d243 |
---|---|
1472 v->s.quarter_sample = 0; | 1472 v->s.quarter_sample = 0; |
1473 else | 1473 else |
1474 v->s.quarter_sample = 1; | 1474 v->s.quarter_sample = 1; |
1475 } else | 1475 } else |
1476 v->s.quarter_sample = 1; | 1476 v->s.quarter_sample = 1; |
1477 v->s.mspel = !(v->mv_mode == MV_PMODE_1MV_HPEL_BILIN || (v->mv_mode == MV_PMODE_INTENSITY_COMP && v->mv_mode2 == MV_PMODE_1MV_HPEL_BILIN)); | |
1477 | 1478 |
1478 if ((v->mv_mode == MV_PMODE_INTENSITY_COMP && | 1479 if ((v->mv_mode == MV_PMODE_INTENSITY_COMP && |
1479 v->mv_mode2 == MV_PMODE_MIXED_MV) | 1480 v->mv_mode2 == MV_PMODE_MIXED_MV) |
1480 || v->mv_mode == MV_PMODE_MIXED_MV) | 1481 || v->mv_mode == MV_PMODE_MIXED_MV) |
1481 { | 1482 { |
1521 else v->tt_index = 2; | 1522 else v->tt_index = 2; |
1522 | 1523 |
1523 lowquant = (v->pq > 12) ? 0 : 1; | 1524 lowquant = (v->pq > 12) ? 0 : 1; |
1524 v->mv_mode = get_bits1(gb) ? MV_PMODE_1MV : MV_PMODE_1MV_HPEL_BILIN; | 1525 v->mv_mode = get_bits1(gb) ? MV_PMODE_1MV : MV_PMODE_1MV_HPEL_BILIN; |
1525 v->s.quarter_sample = (v->mv_mode == MV_PMODE_1MV); | 1526 v->s.quarter_sample = (v->mv_mode == MV_PMODE_1MV); |
1527 v->s.mspel = v->s.quarter_sample; | |
1526 | 1528 |
1527 status = bitplane_decoding(v->direct_mb_plane, &v->dmb_is_raw, v); | 1529 status = bitplane_decoding(v->direct_mb_plane, &v->dmb_is_raw, v); |
1528 if (status < 0) return -1; | 1530 if (status < 0) return -1; |
1529 av_log(v->s.avctx, AV_LOG_DEBUG, "MB Direct Type plane encoding: " | 1531 av_log(v->s.avctx, AV_LOG_DEBUG, "MB Direct Type plane encoding: " |
1530 "Imode: %i, Invert: %i\n", status>>1, status&1); | 1532 "Imode: %i, Invert: %i\n", status>>1, status&1); |