I am using a EOS 5D and libgphoto 2.4.2 for capturing RAWs to internal flash storage.
I am trying to shoot multiple images as fast as possible in succession, like:
for( ... )
retval = gp_camera_capture( camera, GP_CAPTURE_IMAGE, &location, context );
The action happens in camlibs/canon/usb.c around line 1105.
Right now, after shutter release has succeeded, we enter an interrupt pipe polling loop that terminates only when writing the RAW file to flash has finished, which takes some seconds. The next gp_camera_capture call can't happen before the previous one returns. I discovered that I can insert a "goto EXIT;" just before the polling loop (while (buf2[4] != 0xf ) ...). This works because the interrupt pipe is emptied before each capture (just to be safe, I guess). Also, I have commented out the code that determines the filename of the new image file.
This does just what I want. We check for the success code of the shutter release so we know if that went ok, but skip all the rest. Very ugly, though.
Question:
Is there a better way of achieving the same thing? Maybe telling the camera not to send all those status messages, thumbnail sizes etc in the first place? Any pointers would be very much appreciated.
Thank you,
Stefan.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@...
https://lists.sourceforge.net/lists/listinfo/gphoto-devel