26 #ifndef __FIREVISION_FVUTILS_WRITERS_PNM_H_ 27 #define __FIREVISION_FVUTILS_WRITERS_PNM_H_ 30 #include <fvutils/color/colorspaces.h> 31 #include <fvutils/writers/writer.h> 53 PNMWriter(PNMFormat format,
const char *
filename,
unsigned int width,
unsigned int height);
60 unsigned int calc_buffer_size();
62 unsigned int write_header(
bool simulate =
false);
63 const char * format2string(PNMFormat format);
66 unsigned int buffer_size;
67 unsigned char *buffer;
68 unsigned char *buffer_start;
colorspace_t cspace
The colorspace of the image.
Interface to write images.
virtual void write()
Write to file.
PNMWriter(PNMFormat format)
Constructor.
virtual void set_buffer(colorspace_t cspace, unsigned char *buffer)
Set image buffer.
char * filename
The complete filename.