Mercurial > libavcodec.hg
comparison svq1.c @ 2008:fc54b7be8448 libavcodec
color and 10l
author | michael |
---|---|
date | Fri, 07 May 2004 21:10:52 +0000 |
parents | 5be94affdb14 |
children | ad1a92c2db48 |
comparison
equal
deleted
inserted
replaced
2007:5be94affdb14 | 2008:fc54b7be8448 |
---|---|
1651 | 1651 |
1652 svq1_write_header(s, p->pict_type); | 1652 svq1_write_header(s, p->pict_type); |
1653 svq1_encode_plane(s, s->picture.data[0], s->frame_width, s->frame_height, | 1653 svq1_encode_plane(s, s->picture.data[0], s->frame_width, s->frame_height, |
1654 s->picture.linesize[0]); | 1654 s->picture.linesize[0]); |
1655 // if (avctx->flags & CODEC_FLAG_GRAY) { | 1655 // if (avctx->flags & CODEC_FLAG_GRAY) { |
1656 if (1) { | 1656 if (avctx->pix_fmt != PIX_FMT_YUV410P) { |
1657 svq1_output_intra_constant_mean(s, s->c_block_width * 2, | 1657 svq1_output_intra_constant_mean(s, s->c_block_width * 2, |
1658 s->c_block_height * 2, 128); | 1658 s->c_block_height * 2, 128); |
1659 } else { | 1659 } else { |
1660 svq1_encode_plane(s, s->picture.data[1], s->frame_width / 4, | 1660 svq1_encode_plane(s, s->picture.data[1], s->frame_width / 4, |
1661 s->frame_height / 4, s->picture.linesize[1]); | 1661 s->frame_height / 4, s->picture.linesize[1]); |
1664 } | 1664 } |
1665 | 1665 |
1666 // align_put_bits(&s->pb); | 1666 // align_put_bits(&s->pb); |
1667 while(put_bits_count(&s->pb) & 31) | 1667 while(put_bits_count(&s->pb) & 31) |
1668 put_bits(&s->pb, 1, 0); | 1668 put_bits(&s->pb, 1, 0); |
1669 | |
1670 flush_put_bits(&s->pb); | |
1669 | 1671 |
1670 return (put_bits_count(&s->pb) / 8); | 1672 return (put_bits_count(&s->pb) / 8); |
1671 } | 1673 } |
1672 | 1674 |
1673 static int svq1_encode_end(AVCodecContext *avctx) | 1675 static int svq1_encode_end(AVCodecContext *avctx) |