#include <AviReader.hh>
List of all members.
Public Member Functions |
| | AviReader (char const *name, VideoArray< coeff > *arrays[], int rawy, int rawx, int from, int to) |
Static Public Member Functions |
| static double | frameRate (const char *fname) |
| static int | framesInFile (const char *fname) |
| static void | fileDimensions (const char *fname, int &y, int &x) |
Protected Member Functions |
| virtual int | readfmt (void) |
Protected Attributes |
| int | m_ysize |
| int | m_xsize |
Detailed Description
An AVI file reader. Only uncompressed AVIs are supported.
Definition at line 21 of file AviReader.hh.
Constructor & Destructor Documentation
Constructor. Only calls the mother class' constructor to initialize the {ImageArray} reference. All frames in the ranges must be of the same size.
- Parameters:
-
| name | the file name |
| arrays | the array of video arrays for the values |
| rawy | the number of rows |
| rawx | the number of cols |
| from | one greater than the last frame, if equal to `from' then the whole video will be read, if 0, then the video will be read from `from' to the end |
| to | the last frame |
Member Function Documentation
Calculates the frame dimensions in a file.
- Exceptions:
-
| invalid_argument | if the file cannot be read |
- Parameters:
-
| fname | the file name |
| y | the returned number of rows |
| x | the returned number of columns |
Calculates the frame rate.
- Exceptions:
-
| invalid_argument | if the file cannot be read |
- Parameters:
-
- Returns:
- the frame rate
Calculates the number of frames in a file.
- Exceptions:
-
| invalid_argument | if the file cannot be read |
- Parameters:
-
- Returns:
- the number of frames
Read the VID file format. This does the actual work of reading and parsing the image file. It gets called by the {read ()} method.
- Returns:
- 0 if successful, -1 on read error, -2 on file format error.
Implements VideoReader.
Member Data Documentation
The assumed number of columns
Definition at line 67 of file AviReader.hh.
The assumed number of rows
Definition at line 65 of file AviReader.hh.
The documentation for this class was generated from the following file: