Wavelet and Image class library  1.3.2
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
AviReader Class Reference

#include <AviReader.hh>

Inheritance diagram for AviReader:
Inheritance graph
[legend]
Collaboration diagram for AviReader:
Collaboration graph
[legend]

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

AviReader::AviReader ( char const *  name,
VideoArray< coeff > *  arrays[],
int  rawy,
int  rawx,
int  from,
int  to 
)

Constructor. Only calls the mother class' constructor to initialize the {ImageArray} reference. All frames in the ranges must be of the same size.

Parameters:
namethe file name
arraysthe array of video arrays for the values
rawythe number of rows
rawxthe number of cols
fromone 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
tothe last frame

Member Function Documentation

static void AviReader::fileDimensions ( const char *  fname,
int &  y,
int &  x 
) [static]

Calculates the frame dimensions in a file.

Exceptions:
invalid_argumentif the file cannot be read
Parameters:
fnamethe file name
ythe returned number of rows
xthe returned number of columns
static double AviReader::frameRate ( const char *  fname) [static]

Calculates the frame rate.

Exceptions:
invalid_argumentif the file cannot be read
Parameters:
fnamethe file name
Returns:
the frame rate
static int AviReader::framesInFile ( const char *  fname) [static]

Calculates the number of frames in a file.

Exceptions:
invalid_argumentif the file cannot be read
Parameters:
fnamethe file name
Returns:
the number of frames
virtual int AviReader::readfmt ( void  ) [protected, virtual]

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

int AviReader::m_xsize [protected]

The assumed number of columns

Definition at line 67 of file AviReader.hh.

int AviReader::m_ysize [protected]

The assumed number of rows

Definition at line 65 of file AviReader.hh.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines