I'm sure this is no where near a good implementation.
But, I needed a way of starting a capture, then waiting
for the image in a polled fashion. This allows me to
write a non-blocking event-driven program without
having to resort to threads.
This patch creates a new set of functions:
It basically just splits up the existing