Re: [libdc] libdc1394 error: packet size is zero
Capture and control API for IIDC compliant cameras
Brought to you by:
ddouxchamps,
gordp
From: Rudolf L. <r.l...@x-...> - 2008-02-22 13:32:10
|
> This is remarkable! > I changed grab_partial_image such that set_roi was replaced by the > four functions you mention without any sleep in between. From that > moment on I never experienced any problem with this executable > anymore! How can this be if set_roi is simply a convenience function? > I changed it back and the errors appeared once more... > > When I performed this change in my own code, the bad initialization > problem also disappeared. Contrary to the grab_partial_image example, > however, I occasionally still encounter the problem that the camera > initializes just fine but returns a size of 0x0 or 0x2 pixels when > asked for its size with dc1394_format7_get_image_size. Could this come from different compile options for libdc1394 vs. your code ? If e.g. libdc1394 is optimized and your code isn't, the convenience function runs slightly faster - hence triggering the problem. I'd recommend since you've pretty much tracked down the root of your problems: put some usleeps in the set_roi function and see whether it makes a difference. |