24 #include <fvutils/writers/writer.h> 26 #include <core/exception.h> 27 #include <core/exceptions/system.h> 84 this->extension = strdup(extension);
108 free(this->filename);
110 if ( 0 != strstr(filename,
".") ) {
111 this->filename = strdup(filename);
155 free(this->extension);
156 this->extension = strdup(extension);
160 this->
filename = (
char *) malloc( strlen(
basename) + strlen(extension) + 1 );
colorspace_t cspace
The colorspace of the image.
virtual void set_buffer(colorspace_t cspace, unsigned char *buffer)
Set image buffer.
virtual void set_extension(const char *extension)
Set the filename extension for file written by this writer.
Writer(const char *extension=0)
Constructor.
virtual ~Writer()
Virtual empty destructor.
Base class for exceptions in Fawkes.
char * basename
The basename of the file.
virtual void set_filename(const char *filename)
Set filename.
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.
virtual void set_dimensions(unsigned int width, unsigned int height)
Set dimensions of image in pixels.
char * filename
The complete filename.
System ran out of memory and desired operation could not be fulfilled.