44 class DCGrabberThread;
53 static std::string getTypeID(
const std::string &model,
const std::string &vendor);
56 static std::string getTypeID(
const dc1394camera_t *cam);
72 static void dc1394_reset_bus(
bool verbose=
false);
77 Mode(dc1394video_mode_t vm, dc1394framerate_t fr):
78 videomode(vm),framerate(fr){}
82 Mode(
const std::string &stringRepr);
85 Mode(dc1394camera_t *cam);
89 std::string toString()
const;
92 bool supportedBy(dc1394camera_t *cam)
const;
108 dc1394camera_t *
getCam()
const {
return m_poCam; }
114 std::vector<Mode> getModes()
const ;
117 std::string getModesInfo()
const ;
120 std::string getVendorID()
const;
123 std::string getModelID()
const;
126 uint64_t getGUID()
const;
132 icl32s getUnitSpecID()
const;
136 std::string getUniqueStringIdentifier()
const;
139 bool isNull()
const {
return m_poCam == 0; }
142 void show(
const std::string &title=
"DCDevice")
const;
145 bool supports(
const Mode &mode)
const;
153 dc1394color_filter_t getBayerFilterLayout()
const;
157 void setISOSpeed(
int mbits);
160 bool supportsDC800();
166 estimateBayerFilterMode();
171 void setMode(
const Mode &mode);
175 void reset() {
if(!isNull()) dc1394_camera_reset(m_poCam); }
182 void estimateBayerFilterMode();
185 BF_RGGB = DC1394_COLOR_FILTER_RGGB,
186 BF_GBRG = DC1394_COLOR_FILTER_GBRG,
187 BF_GRBG = DC1394_COLOR_FILTER_GRBG,
188 BF_BGGR = DC1394_COLOR_FILTER_BGGR,
undocument this line if you encounter any issues!
Definition: Any.h:37
Mode(dc1394video_mode_t vm, dc1394framerate_t fr)
creates a new Mode with given videomode and framerate
Definition: DCDevice.h:77
BayerFilterMode m_eBayerFilterMode
once estimated this flag is used to identify the current camery type
Definition: DCDevice.h:196
DCDevice(dc1394camera_t *cam)
Creates a new device (pivate; called by DCGrabber::getDeviceList())
Definition: DCDevice.h:164
bool operator==(const Mode &m) const
compares to modes
Definition: DCDevice.h:101
void reset()
resets the camera internally
Definition: DCDevice.h:175
Grabber implementation for handling DC-Devices using libdc1394 (Version >= 2.0.rc9) .
Definition: DCGrabber.h:87
dc1394video_mode_t videomode
corresponding videomode
Definition: DCDevice.h:95
bool isNull() const
returns wheather the device is associated to a dc-camera
Definition: DCDevice.h:139
dc1394camera_t * getCam() const
returns the camera, which is associated with this device (fixed)
Definition: DCDevice.h:108
Ipp32s icl32s
32bit signed integer type for the ICL
Definition: BasicTypes.h:58
Internally used Mode struct (combination of videomode and framerate)
Definition: DCDevice.h:75
#define ICLIO_API
Definition: CompatMacros.h:176
Definition: DCDevice.h:190
dc1394camera_t * m_poCam
associated camera (libdc stays the owner of the pointer)
Definition: DCDevice.h:179
Internally spawned thread class to provide continuous grabbing without drop frames.
Definition: DCGrabberThread.h:90
Device struct, used by the DCGrabber class to identify devices.
Definition: DCDevice.h:49
dc1394framerate_t framerate
corresponding framerate;
Definition: DCDevice.h:98
Mode getMode() const
returns the current mode
Definition: DCDevice.h:111
std::string getTypeID() const
returns an instances type ID (see also static functions)
Definition: DCDevice.h:60
BayerFilterMode
Definition: DCDevice.h:184
ICLQt_API void show(const icl::core::ImgBase &image)
shows an image using TestImages::show
Definition: DCDevice.h:189
bool operator!=(const Mode &m) const
compares to modes [!= complies !(==)]
Definition: DCDevice.h:104