Fawkes API
Fawkes Development Version
|
#include <>>
Public Member Functions | |
CompressedImageWriter (ImageCompressor *ic=NULL) | |
Constructor. More... | |
virtual | ~CompressedImageWriter () |
Destructor. More... | |
virtual void | set_filename (const char *filename) |
Set filename. More... | |
virtual void | set_dimensions (unsigned int width, unsigned int height) |
Set dimensions of image in pixels. More... | |
virtual void | set_buffer (colorspace_t cspace, unsigned char *buffer) |
Set image buffer. More... | |
virtual void | write () |
virtual void | set_image_compressor (ImageCompressor *ic) |
Set image compressor. More... | |
![]() | |
Writer (const char *extension=0) | |
Constructor. More... | |
virtual | ~Writer () |
Virtual empty destructor. More... | |
Additional Inherited Members | |
![]() | |
virtual void | set_extension (const char *extension) |
Set the filename extension for file written by this writer. More... | |
![]() | |
char * | filename |
char * | basename |
char * | extension |
unsigned int | width |
unsigned int | height |
colorspace_t | cspace |
unsigned char * | buffer |
Writer for arbitrarily compressed images. This class uses any image compressor to write compressed images to a file.
Definition at line 39 of file compressed.h.
firevision::CompressedImageWriter::CompressedImageWriter | ( | ImageCompressor * | ic = NULL | ) |
Constructor.
ic | ImageCompressor to use for image compression |
Definition at line 53 of file compressed.cpp.
|
virtual |
|
virtual |
Set image buffer.
cspace | color space of image |
buffer | buffer of image |
Reimplemented from firevision::Writer.
Definition at line 91 of file compressed.cpp.
|
virtual |
Set dimensions of image in pixels.
width | width of image in pixels |
height | height of image in pixels. |
Reimplemented from firevision::Writer.
Definition at line 81 of file compressed.cpp.
|
virtual |
Set filename.
filename | name of file to write to. This can either be the complete filename (including) extension or the basename only in which case the extension is added. |
Reimplemented from firevision::Writer.
Definition at line 70 of file compressed.cpp.
References firevision::Writer::filename, and firevision::ImageCompressor::set_filename().
|
virtual |
Set image compressor.
Use this method to change the used image compressor at runtime.
ic | new image compressor. |
Definition at line 131 of file compressed.cpp.
|
virtual |