[FFmpeg-devel] [PATCH 5/8] lavd: add device capabilities API

Lukasz Marek lukasz.m.luki2 at gmail.com
Thu Apr 10 22:34:53 CEST 2014


On 10.04.2014 02:32, Don Moir wrote:
> Did you mean: by how or by now :)
>
> +typedef struct AVDeviceCapabilitiesQuery {
> +    const AVClass *class;
> +    AVFormatContext *device_context;
> +    enum AVCodecID codec;
> +    enum AVSampleFormat sample_format;
> +    enum AVPixelFormat pixel_format;
> +    int sample_rate;
> +    int channels;
> +    int64_t channel_layout;
> +    int window_width;
> +    int window_height;
> +    int frame_width;
> +    int frame_height;
> +    AVRational fps;
> +} AVDeviceCapabilitiesQuery;
>
> For a capture device and for each pixel format, width, and height, there
> can be a range of FPS values, like a min of a 1 FPS to max 60 FPS. Just
> varies for each device and format. So don't see how that fits into the
> AVDeviceCapabilitiesQuery structure as it stands.

You query this structure, not use to store all possible values. Read an 
example and doc, it is described.



More information about the ffmpeg-devel mailing list