PngParser Class Reference

This class handles reading/parsing of PNG image files. More...

#include <Raster/PngParser.H>

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

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

PngParser::PngParser ( const char *  filename  ) 

Intialize with the name of a PNG file.

Definition at line 124 of file PngParser.C.

References ASSERT, and sformat().

PngParser::~PngParser (  )  [virtual]

Destructor.

Definition at line 198 of file PngParser.C.


Member Function Documentation

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.


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