26 #ifndef _FIREVISION_FVUTILS_WRITERS_PNM_H_
27 #define _FIREVISION_FVUTILS_WRITERS_PNM_H_
29 #include <fvutils/color/colorspaces.h>
30 #include <fvutils/writers/writer.h>
32 namespace firevision {
48 PNMWriter(PNMFormat format,
const char *
filename,
unsigned int width,
unsigned int height);
54 unsigned int calc_buffer_size();
56 unsigned int write_header(
bool simulate =
false);
57 const char * format2string(PNMFormat format);
60 unsigned int buffer_size;
61 unsigned char *buffer;
62 unsigned char *buffer_start;
PNMWriter(PNMFormat format)
Constructor.
virtual void set_buffer(colorspace_t cspace, unsigned char *buffer)
Set image buffer.
virtual void write()
Write to file.
Interface to write images.
colorspace_t cspace
The colorspace of the image.
char * filename
The complete filename.