Re: v4l2 api: supported resolution negotiation

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

 



On Sun, Oct 04, 2015 at 12:23:08PM +0300, Matwey V. Kornilov wrote:
> Hello,
> 
> I learned from V2L2 API how to detect all supported formats using
> VIDIOC_ENUM_FMT.
> When I perform VIDIOC_S_FMT I don't know how to fill fmt.pix.width and
> fmt.pix.height, since I know only format.
> How should I negotiate device resolution? Could you point me?

VIDIOC_ENUM_FRAMESIZES may give you hints, but it's optional. You can use
values you prefer to try if drivers support them; I think the GStreamer
v4lsrc tries very small and very large values. The driver will clamp them to
a supported values which are passed to the application from the IOCTL.

<URL:http://hverkuil.home.xs4all.nl/spec/media.html#vidioc-enum-framesizes>

-- 
Regards,

Sakari Ailus
e-mail: sakari.ailus@xxxxxx	XMPP: sailus@xxxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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