[FFmpeg-devel] [WIP/RFC]012V decoder

compn tempn at twmi.rr.com
Tue Jul 10 22:56:03 CEST 2012


On Tue, 10 Jul 2012 20:57:45 +0200 (CEST), Carl Eugen Hoyos wrote:

>diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
>index c850963..a9bc279 100644
>--- a/libavcodec/avcodec.h
>+++ b/libavcodec/avcodec.h
>@@ -264,6 +264,7 @@ enum CodecID {
>     CODEC_ID_EXR        = MKBETAG('0','E','X','R'),
>     CODEC_ID_AVRP       = MKBETAG('A','V','R','P'),
> 
>+    CODEC_ID_012V       = MKBETAG('0','1','2','V'),
>     CODEC_ID_G2M        = MKBETAG( 0 ,'G','2','M'),
>     CODEC_ID_AVUI       = MKBETAG('A','V','U','I'),
>     CODEC_ID_AYUV       = MKBETAG('A','Y','U','V'),

you have to put new codecs at the bottom of this list for api reasons.
well , it used to before mkbetag...


>diff --git a/libavformat/riff.c b/libavformat/riff.c
>index fe8b49f..0d2f4bc 100644
>--- a/libavformat/riff.c
>+++ b/libavformat/riff.c
>@@ -310,6 +310,8 @@ const AVCodecTag ff_codec_bmp_tags[] = {
>     { CODEC_ID_EXR,          MKTAG('e', 'x', 'r', ' ') },
>     { CODEC_ID_MSS1,         MKTAG('M', 'S', 'S', '1') },
>     { CODEC_ID_MSA1,         MKTAG('M', 'S', 'A', '1') },
>+    { CODEC_ID_012V,         MKTAG('0', '1', '2', 'v') },
>+    { CODEC_ID_012V,         MKTAG('a', '1', '2', 'v') },
>     { CODEC_ID_NONE,         0 }

this list the order doesnt matter, and you can group codecs.

also my samples of course arent the best. it would be nice if we could
get some actual a12v and 012v samples from the wild.

-compn


More information about the ffmpeg-devel mailing list