Mercurial > libavcodec.hg
comparison mpegvideo.c @ 562:23e58889a108 libavcodec
exporting mbskip_table after it has been allocated
author | michaelni |
---|---|
date | Tue, 16 Jul 2002 11:45:14 +0000 |
parents | c1e1be461662 |
children | 44d744901ded |
comparison
equal
deleted
inserted
replaced
561:2d5ae7516af0 | 562:23e58889a108 |
---|---|
617 int i; | 617 int i; |
618 UINT8 *tmp; | 618 UINT8 *tmp; |
619 | 619 |
620 s->mb_skiped = 0; | 620 s->mb_skiped = 0; |
621 s->decoding_error=0; | 621 s->decoding_error=0; |
622 avctx->mbskip_table= s->mbskip_table; | |
622 | 623 |
623 if(avctx->flags&CODEC_FLAG_DR1){ | 624 if(avctx->flags&CODEC_FLAG_DR1){ |
624 int i; | 625 int i; |
625 avctx->get_buffer_callback(avctx, s->width, s->height, s->pict_type); | 626 avctx->get_buffer_callback(avctx, s->width, s->height, s->pict_type); |
626 | 627 |
627 s->linesize = avctx->dr_stride; | 628 s->linesize = avctx->dr_stride; |
628 s->uvlinesize= avctx->dr_uvstride; | 629 s->uvlinesize= avctx->dr_uvstride; |
629 s->ip_buffer_count= avctx->dr_ip_buffer_count; | 630 s->ip_buffer_count= avctx->dr_ip_buffer_count; |
630 } | 631 } |
632 avctx->dr_ip_buffer_count= s->ip_buffer_count; | |
631 | 633 |
632 if (s->pict_type == B_TYPE) { | 634 if (s->pict_type == B_TYPE) { |
633 for(i=0;i<3;i++) { | 635 for(i=0;i<3;i++) { |
634 if(avctx->flags&CODEC_FLAG_DR1) | 636 if(avctx->flags&CODEC_FLAG_DR1) |
635 s->aux_picture[i]= avctx->dr_buffer[i]; | 637 s->aux_picture[i]= avctx->dr_buffer[i]; |
1441 } else { | 1443 } else { |
1442 *mbskip_ptr = 0; /* not skipped */ | 1444 *mbskip_ptr = 0; /* not skipped */ |
1443 } | 1445 } |
1444 } | 1446 } |
1445 | 1447 |
1446 dest_y = s->current_picture[0] + (mb_y * 16 * s->linesize) + mb_x * 16; | 1448 dest_y = s->current_picture [0] + (mb_y * 16* s->linesize ) + mb_x * 16; |
1447 dest_cb = s->current_picture[1] + (mb_y * 8 * (s->uvlinesize)) + mb_x * 8; | 1449 dest_cb = s->current_picture[1] + (mb_y * 8 * s->uvlinesize) + mb_x * 8; |
1448 dest_cr = s->current_picture[2] + (mb_y * 8 * (s->uvlinesize)) + mb_x * 8; | 1450 dest_cr = s->current_picture[2] + (mb_y * 8 * s->uvlinesize) + mb_x * 8; |
1449 | 1451 |
1450 if (s->interlaced_dct) { | 1452 if (s->interlaced_dct) { |
1451 dct_linesize = s->linesize * 2; | 1453 dct_linesize = s->linesize * 2; |
1452 dct_offset = s->linesize; | 1454 dct_offset = s->linesize; |
1453 } else { | 1455 } else { |