#include <QTSource.h>
Inheritance diagram for QTSource::

Public Methods | |
| QTSource (char *path) | |
| Initialise an QT movie source. More... | |
| ~QTSource () | |
| Close QT file and free up the memory. | |
| virtual ImageSource& | operator>> (ImageRGB &) |
| Extract a frame of the QT movie to the colour Images data buffer. More... | |
| virtual ImageSource& | operator>> (ImageGrey &) |
| Extract a frame of the QT movie to the greyscale Images brightness buffer. More... | |
| virtual ImageSource& | operator>> (Image &) |
| Extract a frame of the QT movie. More... | |
| void | get_size (unsigned int &, unsigned int &) |
| Return the width and height of the QT. More... | |
| int | set_frame (long frame_no) |
| Seek to point in file. More... | |
| long | get_no_frames () |
| Get movie length. | |
| void | get_framerate (float &fr) |
| Get movie framerate. | |
| void | set_framerate (float fr) |
| Set movie framerate. | |
| bool | eof () |
| End of file. | |
Protected Attributes | |
| quicktime_t* | file |
| QT file handle. | |
| char* | comp_type |
| Compression Type. | |
| unsigned char** | buff |
| Buffer for decoded data. | |
| unsigned int | width |
| QT width. | |
| unsigned int | height |
| QT height. | |
| long | frames |
| Number of frames in movie. | |
| long | c_frame_no |
| Current frame no. | |
| bool | qt_eof |
| End of file flag. | |
Each image that is extracted from the QTSource class is a frame of the QT movie.
Definition at line 31 of file QTSource.h.
|
|
Initialise an QT movie source.
Definition at line 27 of file QTSource.cpp. |
|
|
Return the width and height of the QT.
Reimplemented from ImageSource. Definition at line 151 of file QTSource.cpp. |
|
|
Extract a frame of the QT movie. The Image could be colour or greyscale depending on the default palette type for this class.
Reimplemented from ImageSource. Definition at line 135 of file QTSource.cpp. |
|
|
Extract a frame of the QT movie to the greyscale Images brightness buffer.
Reimplemented from ImageSource. Definition at line 108 of file QTSource.cpp. |
|
|
Extract a frame of the QT movie to the colour Images data buffer.
Reimplemented from ImageSource. Definition at line 89 of file QTSource.cpp. |
|
|
Seek to point in file. Returns 0 if OK and -1 otherwise.
Definition at line 163 of file QTSource.cpp. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001