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

Public Methods | |
| MPEGSource (char *path) | |
| Initialise an MPEG movie source. More... | |
| ~MPEGSource () | |
| Close MPEG file and free up the memory. | |
| virtual ImageSource& | operator>> (ImageRGB &) |
| Extract a frame of the MPEG movie to the colour Images data buffer. More... | |
| virtual ImageSource& | operator>> (ImageGrey &) |
| Extract a frame of the MPEG movie to the greyscale Images brightness buffer. More... | |
| virtual ImageSource& | operator>> (Image &) |
| Extract a frame of the MPEG movie. More... | |
| void | get_size (unsigned int &, unsigned int &) |
| Return the width and height of the MPEG. More... | |
| int | get_no_frames () |
| Get number of frames. | |
| int | set_frame (long frame_no) |
| Seek to point in file. More... | |
| void | get_framerate (float &) |
| Return the frame rate of the MPEG. More... | |
| bool | eof (void) const |
| Test for end of file. More... | |
Protected Attributes | |
| mpeg3_t* | file |
| MPEG file handle. | |
| unsigned char** | buff |
| Buffer for decoded data. | |
| char* | Y |
| Buffer for decoded YUV Y data. | |
| char* | U |
| Buffer for decoded YUV U data. | |
| char* | V |
| Buffer for decoded YUV V data. | |
| unsigned int | width |
| MPEG width. | |
| unsigned int | height |
| MPEG height. | |
| long | frames |
| Number of frames in movie. | |
| float | framerate |
| Frame rate of the movie. | |
Each image that is extracted from the MPEGSource class is a frame of the MPEG movie.
Definition at line 30 of file MPEGSource.h.
|
|
Initialise an MPEG movie source.
Definition at line 30 of file MPEGSource.cpp. |
|
|
Test for end of file. Returns 1 if end of file, 0 otherwise. Definition at line 196 of file MPEGSource.cpp. |
|
|
Return the frame rate of the MPEG.
Definition at line 186 of file MPEGSource.cpp. |
|
|
Return the width and height of the MPEG.
Reimplemented from ImageSource. Definition at line 164 of file MPEGSource.cpp. |
|
|
Extract a frame of the MPEG movie. The Image could be colour or greyscale depending on the default palette type for this class.
Reimplemented from ImageSource. Definition at line 143 of file MPEGSource.cpp. |
|
|
Extract a frame of the MPEG movie to the greyscale Images brightness buffer.
Reimplemented from ImageSource. Definition at line 111 of file MPEGSource.cpp. |
|
|
Extract a frame of the MPEG movie to the colour Images data buffer.
Reimplemented from ImageSource. Definition at line 90 of file MPEGSource.cpp. |
|
|
Seek to point in file. Returns 0 if OK and -1 otherwise.
Definition at line 176 of file MPEGSource.cpp. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001