Fawkes API
Fawkes Development Version
|
PNM file reader. More...
#include <>>
Public Member Functions | |
PNMReader (const char *filename) | |
Constructor. | |
virtual | ~PNMReader () |
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. |
PNM file reader.
firevision::PNMReader::PNMReader | ( | const char * | filename | ) |
colorspace_t firevision::PNMReader::colorspace | ( | ) | [virtual] |
Get colorspace from the just read image.
Implements firevision::Reader.
Definition at line 144 of file pnm.cpp.
Referenced by firevision::MirrorCalibTool::load_mask().
unsigned int firevision::PNMReader::pixel_height | ( | ) | [virtual] |
Get height of read image in pixels.
Implements firevision::Reader.
Definition at line 156 of file pnm.cpp.
Referenced by firevision::MirrorCalibTool::load_mask().
unsigned int firevision::PNMReader::pixel_width | ( | ) | [virtual] |
Get width of read image in pixels.
Implements firevision::Reader.
Definition at line 150 of file pnm.cpp.
Referenced by firevision::MirrorCalibTool::load_mask().
void firevision::PNMReader::read | ( | ) | [virtual] |
Read data from file.
Implements firevision::Reader.
Definition at line 162 of file pnm.cpp.
Referenced by firevision::MirrorCalibTool::load_mask().
void firevision::PNMReader::set_buffer | ( | unsigned char * | yuv422planar_buffer | ) | [virtual] |
Set buffer that the read image should be written to.
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 138 of file pnm.cpp.
Referenced by firevision::MirrorCalibTool::load_mask().