Re: [PATCHv2] media: vidioc-enum-fmt.rst: make the ENUM_FMT text clearer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Em Wed, 6 May 2020 13:40:52 +0200
Hans Verkuil <hverkuil-cisco@xxxxxxxxx> escreveu:

> +
> +2) ``V4L2_CAP_IO_MC`` is set (also known as an 'MC-centric' driver)
> +
> +   If the ``mbus_code`` field is zero, then all image formats
> +   shall be enumerated.
> +
> +   If the ``mbus_code`` field is initialized to a valid (non-zero)
> +   :ref:`media bus format code <v4l2-mbus-pixelcode>`, then drivers
> +   shall restrict enumeration to only the image formats that can produce
> +   (for video output devices) or be produced from (for video capture
> +   devices) that media bus code.

Patch looks ok, but I guess we need to add one more thing to have a
fully defined behavior. I mean:

What happens otherwise? E. g. if application uses a non-zero
value for mbus_code that it is not valid / or it is valid but
unsupported?

Should it return an empty list or an error code?

Thanks,
Mauro



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux