25 #ifndef __FIREVISION_FVUTILS_WRITERS_COMPRESSED_H_ 26 #define __FIREVISION_FVUTILS_WRITERS_COMPRESSED_H_ 28 #include <fvutils/writers/writer.h> 35 class ImageCompressor;
virtual void set_dimensions(unsigned int width, unsigned int height)
Set dimensions of image in pixels.
virtual ~CompressedImageWriter()
Destructor.
virtual void set_buffer(colorspace_t cspace, unsigned char *buffer)
Set image buffer.
colorspace_t cspace
The colorspace of the image.
Interface to write images.
CompressedImageWriter(ImageCompressor *ic=NULL)
Constructor.
virtual void set_image_compressor(ImageCompressor *ic)
Set image compressor.
Writer for arbitrarily compressed images.
virtual void set_filename(const char *filename)
Set filename.
unsigned int width
The width of the image.
unsigned char * buffer
The image-buffer.
virtual void write()
Write to file.
Image compressor interface.
unsigned int height
The height of the image.
char * filename
The complete filename.