Robotics Library  0.6.2
Dc1394Camera.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2009, Markus Rickert
3 // All rights reserved.
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are met:
7 //
8 // * Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright notice,
11 // this list of conditions and the following disclaimer in the documentation
12 // and/or other materials provided with the distribution.
13 //
14 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
18 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24 // POSSIBILITY OF SUCH DAMAGE.
25 //
26 
27 #ifndef _RL_HAL_DC1394CAMERA_H_
28 #define _RL_HAL_DC1394CAMERA_H_
29 
30 #include <string>
31 
32 #if (LIBDC1394_VERSION_MAJOR > 10)
33 #include <dc1394/dc1394.h>
34 #else
35 #include <libdc1394/dc1394_control.h>
36 #include <libraw1394/raw1394.h>
37 #endif
38 
39 #include "Camera.h"
40 
41 namespace rl
42 {
43  namespace hal
44  {
45  class Dc1394Camera : public Camera
46  {
47  public:
49  {
50 #if (LIBDC1394_VERSION_MAJOR > 10)
51  COLOR_CODING_MONO8 = ::DC1394_COLOR_CODING_MONO8,
52 #else
53  COLOR_CODING_MONO8 = ::COLOR_FORMAT7_MONO8,
54 #endif
65  };
66 
67  enum Feature
68  {
69 #if (LIBDC1394_VERSION_MAJOR > 10)
70  FEATURE_BRIGHTNESS = ::DC1394_FEATURE_BRIGHTNESS,
71 #else
73 #endif
95  };
96 
98  {
99 #if (LIBDC1394_VERSION_MAJOR > 10)
100  FEATURE_MODE_MANUAL = ::DC1394_FEATURE_MODE_MANUAL,
101 #else
103 #endif
106  };
107 
109  {
110 #if (LIBDC1394_VERSION_MAJOR > 10)
111  FRAMERATE_1_875 = ::DC1394_FRAMERATE_1_875,
112 #else
114 #endif
122  };
123 
124  enum IsoSpeed
125  {
126 #if (LIBDC1394_VERSION_MAJOR > 10)
127  ISO_SPEED_100 = ::DC1394_ISO_SPEED_100,
128 #else
129  ISO_SPEED_100 = ::SPEED_100,
130 #endif
136  };
137 
139  {
140 #if (LIBDC1394_VERSION_MAJOR > 10)
141  OPERATION_MODE_LEGACY = ::DC1394_OPERATION_MODE_LEGACY,
142 #else
144 #endif
146  };
147 
149  {
150 #if (LIBDC1394_VERSION_MAJOR > 10)
151  VIDEO_MODE_160x120_YUV444 = ::DC1394_VIDEO_MODE_160x120_YUV444,
152 #else
153  VIDEO_MODE_160x120_YUV444 = ::MODE_160x120_YUV444,
154 #endif
161 #if (LIBDC1394_VERSION_MAJOR > 10)
163 #else
164  VIDEO_MODE_800x600_YUV422 = ::MODE_800x600_YUV422,
165 #endif
173 #if (LIBDC1394_VERSION_MAJOR > 10)
175 #else
176  VIDEO_MODE_1280x960_YUV422 = ::MODE_1280x960_YUV422,
177 #endif
185 #if (LIBDC1394_VERSION_MAJOR > 10)
187 #else
188  VIDEO_MODE_EXIF = ::MODE_EXIF,
189 #endif
190 #if (LIBDC1394_VERSION_MAJOR > 10)
192 #else
193  VIDEO_MODE_FORMAT7_0 = ::MODE_FORMAT7_0,
194 #endif
202  };
203 
204  Dc1394Camera(const ::std::string& filename = "", const unsigned int& node = 0);
205 
206  virtual ~Dc1394Camera();
207 
208  void close();
209 
210  unsigned int getBitsPerPixel() const;
211 
212  unsigned int getColorCodingDepth() const;
213 
214  unsigned int getHeight() const;
215 
216  bool getFeatureAbsoluteControl(const Feature& feature) const;
217 
218  void getFeatureBoundaries(const Feature& feature, unsigned int& min, unsigned int& max) const;
219 
220  void getFeatureBoundariesAbsolute(const Feature& feature, float& min, float& max) const;
221 
222  FeatureMode getFeatureMode(const Feature& feature) const;
223 
224  void getFeatureModes(const Feature& feature, bool& hasManual, bool& hasAuto, bool& hasOnePushAuto) const;
225 
226  unsigned int getFeatureValue(const Feature& feature) const;
227 
228  float getFeatureValueAbsolute(const Feature& feature) const;
229 
230  ::std::string getFilename() const;
231 
232  void getFormat7(VideoMode& videoMode, ColorCoding& colorCoding, unsigned int& left, unsigned int& top, unsigned int& width, unsigned int& height) const;
233 
234  void getFormat7MaximumImageSize(const unsigned int& mode, unsigned int& width, unsigned& height) const;
235 
236  Framerate getFramerate() const;
237 
238  unsigned int getNode() const;
239 
240  int getNumCameras() const;
241 
243 
244  unsigned int getPort() const;
245 
246  unsigned int getSize() const;
247 
248  IsoSpeed getSpeed() const;
249 
250  VideoMode getVideoMode() const;
251 
252  unsigned int getWidth() const;
253 
254  void grab(unsigned char* image);
255 
256  bool hasFeatureAbsoluteControl(const Feature& feature) const;
257 
258  bool isFeatureEnabled(const Feature& feature) const;
259 
260  bool isFeaturePresent(const Feature& feature) const;
261 
262  bool isFeatureReadable(const Feature& feature) const;
263 
264  bool isFeatureSwitchable(const Feature& feature) const;
265 
266  void open();
267 
268  void reset();
269 
270  void setFeatureAbsoluteControl(const Feature& feature, const bool& doOn);
271 
272  void setFeatureEnabled(const Feature& feature, const bool& doOn);
273 
274  void setFeatureMode(const Feature& feature, const FeatureMode& mode);
275 
276  void setFeatureValue(const Feature& feature, const unsigned int& value);
277 
278  void setFeatureValueAbsolute(const Feature& feature, const float& value);
279 
280  void setFilename(const ::std::string& filename);
281 
282  void setFormat7(const VideoMode& videoMode, const ColorCoding& colorCoding, const unsigned int& left, const unsigned int& top, const unsigned int& width, const unsigned int& height);
283 
284  void setFramerate(const Framerate& framerate);
285 
286  void setNode(const unsigned int& node);
287 
288  void setOperationMode(const OperationMode& mode);
289 
290  void setPort(const unsigned int& port);
291 
292  void setSpeed(const IsoSpeed& speed);
293 
294  void setVideoMode(const VideoMode& mode);
295 
296  void start();
297 
298  void step();
299 
300  void stop();
301 
302  protected:
303 
304  private:
305 #if (LIBDC1394_VERSION_MAJOR > 10)
306  unsigned int buffer;
307 
308  dc1394camera_t* camera;
309 
310  int cameras;
311 
313 
314  dc1394_t* dc1394;
315 
316  ::std::string filename;
317 
318  dc1394video_frame_t* frame;
319 
321 
322  unsigned int height;
323 
324  unsigned int left;
325 
326  unsigned int node;
327 
328  unsigned int speed;
329 
330  unsigned int top;
331 
333 
334  unsigned int width;
335 #else
336  unsigned int buffer;
337 
338  dc1394_cameracapture camera;
339 
340  int cameras;
341 
342  unsigned int channel;
343 
345 
346  unsigned int drop;
347 
348  ::std::string filename;
349 
351 
352  raw1394handle_t handle;
353 
354  unsigned int height;
355 
356  dc1394_camerainfo info;
357 
358  unsigned int left;
359 
360  unsigned int node;
361 
362  nodeid_t* nodes;
363 
364  unsigned int port;
365 
366  unsigned int speed;
367 
368  unsigned int top;
369 
371 
372  unsigned int width;
373 #endif
374  };
375  }
376 }
377 
378 #endif // _RL_HAL_DC1394CAMERA_H_
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_6
@ VIDEO_MODE_FORMAT7_6
Definition: Dc1394Camera.h:200
rl::hal::Dc1394Camera::ColorCoding
ColorCoding
Definition: Dc1394Camera.h:49
rl::hal::Dc1394Camera::FEATURE_CAPTURE_SIZE
@ FEATURE_CAPTURE_SIZE
Definition: Dc1394Camera.h:93
rl::hal::Dc1394Camera::open
void open()
Definition: Dc1394Camera.cpp:789
rl::hal::Dc1394Camera::VIDEO_MODE_1600x1200_YUV422
@ VIDEO_MODE_1600x1200_YUV422
Definition: Dc1394Camera.h:180
rl::hal::Dc1394Camera::getPort
unsigned int getPort() const
rl::hal::Dc1394Camera::VIDEO_MODE_800x600_MONO16
@ VIDEO_MODE_800x600_MONO16
Definition: Dc1394Camera.h:171
rl::hal::Dc1394Camera::FEATURE_WHITE_BALANCE
@ FEATURE_WHITE_BALANCE
Definition: Dc1394Camera.h:76
rl::hal::Dc1394Camera::node
unsigned int node
Definition: Dc1394Camera.h:360
rl::hal::Dc1394Camera::COLOR_CODING_RAW16
@ COLOR_CODING_RAW16
Definition: Dc1394Camera.h:64
rl::hal::Dc1394Camera::COLOR_CODING_RAW8
@ COLOR_CODING_RAW8
Definition: Dc1394Camera.h:63
rl::hal::Dc1394Camera::COLOR_CODING_RGB8
@ COLOR_CODING_RGB8
Definition: Dc1394Camera.h:58
rl::hal::Dc1394Camera::FEATURE_SHARPNESS
@ FEATURE_SHARPNESS
Definition: Dc1394Camera.h:75
rl::hal::Dc1394Camera::close
void close()
Definition: Dc1394Camera.cpp:101
rl::hal::Dc1394Camera::VIDEO_MODE_640x480_MONO16
@ VIDEO_MODE_640x480_MONO16
Definition: Dc1394Camera.h:160
rl::hal::Dc1394Camera::stop
void stop()
Definition: Dc1394Camera.cpp:1211
rl::hal::Dc1394Camera::getFeatureBoundaries
void getFeatureBoundaries(const Feature &feature, unsigned int &min, unsigned int &max) const
Definition: Dc1394Camera.cpp:309
rl::hal::Dc1394Camera::info
dc1394_camerainfo info
Definition: Dc1394Camera.h:356
rl::hal::Dc1394Camera::FEATURE_HUE
@ FEATURE_HUE
Definition: Dc1394Camera.h:77
rl::hal::Dc1394Camera::FEATURE_TILT
@ FEATURE_TILT
Definition: Dc1394Camera.h:91
rl::hal::Dc1394Camera::VIDEO_MODE_1600x1200_MONO16
@ VIDEO_MODE_1600x1200_MONO16
Definition: Dc1394Camera.h:184
rl::hal::Dc1394Camera::getFormat7
void getFormat7(VideoMode &videoMode, ColorCoding &colorCoding, unsigned int &left, unsigned int &top, unsigned int &width, unsigned int &height) const
Definition: Dc1394Camera.cpp:498
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_2
@ VIDEO_MODE_FORMAT7_2
Definition: Dc1394Camera.h:196
rl::hal::Dc1394Camera::FEATURE_TEMPERATURE
@ FEATURE_TEMPERATURE
Definition: Dc1394Camera.h:84
rl::hal::Dc1394Camera::ISO_SPEED_1600
@ ISO_SPEED_1600
Definition: Dc1394Camera.h:134
rl::hal::Dc1394Camera::FRAMERATE_1_875
@ FRAMERATE_1_875
Definition: Dc1394Camera.h:113
rl::hal::Dc1394Camera::getHeight
unsigned int getHeight() const
Definition: Dc1394Camera.cpp:270
rl::hal::Dc1394Camera::COLOR_CODING_MONO16S
@ COLOR_CODING_MONO16S
Definition: Dc1394Camera.h:61
rl::hal::Dc1394Camera::FEATURE_PAN
@ FEATURE_PAN
Definition: Dc1394Camera.h:90
rl::hal::Dc1394Camera::getOperationMode
OperationMode getOperationMode() const
Definition: Dc1394Camera.cpp:555
rl::hal::Dc1394Camera::cameras
int cameras
Definition: Dc1394Camera.h:340
rl::hal::Dc1394Camera::FEATURE_MODE_MANUAL
@ FEATURE_MODE_MANUAL
Definition: Dc1394Camera.h:102
rl::hal::Dc1394Camera::FRAMERATE_60
@ FRAMERATE_60
Definition: Dc1394Camera.h:119
rl::hal::Dc1394Camera::grab
void grab(unsigned char *image)
Definition: Dc1394Camera.cpp:654
rl::hal::Dc1394Camera::setOperationMode
void setOperationMode(const OperationMode &mode)
Definition: Dc1394Camera.cpp:1014
rl::hal::Dc1394Camera
Definition: Dc1394Camera.h:46
rl::hal::Dc1394Camera::ISO_SPEED_3200
@ ISO_SPEED_3200
Definition: Dc1394Camera.h:135
rl::hal::Dc1394Camera::COLOR_CODING_RGB16
@ COLOR_CODING_RGB16
Definition: Dc1394Camera.h:60
rl::hal::Dc1394Camera::nodes
nodeid_t * nodes
Definition: Dc1394Camera.h:362
rl::hal::Dc1394Camera::VIDEO_MODE_EXIF
@ VIDEO_MODE_EXIF
Definition: Dc1394Camera.h:188
rl::hal::Dc1394Camera::isFeaturePresent
bool isFeaturePresent(const Feature &feature) const
Definition: Dc1394Camera.cpp:732
rl::hal::Dc1394Camera::top
unsigned int top
Definition: Dc1394Camera.h:368
rl::hal::Dc1394Camera::FRAMERATE_15
@ FRAMERATE_15
Definition: Dc1394Camera.h:117
rl::hal::Dc1394Camera::FRAMERATE_30
@ FRAMERATE_30
Definition: Dc1394Camera.h:118
rl::hal::Dc1394Camera::FEATURE_BRIGHTNESS
@ FEATURE_BRIGHTNESS
Definition: Dc1394Camera.h:72
rl::hal::Dc1394Camera::VIDEO_MODE_800x600_MONO8
@ VIDEO_MODE_800x600_MONO8
Definition: Dc1394Camera.h:167
rl::hal::Dc1394Camera::FEATURE_GAMMA
@ FEATURE_GAMMA
Definition: Dc1394Camera.h:79
rl::hal::Dc1394Camera::isFeatureSwitchable
bool isFeatureSwitchable(const Feature &feature) const
Definition: Dc1394Camera.cpp:770
rl::hal::Dc1394Camera::setSpeed
void setSpeed(const IsoSpeed &speed)
Definition: Dc1394Camera.cpp:1029
rl::hal::Dc1394Camera::buffer
unsigned int buffer
Definition: Dc1394Camera.h:336
rl::hal::Dc1394Camera::getFramerate
Framerate getFramerate() const
Definition: Dc1394Camera.cpp:524
rl::hal::Dc1394Camera::reset
void reset()
Definition: Dc1394Camera.cpp:852
rl::hal::Dc1394Camera::setFeatureValueAbsolute
void setFeatureValueAbsolute(const Feature &feature, const float &value)
Definition: Dc1394Camera.cpp:941
rl::hal::Dc1394Camera::VIDEO_MODE_1024x768_YUV422
@ VIDEO_MODE_1024x768_YUV422
Definition: Dc1394Camera.h:168
rl::hal::Dc1394Camera::setFeatureValue
void setFeatureValue(const Feature &feature, const unsigned int &value)
Definition: Dc1394Camera.cpp:926
rl::hal::Dc1394Camera::FRAMERATE_240
@ FRAMERATE_240
Definition: Dc1394Camera.h:121
rl::hal::Dc1394Camera::IsoSpeed
IsoSpeed
Definition: Dc1394Camera.h:125
rl::hal::Dc1394Camera::VIDEO_MODE_640x480_MONO8
@ VIDEO_MODE_640x480_MONO8
Definition: Dc1394Camera.h:159
rl::hal::Dc1394Camera::getFeatureValue
unsigned int getFeatureValue(const Feature &feature) const
Definition: Dc1394Camera.cpp:454
rl::hal::Dc1394Camera::isFeatureEnabled
bool isFeatureEnabled(const Feature &feature) const
Definition: Dc1394Camera.cpp:711
rl::hal::Dc1394Camera::COLOR_CODING_YUV422
@ COLOR_CODING_YUV422
Definition: Dc1394Camera.h:56
rl::hal::Dc1394Camera::VIDEO_MODE_800x600_YUV422
@ VIDEO_MODE_800x600_YUV422
Definition: Dc1394Camera.h:164
rl::hal::Dc1394Camera::FEATURE_SHUTTER
@ FEATURE_SHUTTER
Definition: Dc1394Camera.h:80
rl::hal::Dc1394Camera::getColorCodingDepth
unsigned int getColorCodingDepth() const
Definition: Dc1394Camera.cpp:202
rl::hal::Dc1394Camera::VIDEO_MODE_640x480_YUV422
@ VIDEO_MODE_640x480_YUV422
Definition: Dc1394Camera.h:157
rl::hal::Dc1394Camera::getNumCameras
int getNumCameras() const
Definition: Dc1394Camera.cpp:549
rl::hal::Dc1394Camera::getBitsPerPixel
unsigned int getBitsPerPixel() const
Definition: Dc1394Camera.cpp:124
rl::hal::Dc1394Camera::handle
raw1394handle_t handle
Definition: Dc1394Camera.h:352
rl::hal::Dc1394Camera::FEATURE_EXPOSURE
@ FEATURE_EXPOSURE
Definition: Dc1394Camera.h:74
rl::hal::Dc1394Camera::FEATURE_OPTICAL_FILTER
@ FEATURE_OPTICAL_FILTER
Definition: Dc1394Camera.h:92
rl::hal::Dc1394Camera::FeatureMode
FeatureMode
Definition: Dc1394Camera.h:98
rl::hal::Dc1394Camera::setFeatureAbsoluteControl
void setFeatureAbsoluteControl(const Feature &feature, const bool &doOn)
Definition: Dc1394Camera.cpp:867
rl::hal::Dc1394Camera::FRAMERATE_7_5
@ FRAMERATE_7_5
Definition: Dc1394Camera.h:116
rl::hal::Dc1394Camera::start
void start()
Definition: Dc1394Camera.cpp:1089
rl::hal::Dc1394Camera::step
void step()
Definition: Dc1394Camera.cpp:1206
rl::hal::Dc1394Camera::hasFeatureAbsoluteControl
bool hasFeatureAbsoluteControl(const Feature &feature) const
Definition: Dc1394Camera.cpp:692
rl::hal::Dc1394Camera::setNode
void setNode(const unsigned int &node)
Definition: Dc1394Camera.cpp:1008
rl::hal::Dc1394Camera::VIDEO_MODE_1600x1200_RGB8
@ VIDEO_MODE_1600x1200_RGB8
Definition: Dc1394Camera.h:181
rl::hal::Dc1394Camera::setFeatureMode
void setFeatureMode(const Feature &feature, const FeatureMode &mode)
Definition: Dc1394Camera.cpp:896
rl::hal::Dc1394Camera::getFilename
::std::string getFilename() const
Definition: Dc1394Camera.cpp:492
rl::hal::Dc1394Camera::setFramerate
void setFramerate(const Framerate &framerate)
Definition: Dc1394Camera.cpp:991
rl::hal::Dc1394Camera::getFormat7MaximumImageSize
void getFormat7MaximumImageSize(const unsigned int &mode, unsigned int &width, unsigned &height) const
Definition: Dc1394Camera.cpp:509
rl::hal::Dc1394Camera::FEATURE_MODE_ONE_PUSH_AUTO
@ FEATURE_MODE_ONE_PUSH_AUTO
Definition: Dc1394Camera.h:105
rl::hal::Dc1394Camera::VIDEO_MODE_640x480_RGB8
@ VIDEO_MODE_640x480_RGB8
Definition: Dc1394Camera.h:158
rl::hal::Dc1394Camera::FEATURE_WHITE_SHADING
@ FEATURE_WHITE_SHADING
Definition: Dc1394Camera.h:87
rl::hal::Dc1394Camera::FEATURE_MODE_AUTO
@ FEATURE_MODE_AUTO
Definition: Dc1394Camera.h:104
rl::hal::Dc1394Camera::FEATURE_IRIS
@ FEATURE_IRIS
Definition: Dc1394Camera.h:82
rl::hal::Dc1394Camera::drop
unsigned int drop
Definition: Dc1394Camera.h:346
rl::hal::Dc1394Camera::setFormat7
void setFormat7(const VideoMode &videoMode, const ColorCoding &colorCoding, const unsigned int &left, const unsigned int &top, const unsigned int &width, const unsigned int &height)
Definition: Dc1394Camera.cpp:962
rl::hal::Dc1394Camera::VIDEO_MODE_640x480_YUV411
@ VIDEO_MODE_640x480_YUV411
Definition: Dc1394Camera.h:156
rl::hal::Camera
Definition: Camera.h:37
rl::hal::Dc1394Camera::setFeatureEnabled
void setFeatureEnabled(const Feature &feature, const bool &doOn)
Definition: Dc1394Camera.cpp:881
rl::hal::Dc1394Camera::ISO_SPEED_400
@ ISO_SPEED_400
Definition: Dc1394Camera.h:132
rl::hal::Dc1394Camera::COLOR_CODING_MONO8
@ COLOR_CODING_MONO8
Definition: Dc1394Camera.h:53
rl::hal::Dc1394Camera::VIDEO_MODE_1280x960_RGB8
@ VIDEO_MODE_1280x960_RGB8
Definition: Dc1394Camera.h:178
rl::hal::Dc1394Camera::COLOR_CODING_YUV411
@ COLOR_CODING_YUV411
Definition: Dc1394Camera.h:55
rl::hal::Dc1394Camera::VIDEO_MODE_160x120_YUV444
@ VIDEO_MODE_160x120_YUV444
Definition: Dc1394Camera.h:153
rl::hal::Dc1394Camera::getFeatureValueAbsolute
float getFeatureValueAbsolute(const Feature &feature) const
Definition: Dc1394Camera.cpp:473
rl::hal::Dc1394Camera::COLOR_CODING_MONO16
@ COLOR_CODING_MONO16
Definition: Dc1394Camera.h:59
rl::hal::Dc1394Camera::channel
unsigned int channel
Definition: Dc1394Camera.h:342
rl::hal::Dc1394Camera::VIDEO_MODE_320x240_YUV422
@ VIDEO_MODE_320x240_YUV422
Definition: Dc1394Camera.h:155
rl::hal::Dc1394Camera::OperationMode
OperationMode
Definition: Dc1394Camera.h:139
rl::hal::Dc1394Camera::getNode
unsigned int getNode() const
Definition: Dc1394Camera.cpp:543
rl::hal::Dc1394Camera::colorCoding
ColorCoding colorCoding
Definition: Dc1394Camera.h:344
rl::hal::Dc1394Camera::framerate
Framerate framerate
Definition: Dc1394Camera.h:350
rl::hal::Dc1394Camera::ISO_SPEED_100
@ ISO_SPEED_100
Definition: Dc1394Camera.h:129
rl::hal::Dc1394Camera::Framerate
Framerate
Definition: Dc1394Camera.h:109
Camera.h
rl::hal::Dc1394Camera::camera
dc1394_cameracapture camera
Definition: Dc1394Camera.h:338
rl::hal::Dc1394Camera::ISO_SPEED_800
@ ISO_SPEED_800
Definition: Dc1394Camera.h:133
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_0
@ VIDEO_MODE_FORMAT7_0
Definition: Dc1394Camera.h:193
rl::hal::Dc1394Camera::getSize
unsigned int getSize() const
Definition: Dc1394Camera.cpp:574
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_4
@ VIDEO_MODE_FORMAT7_4
Definition: Dc1394Camera.h:198
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_7
@ VIDEO_MODE_FORMAT7_7
Definition: Dc1394Camera.h:201
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_1
@ VIDEO_MODE_FORMAT7_1
Definition: Dc1394Camera.h:195
rl::hal::Dc1394Camera::VIDEO_MODE_1024x768_MONO16
@ VIDEO_MODE_1024x768_MONO16
Definition: Dc1394Camera.h:172
rl::hal::Dc1394Camera::Feature
Feature
Definition: Dc1394Camera.h:68
rl::hal::Dc1394Camera::left
unsigned int left
Definition: Dc1394Camera.h:358
rl::hal::Dc1394Camera::VIDEO_MODE_1024x768_MONO8
@ VIDEO_MODE_1024x768_MONO8
Definition: Dc1394Camera.h:170
rl::hal::Dc1394Camera::setPort
void setPort(const unsigned int &port)
rl::hal::Dc1394Camera::getFeatureAbsoluteControl
bool getFeatureAbsoluteControl(const Feature &feature) const
Definition: Dc1394Camera.cpp:290
rl::hal::Dc1394Camera::getVideoMode
VideoMode getVideoMode() const
Definition: Dc1394Camera.cpp:615
rl::hal::Dc1394Camera::OPERATION_MODE_1394B
@ OPERATION_MODE_1394B
Definition: Dc1394Camera.h:145
rl::hal::Dc1394Camera::VIDEO_MODE_800x600_RGB8
@ VIDEO_MODE_800x600_RGB8
Definition: Dc1394Camera.h:166
rl::hal::Dc1394Camera::videoMode
VideoMode videoMode
Definition: Dc1394Camera.h:370
rl::hal::Dc1394Camera::OPERATION_MODE_LEGACY
@ OPERATION_MODE_LEGACY
Definition: Dc1394Camera.h:143
rl::hal::Dc1394Camera::VideoMode
VideoMode
Definition: Dc1394Camera.h:149
rl::hal::Dc1394Camera::filename
::std::string filename
Definition: Dc1394Camera.h:348
rl::hal::Dc1394Camera::isFeatureReadable
bool isFeatureReadable(const Feature &feature) const
Definition: Dc1394Camera.cpp:751
rl::hal::Dc1394Camera::VIDEO_MODE_1024x768_RGB8
@ VIDEO_MODE_1024x768_RGB8
Definition: Dc1394Camera.h:169
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_3
@ VIDEO_MODE_FORMAT7_3
Definition: Dc1394Camera.h:197
rl::hal::Dc1394Camera::ISO_SPEED_200
@ ISO_SPEED_200
Definition: Dc1394Camera.h:131
rl::hal::Dc1394Camera::~Dc1394Camera
virtual ~Dc1394Camera()
Definition: Dc1394Camera.cpp:78
rl::hal::Dc1394Camera::VIDEO_MODE_1600x1200_MONO8
@ VIDEO_MODE_1600x1200_MONO8
Definition: Dc1394Camera.h:182
rl::hal::Dc1394Camera::VIDEO_MODE_1280x960_MONO16
@ VIDEO_MODE_1280x960_MONO16
Definition: Dc1394Camera.h:183
rl::hal::Dc1394Camera::VIDEO_MODE_1280x960_MONO8
@ VIDEO_MODE_1280x960_MONO8
Definition: Dc1394Camera.h:179
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_5
@ VIDEO_MODE_FORMAT7_5
Definition: Dc1394Camera.h:199
rl::hal::Dc1394Camera::COLOR_CODING_RGB16S
@ COLOR_CODING_RGB16S
Definition: Dc1394Camera.h:62
rl::hal::Dc1394Camera::setFilename
void setFilename(const ::std::string &filename)
Definition: Dc1394Camera.cpp:956
rl::hal::Dc1394Camera::FEATURE_FOCUS
@ FEATURE_FOCUS
Definition: Dc1394Camera.h:83
rl::hal::Dc1394Camera::getWidth
unsigned int getWidth() const
Definition: Dc1394Camera.cpp:634
rl::hal::Dc1394Camera::getFeatureBoundariesAbsolute
void getFeatureBoundariesAbsolute(const Feature &feature, float &min, float &max) const
Definition: Dc1394Camera.cpp:336
rl::hal::Dc1394Camera::FEATURE_SATURATION
@ FEATURE_SATURATION
Definition: Dc1394Camera.h:78
rl::hal::Dc1394Camera::FEATURE_TRIGGER
@ FEATURE_TRIGGER
Definition: Dc1394Camera.h:85
rl::hal::Dc1394Camera::getFeatureMode
FeatureMode getFeatureMode(const Feature &feature) const
Definition: Dc1394Camera.cpp:351
rl::hal::Dc1394Camera::FEATURE_TRIGGER_DELAY
@ FEATURE_TRIGGER_DELAY
Definition: Dc1394Camera.h:86
rl::hal::Dc1394Camera::getSpeed
IsoSpeed getSpeed() const
Definition: Dc1394Camera.cpp:594
rl::hal::Dc1394Camera::COLOR_CODING_YUV444
@ COLOR_CODING_YUV444
Definition: Dc1394Camera.h:57
rl::hal::Dc1394Camera::getFeatureModes
void getFeatureModes(const Feature &feature, bool &hasManual, bool &hasAuto, bool &hasOnePushAuto) const
Definition: Dc1394Camera.cpp:398
rl::hal::Dc1394Camera::speed
unsigned int speed
Definition: Dc1394Camera.h:366
rl::hal::Dc1394Camera::port
unsigned int port
Definition: Dc1394Camera.h:364
rl::hal::Dc1394Camera::Dc1394Camera
Dc1394Camera(const ::std::string &filename="", const unsigned int &node=0)
Definition: Dc1394Camera.cpp:36
rl::hal::Dc1394Camera::FEATURE_ZOOM
@ FEATURE_ZOOM
Definition: Dc1394Camera.h:89
rl::hal::Dc1394Camera::height
unsigned int height
Definition: Dc1394Camera.h:354
rl::hal::Dc1394Camera::width
unsigned int width
Definition: Dc1394Camera.h:372
rl::hal::Dc1394Camera::FEATURE_FRAME_RATE
@ FEATURE_FRAME_RATE
Definition: Dc1394Camera.h:88
rl::hal::Dc1394Camera::FEATURE_GAIN
@ FEATURE_GAIN
Definition: Dc1394Camera.h:81
rl::hal::Dc1394Camera::FRAMERATE_3_75
@ FRAMERATE_3_75
Definition: Dc1394Camera.h:115
rl::hal::Dc1394Camera::VIDEO_MODE_1280x960_YUV422
@ VIDEO_MODE_1280x960_YUV422
Definition: Dc1394Camera.h:176
rl::hal::Dc1394Camera::FRAMERATE_120
@ FRAMERATE_120
Definition: Dc1394Camera.h:120
rl::hal::Dc1394Camera::FEATURE_CAPTURE_QUALITY
@ FEATURE_CAPTURE_QUALITY
Definition: Dc1394Camera.h:94
rl::hal::Dc1394Camera::setVideoMode
void setVideoMode(const VideoMode &mode)
Definition: Dc1394Camera.cpp:1046
rl
Definition: Ati.cpp:35