24 #ifndef _FIREVISION_UTILS_READERS_BITMAP_H_
25 #define _FIREVISION_UTILS_READERS_BITMAP_H_
27 #include <fvutils/readers/reader.h>
31 namespace firevision {
39 virtual void set_buffer(
unsigned char *yuv422planar_buffer);
47 unsigned char *m_yuv_buffer;
48 unsigned char *m_pnm_buffer;
52 unsigned int m_img_width;
53 unsigned int m_img_height;
54 unsigned int m_img_depth;
virtual void set_buffer(unsigned char *yuv422planar_buffer)
Set buffer that the read image should be written to.
PNMReader(const char *filename)
Constructor.
virtual unsigned int pixel_width()
Get width of read image in pixels.
virtual ~PNMReader()
Destructor.
virtual unsigned int pixel_height()
Get height of read image in pixels.
virtual colorspace_t colorspace()
Get colorspace from the just read image.
virtual void read()
Read data from file.