Public Member Functions | |
tlDigitizerDT3130 () | |
tlDigitizerDT3130 (int width, int height) | |
tlDigitizerDT3130 (int width, int height, int channel, unsigned short input=TL_SOURCE_AUTO) | |
virtual | ~tlDigitizerDT3130 () |
virtual int | open (int index=0) |
virtual int | open (int width, int height, int index=0) |
int | open (int width, int height, int index, int channel, unsigned short input=TL_SOURCE_AUTO) |
virtual int | close () |
virtual int | setChannel (int channel, unsigned short input) |
virtual int | setInput (unsigned short input) |
virtual int | setFrameRate (int fps) |
virtual int | setSize (int width, int height) |
virtual int | grab (tlImage *image) |
virtual int | grab (tlImage *image, tlRect *rect) |
virtual int | grabQueued (tlImage *image) |
virtual int | grabQueued (tlImage *image, tlRect *rect) |
unsigned short | getInput () |
int | getChannel () |
int | getWidth () |
int | getHeight () |
int | getID () |
tl_format | getFormat () |
Protected Attributes | |
bool | isOpen |
tlDigitizerDT3130::tlDigitizerDT3130 | ( | ) |
Default constructor. Uses default parameters.
References TL_NO_ERROR.
tlDigitizerDT3130::tlDigitizerDT3130 | ( | int | width, | |
int | height | |||
) |
Prepare a digitizer for image acquisition using a given acquisition size. A subsequent call to open() will open the digitizer with the given settings.
width | acquisition width | |
height | acquisition height |
References TL_NO_ERROR.
tlDigitizerDT3130::tlDigitizerDT3130 | ( | int | width, | |
int | height, | |||
int | channel, | |||
unsigned short | input = TL_SOURCE_AUTO | |||
) |
Prepare a digitizer for image acquisition using a given acquisition size and specific format parameters. A subsequent call to open() will open the digitizer with the given settings.
width | new acquisition width | |
height | new acquisition height | |
channel | channel index on the digitizer | |
input | input format |
References TL_NO_ERROR.
tlDigitizerDT3130::~tlDigitizerDT3130 | ( | ) | [virtual] |
int tlDigitizerDT3130::open | ( | int | index = 0 |
) | [virtual] |
Open a digitizer for image acquisition using default settings.
index | [default=0] the index of the digitizer in the system (for use of multiple digitizers at the same time) |
Implements tlDigitizer.
int tlDigitizerDT3130::open | ( | int | width, | |
int | height, | |||
int | index = 0 | |||
) | [virtual] |
Open a digitizer for image acquisition using a given acquisition size.
width | new acquisition width | |
height | new acquisition height | |
index | [default=0] the index of the digitizer in the system (for use of multiple digitizers at the same time) |
Reimplemented from tlDigitizer.
References open().
int tlDigitizerDT3130::open | ( | int | width, | |
int | height, | |||
int | index, | |||
int | channel, | |||
unsigned short | input = TL_SOURCE_AUTO | |||
) |
Open a digitizer for image acquisition using a given acquisition size and specific format parameters.
width | new acquisition width | |
height | new acquisition height | |
index | the index of the digitizer in the system (for use of multiple digitizers at the same time) | |
channel | channel index on the digitizer | |
input | input format |
References tlDigitizer::isOpen, setChannel(), TL_ERRNO_MSG, TL_ERROR, TL_ERROR_CONFIG_FAILED, and TL_ERROR_RESOURCE_NOT_AVAILABLE.
int tlDigitizerDT3130::close | ( | ) | [virtual] |
Clean up digitizer buffers and close hardware connection. Configuration is retained, so that a call to open() will restore the digitizer state to the last used mode.
Implements tlDigitizer.
References tlDigitizer::isOpen, TL_ERRNO_MSG, TL_ERROR_CONFIG_FAILED, and TL_ERROR_RESOURCE_NOT_AVAILABLE.
Referenced by setSize(), and ~tlDigitizerDT3130().
int tlDigitizerDT3130::setChannel | ( | int | channel, | |
unsigned short | input | |||
) | [virtual] |
Set the acquisition channel.
channel | channel index on the digitizer | |
input | input format |
Reimplemented from tlDigitizer.
References setInput(), TL_ERRNO_MSG, and TL_ERROR_CONFIG_FAILED.
Referenced by open().
int tlDigitizerDT3130::setInput | ( | unsigned short | input | ) | [virtual] |
Set the acquisition channel input format.
input | input format |
Reimplemented from tlDigitizer.
References TL_ERRNO_MSG, TL_ERROR_CONFIG_FAILED, TL_SOURCE_COMPOSITE, TL_SOURCE_NTSC, TL_SOURCE_PAL, and TL_SOURCE_SVIDEO.
Referenced by setChannel().
virtual int tlDigitizerDT3130::setFrameRate | ( | int | fps | ) | [virtual] |
Set the acquisition frame rate.
fps | desired frames per second |
Reimplemented from tlDigitizer.
int tlDigitizerDT3130::setSize | ( | int | width, | |
int | height | |||
) | [virtual] |
Set the digitizer acquisition size. All other parameters are left untouched. Depending on the hardware, this call might close and reopen the device, possibly leading to some latency.
width | new acquisition width | |
height | new acquisition height |
Reimplemented from tlDigitizer.
References close(), tlDigitizer::isOpen, open(), TL_ERRNO_MSG, and TL_ERROR_CONFIG_FAILED.
int tlDigitizerDT3130::grab | ( | tlImage * | image | ) | [virtual] |
This call acquires a full image from an image source. The image will have the size and format the source is currently configured for.
image | [out] a valid image pointer that will receive the image. |
Implements tlDigitizer.
References tlPixelArray::init(), tlPixelArray::pixel, RGB, TL_ERRNO_MSG, TL_ERROR_GRAB_FAILED, and TL_RGB_WIDTH.
This call acquires a portion of an image from an image source. The image will have the size and format the source is currently configured for, but only the portion defined by the rect argument will contain valid pixel values.
image | [out] a valid image pointer that will receive the image. | |
rect | a pointer to the portion of the image to acquire. |
Implements tlDigitizer.
References tlSize::height, tlPixelArray::init(), tlPixelArray::pixel, RGB, TL_ERRNO_MSG, TL_ERROR_GRAB_FAILED, TL_MAX, TL_MIN, tlSize::width, tlLocation::x, and tlLocation::y.
int tlDigitizerDT3130::grabQueued | ( | tlImage * | image | ) | [virtual] |
This call acquires a full image from an image source. The image will have the size and format the source is currently configured for.
image | [out] a valid image pointer that will receive the image. |
Implements tlDigitizer.
References tlPixelArray::init(), tlPixelArray::pixel, RGB, TL_ERRNO_MSG, TL_ERROR_GRAB_FAILED, and TL_RGB_WIDTH.
This call acquires a portion of an image from an image source. The image will have the size and format the source is currently configured for, but only the portion defined by the rect argument will contain valid pixel values.
image | [out] a valid image pointer that will receive the image. | |
rect | a pointer to the portion of the image to acquire. |
Implements tlDigitizer.
References tlSize::height, tlPixelArray::init(), tlPixelArray::pixel, RGB, TL_ERRNO_MSG, TL_ERROR_GRAB_FAILED, TL_MAX, TL_MIN, tlSize::width, tlLocation::x, and tlLocation::y.
tlDigitizer::getInput | ( | ) | [inline, inherited] |
tlDigitizer::getChannel | ( | ) | [inline, inherited] |
Get currently selected input channel.
tlSource::getWidth | ( | ) | [inline, inherited] |
Returns the width of the image source. Any image acquired through this tlSource object will have the current width.
Referenced by tlCameraTSAI::setSource(), and tlCameraTSAI::tlCameraTSAI().
tlSource::getHeight | ( | ) | [inline, inherited] |
Returns the height of the image source. Any image acquired through this tlSource object will have the current height.
Referenced by tlCameraTSAI::setSource(), and tlCameraTSAI::tlCameraTSAI().
tlSource::getID | ( | ) | [inline, inherited] |
Return a unique identifier for this source. Identifiers are allocated dynamically and are only valid during application run-time.
tlSource::getFormat | ( | ) | [inline, inherited] |
tlDigitizer::isOpen [protected, inherited] |
Return the current state of the digitizer.
Referenced by tlDigitizerVRm::close(), tlDigitizerV4L2::close(), tlDigitizerV4L::close(), tlDigitizerPXC200::close(), tlDigitizerDX::close(), close(), tlDigitizerVRm::grab(), tlDigitizerV4L2::grab(), tlDigitizerV4L::grab(), tlDigitizerPXC200::grab(), tlDigitizerDX::grab(), tlDigitizerV4L::grabQueued(), tlDigitizerPXC200::grabQueued(), tlDigitizerVRm::open(), tlDigitizerV4L2::open(), tlDigitizerV4L::open(), tlDigitizerPXC200::open(), tlDigitizerDX::open(), open(), tlDigitizerDX::setFrameRate(), tlDigitizerPXC200::setSize(), tlDigitizerDX::setSize(), setSize(), and tlDigitizer::tlDigitizer().