Fawkes API
Fawkes Development Version
|
Writes a sequence of images to disk. More...
#include <>>
Public Member Functions | |
SeqWriter (Writer *writer) | |
Constructor. More... | |
~SeqWriter () | |
Destructor. More... | |
void | set_path (const char *img_path) |
Set the path to where the images are stored. More... | |
void | set_filename (const char *filename) |
Set a (base-) filename. More... | |
void | set_dimensions (unsigned int width, unsigned int height) |
Set the image dimensions. More... | |
void | set_colorspace (colorspace_t cspace) |
Set the colorspace of the image. More... | |
void | write (unsigned char *buffer) |
Write a single image to disk. More... | |
Writes a sequence of images to disk.
Definition at line 36 of file seq_writer.h.
firevision::SeqWriter::SeqWriter | ( | Writer * | writer | ) |
firevision::SeqWriter::~SeqWriter | ( | ) |
Destructor.
Definition at line 65 of file seq_writer.cpp.
void firevision::SeqWriter::set_colorspace | ( | colorspace_t | cspace | ) |
Set the colorspace of the image.
cspace | the colospace |
Definition at line 107 of file seq_writer.cpp.
Referenced by FvRetrieverThread::init().
void firevision::SeqWriter::set_dimensions | ( | unsigned int | width, |
unsigned int | height | ||
) |
Set the image dimensions.
width | the width of the image |
height | the height of the image |
Definition at line 99 of file seq_writer.cpp.
Referenced by FvRetrieverThread::init().
void firevision::SeqWriter::set_filename | ( | const char * | filename | ) |
Set a (base-) filename.
If a filename is set the name of the files will look like this: filename_index.ext .
filename | the (base-) filename |
Definition at line 89 of file seq_writer.cpp.
void firevision::SeqWriter::set_path | ( | const char * | img_path | ) |
Set the path to where the images are stored.
img_path | the image path |
Definition at line 77 of file seq_writer.cpp.
Referenced by FvRetrieverThread::init().
void firevision::SeqWriter::write | ( | unsigned char * | buffer | ) |
Write a single image to disk.
A running number is added to the filename
buffer | the image buffer that is written to disk |
Definition at line 116 of file seq_writer.cpp.
Referenced by FvRetrieverThread::loop().