Mercurial > libavcodec.hg
comparison mpegvideo.c @ 717:6cba3b6196f0 libavcodec
optimization
author | michaelni |
---|---|
date | Wed, 02 Oct 2002 17:07:39 +0000 |
parents | dcbcf9676c9f |
children | 71f669e9f633 |
comparison
equal
deleted
inserted
replaced
716:2ec5bd9f7116 | 717:6cba3b6196f0 |
---|---|
1682 } else { | 1682 } else { |
1683 *mbskip_ptr = 0; /* not skipped */ | 1683 *mbskip_ptr = 0; /* not skipped */ |
1684 } | 1684 } |
1685 } | 1685 } |
1686 | 1686 |
1687 dest_y = s->current_picture [0] + (mb_y * 16* s->linesize ) + mb_x * 16; | 1687 if(s->pict_type==B_TYPE && s->avctx->draw_horiz_band){ |
1688 dest_cb = s->current_picture[1] + (mb_y * 8 * s->uvlinesize) + mb_x * 8; | 1688 dest_y = s->current_picture [0] + mb_x * 16; |
1689 dest_cr = s->current_picture[2] + (mb_y * 8 * s->uvlinesize) + mb_x * 8; | 1689 dest_cb = s->current_picture[1] + mb_x * 8; |
1690 dest_cr = s->current_picture[2] + mb_x * 8; | |
1691 }else{ | |
1692 dest_y = s->current_picture [0] + (mb_y * 16* s->linesize ) + mb_x * 16; | |
1693 dest_cb = s->current_picture[1] + (mb_y * 8 * s->uvlinesize) + mb_x * 8; | |
1694 dest_cr = s->current_picture[2] + (mb_y * 8 * s->uvlinesize) + mb_x * 8; | |
1695 } | |
1690 | 1696 |
1691 if (s->interlaced_dct) { | 1697 if (s->interlaced_dct) { |
1692 dct_linesize = s->linesize * 2; | 1698 dct_linesize = s->linesize * 2; |
1693 dct_offset = s->linesize; | 1699 dct_offset = s->linesize; |
1694 } else { | 1700 } else { |