Re: [libdc] Changes to libdc1394 internals
Capture and control API for IIDC compliant cameras
Brought to you by:
ddouxchamps,
gordp
From: David M. <dcm@MIT.EDU> - 2007-11-21 18:02:34
|
On Wed, 2007-11-21 at 09:42 +0100, Rudolf Leitgeb wrote: > Most of us (especially newcomers) want: Set a few settings, take images > > As I can read here it will become increasingly complicated to do just > that, > because dc1394 wants to be so generic (which does have its merits, of > course > dc1394 should also support non trivial cases! ) I didn't mean to imply that it would get _more_ complicated. My point was that users who want more detailed control will be able to get it, but the simplest case will still be unchanged. Namely, to start capture, the commands would still be: dc1394_capture_setup (camera, num_buffers, DC1394_CAPTURE_FLAGS_DEFAULT); dc1394_video_set_transmission (camera, DC1394_ON); However, as you point out, that could be made even simpler. If by default, capture_setup() called video_set_transmission() automatically, you could start capturing in only one line. If you didn't want to automatically start transmission, there would be a flag you could supply to capture_setup(). What do folks think of that? The drawback is that it's slightly confusing for people who have gotten used to the old interface (although starting transmission twice is no big deal). The advantage is that for the common case, it would reduce the number of functions to learn slightly. -David |