24 #ifndef __FIREVISION_FVUTILS_WRITERS_WRITER_H_
25 #define __FIREVISION_FVUTILS_WRITERS_WRITER_H_
27 #include <fvutils/color/colorspaces.h>
29 namespace firevision {
37 Writer(
const char *extension = 0);
40 virtual void set_filename(
const char *filename);
41 virtual void set_dimensions(
unsigned int width,
unsigned int height);
42 virtual void set_buffer(colorspace_t cspace,
unsigned char *buffer);
43 virtual void write() = 0;
46 virtual void set_extension(
const char *extension);
colorspace_t cspace
The colorspace of the image.
Interface to write images.
char * basename
The basename of the file.
char * extension
The extension of the file.
unsigned int width
The width of the image.
unsigned char * buffer
The image-buffer.
unsigned int height
The height of the image.
char * filename
The complete filename.