00001 #ifndef IMAGE_DC1394INPUT_H 00002 #define IMAGE_DC1394INPUT_H 00003 00004 #include "mimasconfig.h" 00005 00006 #ifdef HAVE_LIBDC1394 00007 #include <libraw1394/raw1394.h> 00008 #include <libdc1394/dc1394_control.h> 00009 #include "image_input.h" 00010 00011 namespace mimas { 00012 00031 template< typename T > 00032 class image_dc1394input: public image_input< T > 00033 { 00034 public: 00040 image_dc1394input( int _mode, 00041 int _framerate = FRAMERATE_15, 00042 int _node = 0, 00043 const char *_device = NULL, 00044 int _channel = 0, 00045 int _speed = SPEED_400 ) throw (mimasexception); 00047 virtual ~image_dc1394input(void); 00049 virtual void read( image<T> &img ) throw (mimasexception); 00051 dc1394_feature_info get_feature( int _id ) throw (mimasexception); 00053 void set_feature_value( int _id, unsigned int _value ) throw (mimasexception); 00055 unsigned int get_feature_value( int _id ) throw (mimasexception); 00056 protected: 00058 raw1394handle_t handle; 00060 dc1394_cameracapture camera; 00062 int mode; 00064 int node; 00065 }; 00066 00068 00070 00071 }; 00072 00073 #include "image_dc1394input.tcc" 00074 #endif 00075 00076 #endif