Public Member Functions | |
tlSourceVideoFile (char *filename) | |
int | getLength () |
int | getIndex () |
int | open (char *filename) |
int | close () |
int | setFrame (int frame) |
virtual int | grab (tlImage *image) |
virtual int | grab (tlImage *image, tlRect *rect) |
virtual int | grabQueued (tlImage *image) |
virtual int | grabQueued (tlImage *image, tlRect *rect) |
tlSourceVideoFile::tlSourceVideoFile | ( | char * | filename | ) |
Open the given filename upon allocation.
filename | video file name |
tlSourceVideoFile::getLength | ( | ) | [inline] |
Get the number of frames in the video sequence.
tlSourceVideoFile::getIndex | ( | ) | [inline] |
Get the current frame index.
int tlSourceVideoFile::open | ( | char * | filename | ) |
Open the given filename.
filename | video file name |
int tlSourceVideoFile::close | ( | ) |
Close the currently open file.
int tlSourceVideoFile::setFrame | ( | int | frame | ) |
Goto a given frame in the movie. The next image acquired via the grab() method will be at the given index in the video stream.
frame | image index in the video stream |
int tlSourceVideoFile::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.
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.
int tlSourceVideoFile::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.
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.