question about VIDIOC_ENUM_FRAMESIZES
- From: Laurent Pinchart <laurent.pinchart (at) skynet.be>
- Date: Sun, 4 Feb 2007 15:36:29 +0100
Hi Luis,
> I've been developing a device capture software since a couple of years,
> under the v4l2 api specification.
> When I finished the first version of my
> software, I realised that a new version of v4l2 API specification was
> available, and so, I decided to take a look.
>
> I found my self in heaven when I discovered the new
> ioctls VIDIOC_ENUM_FRAMESIZES and VIDIOC_ENUM_FRAMEINTERVALS in api
> revision 0.16, and so i quickly included in my software.
>
> Then the problems knocked my door: trying to compile, but only errors.
> Taking a look into /usr/include/linux/videodev2.h I found that those
> ioctl's were missing, so compile errors are normal. Then I realised that
> drivers like uvc, include theyr own videodev2.h file in the source package
> of the driver, and that should mean that the kernel drivers aren't yet
> ready to handle that ioctl.
>
> So here is my question: Which version of the kernel will
> have drivers handling both ioctl's?
> I'm running on a gentoo linux with a kernel 2.6.18, in a Pentium4. Is my
> kernel the problem?
Those two new ioctls were introduced in kernel 2.6.19. The UVC driver defines
its own version for compatibility with older kernels.
AFAIK, the UVC driver is the only V4L2 driver implementing those ioctls. Other
drivers will hopefully follow. Feel free to send a patch for any driver you
are using :-)
Best regards,
Laurent Pinchart
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list