Device struct, used by the DCGrabber class to identify devices.
More...
#include <DCDevice.h>
|
struct | Mode |
| Internally used Mode struct (combination of videomode and framerate) More...
|
|
|
static std::string | getTypeID (const std::string &model, const std::string &vendor) |
| returns a type ID specifier (vendor+" -- "+model) More...
|
|
static std::string | getTypeID (const dc1394camera_t *cam) |
| returns getTypeID(cam->model,cam->vendor) More...
|
|
static void | dc1394_reset_bus (bool verbose=false) |
| save version to call dc1394_reset_bus (after call all other cams become useless) More...
|
|
Device struct, used by the DCGrabber class to identify devices.
◆ BayerFilterMode
Enumerator |
---|
BF_RGGB | |
BF_GBRG | |
BF_GRBG | |
BF_BGGR | |
BF_NONE | |
BF_FROM_MODE | |
BF_FROM_FEATURE | |
◆ DCDevice()
icl::io::DCDevice::DCDevice |
( |
dc1394camera_t * |
cam | ) |
|
|
inlineprivate |
Creates a new device (pivate; called by DCGrabber::getDeviceList())
◆ dc1394_reset_bus()
static void icl::io::DCDevice::dc1394_reset_bus |
( |
bool |
verbose = false | ) |
|
|
static |
save version to call dc1394_reset_bus (after call all other cams become useless)
◆ estimateBayerFilterMode()
void icl::io::DCDevice::estimateBayerFilterMode |
( |
| ) |
|
|
private |
this function is called by the constructor
◆ getBayerFilterLayout()
dc1394color_filter_t icl::io::DCDevice::getBayerFilterLayout |
( |
| ) |
const |
returns the cameras bayer filter layout
- Returns
- bayer filter layout
- 0 if no bayer filter is needed
- 1 if the bayer filter layout is given by a camera feature
- otherwise a valid dc1394color_filter_t value
◆ getCam()
dc1394camera_t* icl::io::DCDevice::getCam |
( |
| ) |
const |
|
inline |
returns the camera, which is associated with this device (fixed)
◆ getGUID()
uint64_t icl::io::DCDevice::getGUID |
( |
| ) |
const |
returns the devices Global Unique ID
◆ getMode()
Mode icl::io::DCDevice::getMode |
( |
| ) |
const |
|
inline |
◆ getModelID()
std::string icl::io::DCDevice::getModelID |
( |
| ) |
const |
returns the model id string from the wrapped camera or "null" if the device is null
◆ getModes()
std::vector<Mode> icl::io::DCDevice::getModes |
( |
| ) |
const |
returns a list of supported modes for this device
◆ getModesInfo()
std::string icl::io::DCDevice::getModesInfo |
( |
| ) |
const |
returns a list of supported modes for this device as info-string
◆ getTypeID() [1/3]
static std::string icl::io::DCDevice::getTypeID |
( |
const std::string & |
model, |
|
|
const std::string & |
vendor |
|
) |
| |
|
static |
returns a type ID specifier (vendor+" -- "+model)
◆ getTypeID() [2/3]
static std::string icl::io::DCDevice::getTypeID |
( |
const dc1394camera_t * |
cam | ) |
|
|
static |
returns getTypeID(cam->model,cam->vendor)
◆ getTypeID() [3/3]
std::string icl::io::DCDevice::getTypeID |
( |
| ) |
const |
|
inline |
◆ getUniqueStringIdentifier()
std::string icl::io::DCDevice::getUniqueStringIdentifier |
( |
| ) |
const |
returns a unique string identifier for this device
currently: getModelID + "-" +getGUID()
◆ getUnit()
icl32s icl::io::DCDevice::getUnit |
( |
| ) |
const |
returns the IEEE1394 Unit of the device
◆ getUnitSpecID()
icl32s icl::io::DCDevice::getUnitSpecID |
( |
| ) |
const |
returns the IEEE1394 UnitSpecID of the device
◆ getVendorID()
std::string icl::io::DCDevice::getVendorID |
( |
| ) |
const |
returns the vendor id string from the wrapped camera or "null" if the device is null
◆ isNull()
bool icl::io::DCDevice::isNull |
( |
| ) |
const |
|
inline |
returns wheather the device is associated to a dc-camera
◆ reset()
void icl::io::DCDevice::reset |
( |
| ) |
|
|
inlineprivate |
resets the camera internally
This function may only be called by the DCGrabber
◆ setISOSpeed()
void icl::io::DCDevice::setISOSpeed |
( |
int |
mbits | ) |
|
sets the cameras iso speed
- See also
- icl::dc::set_iso_speed(int)
◆ setMode()
void icl::io::DCDevice::setMode |
( |
const Mode & |
mode | ) |
|
|
private |
sets the current mode of this device
This function may only be called by the DCGrabber
◆ show()
void icl::io::DCDevice::show |
( |
const std::string & |
title = "DCDevice" | ) |
const |
shows some device information
◆ supports()
bool icl::io::DCDevice::supports |
( |
const Mode & |
mode | ) |
const |
returns whether the Device supports a given mode
◆ supportsDC800()
bool icl::io::DCDevice::supportsDC800 |
( |
| ) |
|
returns whether the device supports Firewire B mode
◆ icl::io::dc::DCGrabberThread
DCDevices may only be created by the DCGrabbers private function.
◆ icl::io::DCGrabber
DCDevices may only be created by the DCGrabbers private function.
◆ m_eBayerFilterMode
once estimated this flag is used to identify the current camery type
◆ m_poCam
dc1394camera_t* icl::io::DCDevice::m_poCam |
|
private |
associated camera (libdc stays the owner of the pointer)
◆ null
static null device (m_poCam is null)
The documentation for this class was generated from the following file: