Low-level decoder for multi-frame "mgz" file format. More...
#include <Media/MgzDecoder.H>
Public Member Functions | |
MgzDecoder (const std::string &fname) | |
Constructor. | |
virtual | ~MgzDecoder () |
Virtual destructor for safe inheritance. | |
virtual GenericFrame | readFrame () |
Read an RGB image from the stream. |
Low-level decoder for multi-frame "mgz" file format.
Definition at line 46 of file MgzDecoder.H.
MgzDecoder::MgzDecoder | ( | const std::string & | fname | ) |
Constructor.
Definition at line 45 of file MgzDecoder.C.
MgzDecoder::~MgzDecoder | ( | ) | [virtual] |
Virtual destructor for safe inheritance.
Definition at line 60 of file MgzDecoder.C.
GenericFrame MgzDecoder::readFrame | ( | ) | [virtual] |
Read an RGB image from the stream.
Definition at line 73 of file MgzDecoder.C.
References ArrayData< T >::dataw(), Image< T >::getArrayPtr(), getFrameSize(), GenericFrame::GRAY_F32, GenericFrame::GRAY_U8, NO_INIT, GenericFrame::NONE, GenericFrame::RGB_F32, GenericFrame::RGB_U8, Dims::sz(), and ArrayHandle< T >::uniq().
Referenced by MgzInputStream::readFrame().