firevision::SeqWriter Class Reference

Writes a sequence of images to disk. More...

#include <fvutils/writers/seq_writer.h>

List of all members.

Public Member Functions

 SeqWriter (Writer *writer)
 Constructor.
 ~SeqWriter ()
 Destructor.
void set_path (const char *img_path)
 Set the path to where the images are stored.
void set_filename (const char *filename)
 Set a (base-) filename.
void set_dimensions (unsigned int width, unsigned int height)
 Set the image dimensions.
void set_colorspace (colorspace_t cspace)
 Set the colorspace of the image.
void write (unsigned char *buffer)
 Write a single image to disk.

Detailed Description

Writes a sequence of images to disk.

Author:
Daniel Beck

Definition at line 36 of file seq_writer.h.


Constructor & Destructor Documentation

firevision::SeqWriter::SeqWriter ( Writer writer  ) 

Constructor.

Parameters:
writer the actual image writer

Definition at line 50 of file seq_writer.cpp.

firevision::SeqWriter::~SeqWriter (  ) 

Destructor.

Definition at line 65 of file seq_writer.cpp.


Member Function Documentation

void firevision::SeqWriter::set_colorspace ( colorspace_t  cspace  ) 

Set the colorspace of the image.

Parameters:
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.

Parameters:
width the width of the image
height the height of the image

Definition at line 99 of file seq_writer.cpp.

References firevision::Writer::set_dimensions().

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 .

Parameters:
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.

Parameters:
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

Parameters:
buffer the image buffer that is written to disk

Definition at line 116 of file seq_writer.cpp.

References firevision::Writer::set_buffer(), firevision::Writer::set_filename(), and firevision::Writer::write().

Referenced by FvRetrieverThread::loop().


The documentation for this class was generated from the following files:

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1