v4l device -- fast capture
I'm trying to acquire images from my webcam in the fastest way possible. I would like to make a program to simply take one frame from the webcam and dump it to a file. There are similar projects around (vgrabbj is one I've been working with), but they are all very slow, taking up to 0.4 seconds to output an image (even when writing to /tmp).
I can use this webcam to stream video at ~20 frames per second, so surely there must be a faster way to get frames from the camera than this?
I don't know very much about video device programming (and I've found it difficult to find relevant documentation online). I've tried looking at the source code from a few different projects but it's so under-commented that I can't understand it at all.
Any help with this problem, useful documentation (I *think* I am looking for v4l) or pointers would be a HUGE help.