From: David Moore <dcm@MIT.EDU> - 2007-02-20 04:26:44
I have added a new function to libdc1394:
dc1394error_t dc1394_read_cycle_timer (dc1394camera_t * camera,
uint32_t * cycle_timer, uint64_t * local_time);
Its purpose is to get simultaneously the current value of the IEEE-1394
cycle timer and the system clock. This is useful if your camera has a
vendor-specific function that timestamps images with the IEEE-1394 cycle
time. This way, you can correlate that timestamp to the real clock.
This works on both Mac OS X and Linux.
There has been a recent patch to raw1394 that would allow this function
to be made even more accurate. However, my patch to libdc1394 does not
yet make use of that functionality, because that would force everyone to
upgrade to the SVN version of libraw1394 immediately, which would be
irritating. Instead, I will wait for the next version of libraw1394 to
be released, and then incorporate the change into libdc1394.
Let me know if you have any comments.