58 #ifndef vp1394Grabber_h
59 #define vp1394Grabber_h
61 #include <visp/vpConfig.h>
63 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
65 #if defined(VISP_HAVE_DC1394_1)
69 #include <libraw1394/raw1394.h>
70 #include <libdc1394/dc1394_control.h>
72 #include <visp/vpImage.h>
73 #include <visp/vpFrameGrabber.h>
74 #include <visp/vpRGBa.h>
75 #include <visp/vpList.h>
137 } vp1394ImageFormatType;
144 static const char * strFormats[NUM_FORMATS];
145 static const char * strModesInFormat0[NUM_FORMAT0_MODES];
146 static const char * strModesInFormat1[NUM_FORMAT1_MODES];
147 static const char * strModesInFormat2[NUM_FORMAT2_MODES];
148 static const char * strModesInFormat6[NUM_FORMAT6_MODES];
149 static const char * strModesInFormat7[NUM_MODE_FORMAT7];
150 static const char * strColorsInFormat7[NUM_COLOR_FORMAT7];
151 static const char * strFramerates[NUM_FRAMERATES];
159 void setCamera(
unsigned int camera);
160 void getCamera(
unsigned int &camera);
162 void setFormat(
int format);
163 void getFormat(
int & format);
166 void setMode(
int mode);
167 void getMode(
int & mode);
168 int getModeSupported(
int format,
vpList<int> & modes);
170 void setFramerate(
int framerate);
171 void getFramerate(
int & framerate);
172 int getFramerateSupported(
int format,
int mode,
vpList<int> & framerates);
174 int convertFormat (std::string format);
175 int convertMode (std::string mode);
176 int convertFramerate(std::string framerate);
178 std::string convertFormat (
int format);
179 std::string convertMode (
int mode);
180 std::string convertFramerate(
int framerate);
182 void setShutter(
unsigned int shutter);
183 void getShutter(
unsigned int &min_shutter,
184 unsigned int &shutter,
185 unsigned int &max_shutter);
187 void setGain(
unsigned int gain);
188 void getGain(
unsigned int &min_gain,
190 unsigned int &max_gain);
198 void getWidth (
unsigned int &width);
200 void getNumCameras(
unsigned int &cameras);
208 void getImageCharacteristics(
int _format,
int _mode,
209 int &width,
int &height,
211 int* dmaCapture(
bool waiting =
true);
212 void dmaDoneWithBuffer();
214 void startIsoTransmission();
215 void stopIsoTransmission();
218 bool iso_transmission_started;
221 bool camera_nodes_allocated;
223 unsigned int num_cameras;
225 raw1394handle_t *handles;
226 dc1394_cameracapture *cameras;
227 nodeid_t *camera_nodes;
228 dc1394_miscinfo miscinfo;
232 char device_name[FILENAME_MAX];
Provide simple list management.
static const int MAX_PORTS
Class for firewire ieee1394 video devices using libdc1394-1.x api.
static const int DROP_FRAMES
virtual void open(vpImage< unsigned char > &I)=0
unsigned int getWidth() const
Return the number of columns in the image.
static const int MAX_CAMERAS
Base class for all video devices. It is designed to provide a front end to video sources.
virtual void acquire(vpImage< unsigned char > &I)=0
unsigned int getHeight() const
Return the number of rows in the image.
static const int NUM_BUFFERS