firevision::PNGReader Class Reference

PNG file reader. More...

#include <fvutils/readers/png.h>

Inheritance diagram for firevision::PNGReader:

[legend]
List of all members.

Public Member Functions

 PNGReader (const char *filename)
 Constructor.
virtual ~PNGReader ()
 Destructor.
virtual void set_buffer (unsigned char *yuv422planar_buffer)
 Set buffer that the read image should be written to.
virtual colorspace_t colorspace ()
 Get colorspace from the just read image.
virtual unsigned int pixel_width ()
 Get width of read image in pixels.
virtual unsigned int pixel_height ()
 Get height of read image in pixels.
virtual void read ()
 Read data from file.

Detailed Description

PNG file reader.

Author:
Tim Niemueller

Definition at line 36 of file png.h.


Constructor & Destructor Documentation

firevision::PNGReader::PNGReader ( const char *  filename  ) 

Constructor.

Parameters:
filename file to read

Definition at line 59 of file png.cpp.

firevision::PNGReader::~PNGReader (  )  [virtual]

Destructor.

Definition at line 165 of file png.cpp.


Member Function Documentation

colorspace_t firevision::PNGReader::colorspace (  )  [virtual]

Get colorspace from the just read image.

Returns:
colorspace

Implements firevision::Reader.

Definition at line 185 of file png.cpp.

References firevision::YUV422_PLANAR.

Referenced by firevision::SiftppClassifier::SiftppClassifier().

unsigned int firevision::PNGReader::pixel_height (  )  [virtual]

Get height of read image in pixels.

Returns:
height of image

Implements firevision::Reader.

Definition at line 203 of file png.cpp.

Referenced by read(), and firevision::SiftppClassifier::SiftppClassifier().

unsigned int firevision::PNGReader::pixel_width (  )  [virtual]

Get width of read image in pixels.

Returns:
width of image

Implements firevision::Reader.

Definition at line 192 of file png.cpp.

Referenced by read(), and firevision::SiftppClassifier::SiftppClassifier().

void firevision::PNGReader::read (  )  [virtual]

Read data from file.

Implements firevision::Reader.

Definition at line 214 of file png.cpp.

References firevision::convert_line_rgb_to_yuv422planar(), pixel_height(), and pixel_width().

Referenced by firevision::SiftppClassifier::SiftppClassifier().

void firevision::PNGReader::set_buffer ( unsigned char *  yuv422planar_buffer  )  [virtual]

Set buffer that the read image should be written to.

Parameters:
yuv422planar_buffer buffer to write image to. The reader must ensure that it does the proper conversion (if needed) to YUV 422 planar format.

Implements firevision::Reader.

Definition at line 178 of file png.cpp.

Referenced by firevision::SiftppClassifier::SiftppClassifier().


The documentation for this class was generated from the following files:
Generated on Tue Feb 22 13:31:44 2011 for Fawkes API by  doxygen 1.4.7