|
|
libCAP: C++ FireWire Capture Library for Mac OS X
|
libCAP is a C++ library for Mac OS X that allows you to programatically capture images from a FireWire camera conforming to the IIDC standard. It is essentially a C++ port of FWCamAkiz by Adrian Daerr.
The library can be downloaded below:
The library consists of two classes: FWCamAkiz and CAP_FireWire. You should use the interfaces provided by CAP_FireWire in your program. The interfaces provided by CAP_FireWire are virtually identical to the Java FWCamAkiz interface.
Typing make from the command line will produce a capture test program which is a simple example of how to use libCAP. It capture 30 frames (1 second) of video and writes them out as a sequence of PGM images.
This library uses ThreadJack 1.3, which is included with this package. Note that ThreadJack is free for non-commerical use only. See the offical site of ThreadJack for more details.
The version of ThreadJack included with this package has been modified to compile on Mac OS X (more details).
The source code has been tested on Mac OS X 10.3.6 with a Unibrain Fire-i camera. It does not work with an Apple iSight currently.
I am currently considering doing a Cocoa/Objective-C port, which would get rid of the ThreadJack dependency. If you would like to see such a port, email me at eric.lee(at)mac.com and that will perhaps encourage me to work faster. =)
| The above software is being provided free of charge, and I fully intend to keep it this way. However, if you find it useful, please consider making a small donation to help support this work. |