[FFmpeg-devel] [PATCH 1/3] lavc: add codec ID and description for SVG

Rostislav Pehlivanov atomnuker at gmail.com
Tue May 16 13:44:20 EEST 2017


On 8 May 2017 at 05:46, Rostislav Pehlivanov <atomnuker at gmail.com> wrote:

> Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
> ---
>  libavcodec/avcodec.h    | 1 +
>  libavcodec/codec_desc.c | 8 ++++++++
>  2 files changed, 9 insertions(+)
>
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index 35df4f6ced..4bbe5179b4 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -445,6 +445,7 @@ enum AVCodecID {
>      AV_CODEC_ID_BITPACKED,
>      AV_CODEC_ID_MSCC,
>      AV_CODEC_ID_SRGC,
> +    AV_CODEC_ID_SVG,
>
>      /* various PCM "codecs" */
>      AV_CODEC_ID_FIRST_AUDIO = 0x10000,     ///< A dummy id pointing at
> the start of audio codecs
> diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c
> index 2d28f840af..8fb157cc5f 100644
> --- a/libavcodec/codec_desc.c
> +++ b/libavcodec/codec_desc.c
> @@ -170,6 +170,14 @@ static const AVCodecDescriptor codec_descriptors[] = {
>          .props     = AV_CODEC_PROP_LOSSY,
>      },
>      {
> +        .id        = AV_CODEC_ID_SVG,
> +        .type      = AVMEDIA_TYPE_VIDEO,
> +        .name      = "svq",
> +        .long_name = NULL_IF_CONFIG_SMALL("Scalable Vector Graphics"),
> +        .props     = AV_CODEC_PROP_LOSSLESS,
> +        .mime_types= MT("image/svg+xml"),
> +    },
> +    {
>          .id        = AV_CODEC_ID_SVQ1,
>          .type      = AVMEDIA_TYPE_VIDEO,
>          .name      = "svq1",
> --
> 2.13.0.rc1.294.g07d810a77f
>
>
Pushed


More information about the ffmpeg-devel mailing list