v4l2 autodetect

Nicolas Dufresne nicolas.dufresne at collabora.com
Wed Jul 15 06:21:25 PDT 2015


Le mardi 14 juillet 2015 à 06:57 -0700, Leo.Fernando a écrit :
> can you please tell me how to set width,height,framerate through 
> regular
> way? may be that will work for me

If the question was from V4L2 API / Driver side. VIDIOC_S_FMT is a fail
safe function. Instead of failing, it should replace the invalid values
to match something valid (usually done by rounding middle in drivers).
VIDIOC_TRY_FMT should have the same effect as VIDIOC_S_FMT, except it
should not actually apply the change (and should work even if the
driver is busy). On fancier implementation, VIDIOC_ENUM_FMT,
VIDIOC_ENUM_FRAMESIZES and VIDIOC_ENUM_FRAMEINTERVALS will allow
complete enumeration of the color formats, frame sizes (width, height)
and frame interval (careful this is 1 / framerate).

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150715/60684e75/attachment.sig>


More information about the gstreamer-devel mailing list