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

Public Methods | |
| AVISource (char *path) | |
| Initialise an MPEG movie source. More... | |
| ~AVISource () | |
| Close AVI file and free up the memory. | |
| virtual ImageSource& | operator>> (ImageRGB &) |
| Extract a frame of the AVI movie to the colour Images data buffer. More... | |
| virtual ImageSource& | operator>> (ImageGrey &) |
| Extract a frame of the AVI movie to the greyscale Images brightness buffer. More... | |
| virtual ImageSource& | operator>> (Image &) |
| Extract a frame of the AVI 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 | |
| AVFormatContext* | pFormatCtx |
| int | i |
| int | videoStream |
| AVCodecContext* | pCodecCtx |
| codec context for the video stream. | |
| AVCodec* | pCodec |
| decoder for the video stream. | |
| AVFrame* | pFrame |
| YUV video frame. | |
| AVFrame* | pFrameRGB |
| int | numBytes |
| uint8_t* | buffer |
| unsigned char** | buff |
| Buffer for decoded 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 AVISource class is a frame of the MPEG movie.
Definition at line 30 of file AVISource.h.
|
|
Initialise an MPEG movie source.
Definition at line 32 of file AVISource.cpp. |
|
|
Test for end of file. Returns 1 if end of file, 0 otherwise. Definition at line 359 of file AVISource.cpp. |
|
|
Return the frame rate of the MPEG.
Definition at line 349 of file AVISource.cpp. |
|
|
Return the width and height of the MPEG.
Reimplemented from ImageSource. Definition at line 325 of file AVISource.cpp. |
|
|
Extract a frame of the AVI movie. The Image could be colour or greyscale depending on the default palette type for this class.
Reimplemented from ImageSource. Definition at line 304 of file AVISource.cpp. |
|
|
Extract a frame of the AVI movie to the greyscale Images brightness buffer.
Reimplemented from ImageSource. Definition at line 288 of file AVISource.cpp. |
|
|
Extract a frame of the AVI movie to the colour Images data buffer.
Reimplemented from ImageSource. Definition at line 156 of file AVISource.cpp. |
|
|
Seek to point in file. Returns 0 if OK and -1 otherwise.
Definition at line 337 of file AVISource.cpp. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001