Mercurial > libavcodec.hg
diff vp6.c @ 5714:314be1cfdcb0 libavcodec
add a new vp6a codec (add alpha plan support to vp6)
author | aurel |
---|---|
date | Tue, 25 Sep 2007 19:12:46 +0000 |
parents | dae0f80edbb3 |
children | 51918cb97f6f |
line wrap: on
line diff
--- a/vp6.c Tue Sep 25 08:43:49 2007 +0000 +++ b/vp6.c Tue Sep 25 19:12:46 2007 +0000 @@ -494,7 +494,8 @@ { vp56_context_t *s = avctx->priv_data; - vp56_init(avctx, avctx->codec->id == CODEC_ID_VP6); + vp56_init(avctx, avctx->codec->id == CODEC_ID_VP6, + avctx->codec->id == CODEC_ID_VP6A); s->vp56_coord_div = vp6_coord_div; s->parse_vector_adjustment = vp6_parse_vector_adjustment; s->adjust = vp6_adjust; @@ -532,3 +533,16 @@ vp56_decode_frame, CODEC_CAP_DR1, }; + +/* flash version, not flipped upside-down, with alpha channel */ +AVCodec vp6a_decoder = { + "vp6a", + CODEC_TYPE_VIDEO, + CODEC_ID_VP6A, + sizeof(vp56_context_t), + vp6_decode_init, + NULL, + vp56_free, + vp56_decode_frame, + CODEC_CAP_DR1, +};