Mercurial > libavcodec.hg
comparison vp3.c @ 9626:bd3e11b60ccd libavcodec
Add a chroma_sample_location field to define positioning of chroma samples
| author | conrad |
|---|---|
| date | Mon, 11 May 2009 04:34:23 +0000 |
| parents | 483ba97736f8 |
| children | f1dc62781766 |
comparison
equal
deleted
inserted
replaced
| 9625:7c4ab94a82d8 | 9626:bd3e11b60ccd |
|---|---|
| 1637 | 1637 |
| 1638 s->avctx = avctx; | 1638 s->avctx = avctx; |
| 1639 s->width = (avctx->width + 15) & 0xFFFFFFF0; | 1639 s->width = (avctx->width + 15) & 0xFFFFFFF0; |
| 1640 s->height = (avctx->height + 15) & 0xFFFFFFF0; | 1640 s->height = (avctx->height + 15) & 0xFFFFFFF0; |
| 1641 avctx->pix_fmt = PIX_FMT_YUV420P; | 1641 avctx->pix_fmt = PIX_FMT_YUV420P; |
| 1642 avctx->chroma_sample_location = AVCHROMA_LOC_CENTER; | |
| 1642 if(avctx->idct_algo==FF_IDCT_AUTO) | 1643 if(avctx->idct_algo==FF_IDCT_AUTO) |
| 1643 avctx->idct_algo=FF_IDCT_VP3; | 1644 avctx->idct_algo=FF_IDCT_VP3; |
| 1644 dsputil_init(&s->dsp, avctx); | 1645 dsputil_init(&s->dsp, avctx); |
| 1645 | 1646 |
| 1646 ff_init_scantable(s->dsp.idct_permutation, &s->scantable, ff_zigzag_direct); | 1647 ff_init_scantable(s->dsp.idct_permutation, &s->scantable, ff_zigzag_direct); |
