This class defines a generic interface for parsing image files. More...
#include <Raster/RasterParser.H>
Public Member Functions | |
virtual | ~RasterParser () |
Virtual destructor for proper destruction of derived classes. | |
virtual GenericFrameSpec | getFrameSpec () const =0 |
Get the specifications of the image without fully reading it. | |
virtual std::string | getComments () const =0 |
Get the comments from the image without fully reading it. | |
virtual uint | getTagCount () const =0 |
Get image tags if the image supports them. | |
virtual bool | getTag (uint tag, std::string &name, std::string &value) const =0 |
Get image tags if the image supports them. | |
virtual GenericFrame | getFrame ()=0 |
Get a GenericFrame representation from the raster file. |
This class defines a generic interface for parsing image files.
Definition at line 53 of file RasterParser.H.
RasterParser::~RasterParser | ( | ) | [virtual] |
Virtual destructor for proper destruction of derived classes.
Definition at line 40 of file RasterParser.C.
virtual std::string RasterParser::getComments | ( | ) | const [pure virtual] |
virtual GenericFrame RasterParser::getFrame | ( | ) | [pure virtual] |
Get a GenericFrame representation from the raster file.
Derived classes should implement this so that the native representation of the GenericFrame best matches the native format of the raster file (e.g., rgb, grayscale, floating-point, video-yuv).
Implemented in DpxParser, JpegParser, PfmParser, PfzParser, PngParser, PnmParser, and YuvParser.
virtual GenericFrameSpec RasterParser::getFrameSpec | ( | ) | const [pure virtual] |
virtual bool RasterParser::getTag | ( | uint | tag, | |
std::string & | name, | |||
std::string & | value | |||
) | const [pure virtual] |
virtual uint RasterParser::getTagCount | ( | ) | const [pure virtual] |