Public Member Functions | |
tlSourceFiles () | |
tlSourceFiles (char *filename) | |
virtual | ~tlSourceFiles () |
int | getLength () |
int | getIndex () |
int | open () |
int | open (char *filename) |
int | setIndex (int index) |
int | setFrameRate (int fps) |
virtual int | grab (tlImage *image) |
virtual int | grab (tlImage *image, tlRect *rect) |
virtual int | grabQueued (tlImage *image) |
virtual int | grabQueued (tlImage *image, tlRect *rect) |
tlSourceFiles::tlSourceFiles | ( | ) |
tlSourceFiles::tlSourceFiles | ( | char * | filenameBase | ) |
tlSourceFiles::~tlSourceFiles | ( | ) | [virtual] |
tlSourceFiles::getLength | ( | ) | [inline] |
Return the length of the image if it is known. The full set must be grabbed once before the length is known.
tlSourceFiles::getIndex | ( | ) | [inline] |
Return the current index in the file set.
int tlSourceFiles::open | ( | ) |
Open the first file of the serie using the default basename.
Referenced by tlSourceFiles().
int tlSourceFiles::open | ( | char * | filenameBase | ) |
Open the first file of the serie using the default basename.
References TL_ERRNO_MSG, TL_ERROR_FILE_NOT_FOUND_OR_CORRUPT, and tl_timer_get_time().
int tlSourceFiles::setIndex | ( | int | index | ) |
Set the current frame index. The image at the given index will be returned at the next grab() call.
index | desired frame index. |
References TL_ERRNO_MSG, TL_ERROR, and TL_ERROR_INDEX_OUT_OF_BOUNDS.
int tlSourceFiles::setFrameRate | ( | int | fps | ) |
Set the "frame rate" of the filesystem digitizer by "throttling" the acquisition.
fps | frame rate in frame per second. |
int tlSourceFiles::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 tlSource.
References tlImage::readFromFile(), tl_timer_get_time(), tlThreadSleep(), and tlVerbose.
Referenced by grab(), and grabQueued().
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 tlSource.
References grab().
int tlSourceFiles::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 tlSource.
References grab().
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 tlSource.
References grab().