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

#include <VideoReader.hh>

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

List of all members.

Public Member Functions

 VideoReader (char const *name, VideoArray< coeff > *arrays[], int channels, int from, int to)
virtual ~VideoReader (void)
virtual void read (void)

Protected Member Functions

virtual int readfmt (void)=0

Protected Attributes

int m_to
int m_from

Detailed Description

An abstract color video reader. The video is being read putting its color channels into separate greyscale video objects.

Definition at line 24 of file VideoReader.hh.


Constructor & Destructor Documentation

VideoReader::VideoReader ( char const *  name,
VideoArray< coeff > *  arrays[],
int  channels,
int  from,
int  to 
) [inline]

Constructor. Only calls the mother class' constructor to initialize the {ImageArray} reference.

Parameters:
namethe file name
arraysthe array of video arrays for the values
channelsthe number of colors
fromthe first frame
tothe last frame

Definition at line 39 of file VideoReader.hh.

References m_from, and m_to.

virtual VideoReader::~VideoReader ( void  ) [inline, virtual]

Destructor - does nothing.

Definition at line 44 of file VideoReader.hh.


Member Function Documentation

virtual void VideoReader::read ( void  ) [virtual]

Read the video . All steps independent of the file format will be performed, like testing for file readability etc.

Exceptions:
invalid_argumentinvalid file format
ios_base::failurea read error has occured [not supported by all libraries, so eventually {invalid_argument} instead]
virtual int VideoReader::readfmt ( void  ) [protected, pure virtual]

Read different file formats (abstract). This is the method to be implemented for every video file format. It will be called by the {read ()} method.

Returns:
0 if successful, -1 on read error, -2 on file format error.

Implemented in AviReader, and VidReader.


Member Data Documentation

int VideoReader::m_from [protected]

the first frame

Definition at line 66 of file VideoReader.hh.

Referenced by VideoReader().

int VideoReader::m_to [protected]

the last frame

Definition at line 64 of file VideoReader.hh.

Referenced by VideoReader().


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