On Mon, 12 Feb 2007 12:20:31 -0800, Laurent Pinchart <[EMAIL PROTECTED]> wrote:
>> I Just joined this list with the intention of working on still image >> capture in linux-uvc. I'm working with a quickcam for notebooks >> pro, and I see someone was working on similar a few months >> back. Any word on how that went? You're probably referring to: https://lists.berlios.de/pipermail/linux-uvc-devel/2006-October/000841.html I've no idea what happened there, but feel free to ask the guy before you start coding yourself. >> Also, considering the v4l2 API does not really have an interface >> for single image still frame capture, I'm wondering if anyone >> has any thoughts on how best to handle that. My application >> requires capturing a single frame at a very specific time (not >> a regular interval). I am totally fine with bypassing the v4l >> layer and interfacing with the driver directly if need be, but I >> would like to do something with general utility to the most >> users, not just a hack that only I can use. > > V4L2 can start and stop video streaming at any time. All you have to do > is initialise the device (allocate buffers, set the video format, ...), > and > start streaming when you need an image. You can stop streaming right > after getting the data, and start again later when required by your > application. Laurent, I think Thad was talking about actual still image support (UVC standard, section 2.4.2.4), which can - if the camera supports it - provide better quality than the streaming modes. It would be great if you could actually implement that. We've had discussions about how best to do it before and didn't actually reach a conclusion. My personal favorite is this: dd if=/dev/video0 of=mystillpicture.jpg If that's in the spirit of V4L2 or not is probably subject to discussion and there are several other ways to do it, so if you want to have a go, we'll be happy to help. >> Perhaps I should join the v4l dev mailing list and see what their >> thoughts are. Your input is appreciated. From my experience the V4L mailing list is most helpful when you already have a more or less concrete suggestion and want people's opinions. Can't hurt after you've given it some thought. Cheers, Martin _______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
