Anton Khirnov <[email protected]> writes:

> This WIP patch adds descriptors for codec ids, similar to what exists
> for pixel formats. They will allow us to export properties that are
> inherent to a codec, not its specific implementation. The users will
> also be able to access them even if no decoder or encoder is compiled
> in.
>
> E.g.:
>
> * name -- there is currently no way for the user to get a name of a
>   codec without referring to a specific en/decoder.  The point I'm not
>   decided about is whether we should have two separate fields for
>   name/long name or just one (equivalent to long name i suppose).

Having both could be useful for the same reasons we have both now.

> * type -- avcodec_get_type() is an ugly hack. This would allow to
>   implement it cleanly.
>
> * various other properties, like intra only or reordering for
>   video. I'm sure people will think of some other.

I like the idea.  Some other things to include:

- supported picture sizes
- supported frame rates
- supported pixel formats (maybe)
- supported audio channel layouts
- etc

[...]

> +    {
> +        .id    = AV_CODEC_ID_MPEG1VIDEO,
> +        .type  = AVMEDIA_TYPE_VIDEO,
> +        .name  = "MPEG1VIDEO",
> +    },

I see how you generated this list, so I assume you intend to fix the
name field eventually.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to