
This class handles reading/parsing of PNG image files. More...
#include <Raster/PngParser.H>


Classes | |
| struct | Rep |
Public Member Functions | |
| PngParser (const char *filename) | |
| Intialize with the name of a PNG file. | |
| virtual | ~PngParser () |
| Destructor. | |
| virtual GenericFrameSpec | getFrameSpec () const |
| Get the specifications of the image without fully reading it. | |
| virtual std::string | getComments () const |
| Get the comments from the image without fully reading it. | |
| virtual uint | getTagCount () const |
| Get image tags if the image supports them. | |
| virtual bool | getTag (uint tag, std::string &name, std::string &value) const |
| Get image tags if the image supports them. | |
| virtual GenericFrame | getFrame () |
| Get a GenericFrame representation from the raster file. | |
This class handles reading/parsing of PNG image files.
Currently, grayscale and RGB images are supported, with 8-bit or 16-bit pixel elements.
Definition at line 54 of file PngParser.H.
| PngParser::PngParser | ( | const char * | filename | ) |
Intialize with the name of a PNG file.
Definition at line 124 of file PngParser.C.
| PngParser::~PngParser | ( | ) | [virtual] |
Destructor.
Definition at line 198 of file PngParser.C.
| std::string PngParser::getComments | ( | ) | const [virtual] |
Get the comments from the image without fully reading it.
Implements RasterParser.
Definition at line 223 of file PngParser.C.
| GenericFrame PngParser::getFrame | ( | ) | [virtual] |
Get a GenericFrame representation from the raster file.
This can subsequently be converted to rgb, grayscale, floating-point, or video-yuv.
Implements RasterParser.
Definition at line 235 of file PngParser.C.
| GenericFrameSpec PngParser::getFrameSpec | ( | ) | const [virtual] |
Get the specifications of the image without fully reading it.
Implements RasterParser.
Definition at line 206 of file PngParser.C.
References GenericFrame::GRAY_U8, and GenericFrame::RGB_U8.
| bool PngParser::getTag | ( | uint | tag, | |
| std::string & | name, | |||
| std::string & | value | |||
| ) | const [virtual] |
Get image tags if the image supports them.
Implements RasterParser.
Definition at line 231 of file PngParser.C.
| uint PngParser::getTagCount | ( | ) | const [virtual] |
Get image tags if the image supports them.
Implements RasterParser.
Definition at line 227 of file PngParser.C.
1.6.3