Mercurial > libavcodec.hg
comparison mpeg12.c @ 556:762c67fd4078 libavcodec
uvlinesize
export has_b_frames
mb_skip with more than 2 ip buffers
author | michaelni |
---|---|
date | Mon, 15 Jul 2002 14:15:10 +0000 |
parents | 26971b5a271d |
children | 5690779adf16 |
comparison
equal
deleted
inserted
replaced
555:fe951e388d34 | 556:762c67fd4078 |
---|---|
1503 if (picture) { | 1503 if (picture) { |
1504 pict->data[0] = picture[0]; | 1504 pict->data[0] = picture[0]; |
1505 pict->data[1] = picture[1]; | 1505 pict->data[1] = picture[1]; |
1506 pict->data[2] = picture[2]; | 1506 pict->data[2] = picture[2]; |
1507 pict->linesize[0] = s->linesize; | 1507 pict->linesize[0] = s->linesize; |
1508 pict->linesize[1] = s->linesize / 2; | 1508 pict->linesize[1] = s->uvlinesize; |
1509 pict->linesize[2] = s->linesize / 2; | 1509 pict->linesize[2] = s->uvlinesize; |
1510 return 1; | 1510 return 1; |
1511 } else { | 1511 } else { |
1512 return 0; | 1512 return 0; |
1513 } | 1513 } |
1514 } else { | 1514 } else { |
1544 if (s1->mpeg_enc_ctx_allocated) { | 1544 if (s1->mpeg_enc_ctx_allocated) { |
1545 MPV_common_end(s); | 1545 MPV_common_end(s); |
1546 } | 1546 } |
1547 s->width = width; | 1547 s->width = width; |
1548 s->height = height; | 1548 s->height = height; |
1549 s->has_b_frames = 1; | 1549 avctx->has_b_frames= s->has_b_frames = 1; |
1550 s->avctx = avctx; | 1550 s->avctx = avctx; |
1551 avctx->width = width; | 1551 avctx->width = width; |
1552 avctx->height = height; | 1552 avctx->height = height; |
1553 if (s->frame_rate_index >= 9) { | 1553 if (s->frame_rate_index >= 9) { |
1554 /* at least give a valid frame rate (some old mpeg1 have this) */ | 1554 /* at least give a valid frame rate (some old mpeg1 have this) */ |
1640 if (s2->picture_number > 0) { | 1640 if (s2->picture_number > 0) { |
1641 picture->data[0] = s2->next_picture[0]; | 1641 picture->data[0] = s2->next_picture[0]; |
1642 picture->data[1] = s2->next_picture[1]; | 1642 picture->data[1] = s2->next_picture[1]; |
1643 picture->data[2] = s2->next_picture[2]; | 1643 picture->data[2] = s2->next_picture[2]; |
1644 picture->linesize[0] = s2->linesize; | 1644 picture->linesize[0] = s2->linesize; |
1645 picture->linesize[1] = s2->linesize / 2; | 1645 picture->linesize[1] = s2->uvlinesize; |
1646 picture->linesize[2] = s2->linesize / 2; | 1646 picture->linesize[2] = s2->uvlinesize; |
1647 *data_size = sizeof(AVPicture); | 1647 *data_size = sizeof(AVPicture); |
1648 } | 1648 } |
1649 return 0; | 1649 return 0; |
1650 } | 1650 } |
1651 | 1651 |