|
Fawkes API
Fawkes Development Version
|
Writer for arbitrarily compressed images. More...
#include <>>

Public Member Functions | |
| CompressedImageWriter (ImageCompressor *ic=NULL) | |
| Constructor. | |
| virtual | ~CompressedImageWriter () |
| Destructor. | |
| virtual void | set_filename (const char *filename) |
| Set filename. | |
| virtual void | set_dimensions (unsigned int width, unsigned int height) |
| Set dimensions of image in pixels. | |
| virtual void | set_buffer (colorspace_t cspace, unsigned char *buffer) |
| Set image buffer. | |
| virtual void | write () |
| Write to file. | |
| virtual void | set_image_compressor (ImageCompressor *ic) |
| Set image compressor. | |
Writer for arbitrarily compressed images.
This class uses any image compressor to write compressed images to a file.
| firevision::CompressedImageWriter::CompressedImageWriter | ( | ImageCompressor * | ic = NULL | ) |
Constructor.
| ic | ImageCompressor to use for image compression |
Definition at line 52 of file compressed.cpp.
| firevision::CompressedImageWriter::~CompressedImageWriter | ( | ) | [virtual] |
Destructor.
Definition at line 64 of file compressed.cpp.
| void firevision::CompressedImageWriter::set_buffer | ( | colorspace_t | cspace, |
| unsigned char * | buffer | ||
| ) | [virtual] |
Set image buffer.
| cspace | color space of image |
| buffer | buffer of image |
Reimplemented from firevision::Writer.
Definition at line 94 of file compressed.cpp.
| void firevision::CompressedImageWriter::set_dimensions | ( | unsigned int | width, |
| unsigned int | height | ||
| ) | [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 83 of file compressed.cpp.
| void firevision::CompressedImageWriter::set_filename | ( | const char * | filename | ) | [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 71 of file compressed.cpp.
| void firevision::CompressedImageWriter::set_image_compressor | ( | ImageCompressor * | ic | ) | [virtual] |
Set image compressor.
Use this method to change the used image compressor at runtime.
| ic | new image compressor. |
Definition at line 136 of file compressed.cpp.
References firevision::ImageCompressor::set_filename(), firevision::ImageCompressor::set_image_dimensions(), and firevision::ImageCompressor::set_image_buffer().
| void firevision::CompressedImageWriter::write | ( | ) | [virtual] |