MrawvInputStream Class Reference

MrawvInputStream is a wrapper class to read frames from raw video files. More...

#include <Media/MrawvInputStream.H>

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

List of all members.

Public Member Functions

 MrawvInputStream (OptionManager &mgr, const std::string &descrName="Multi Raw Video Input Stream", const std::string &tagName="MrawvInputStream")
 Construct an mgzstream object for mgz input.
virtual ~MrawvInputStream ()
 Virtual destructor.
virtual void setConfigInfo (const std::string &filename)
 Override from FrameIstream; just calls setFileName().
virtual GenericFrameSpec peekFrameSpec ()
 get frame specifications, peeking at the first frame if necessary
void setFileName (const std::string &fname)
 Configure the MGZ Stream for decoding.
virtual GenericFrame readFrame ()
 Read the next frame from the mgz stream.

Detailed Description

MrawvInputStream is a wrapper class to read frames from raw video files.

This class handles files that contain many frames in just one file. Raster/YuvParser deals with data where there is one file per frame.

Definition at line 55 of file MrawvInputStream.H.


Constructor & Destructor Documentation

MrawvInputStream::MrawvInputStream ( OptionManager mgr,
const std::string descrName = "Multi Raw Video Input Stream",
const std::string tagName = "MrawvInputStream" 
)

Construct an mgzstream object for mgz input.

Definition at line 54 of file MrawvInputStream.C.

MrawvInputStream::~MrawvInputStream (  )  [virtual]

Virtual destructor.

Definition at line 62 of file MrawvInputStream.C.


Member Function Documentation

GenericFrameSpec MrawvInputStream::peekFrameSpec (  )  [virtual]

get frame specifications, peeking at the first frame if necessary

Implements FrameIstream.

Definition at line 78 of file MrawvInputStream.C.

References GenericFrame::frameSpec(), GenericFrame::initialized(), and readFrame().

GenericFrame MrawvInputStream::readFrame (  )  [virtual]

Read the next frame from the mgz stream.

The native representation of the GenericFrame will be the same as what it was when the frame was stored into the stream.

Implements FrameIstream.

Definition at line 104 of file MrawvInputStream.C.

References GenericFrame::initialized(), and MrawvDecoder::readFrame().

Referenced by peekFrameSpec().

void MrawvInputStream::setConfigInfo ( const std::string filename  )  [virtual]

Override from FrameIstream; just calls setFileName().

Reimplemented from FrameIstream.

Definition at line 68 of file MrawvInputStream.C.

References setFileName().

void MrawvInputStream::setFileName ( const std::string fname  ) 

Configure the MGZ Stream for decoding.

Parameters:
fname name of file from which frames are to be read from

Definition at line 95 of file MrawvInputStream.C.

Referenced by setConfigInfo().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:37 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3