Fawkes API  Fawkes Development Version
seq_writer.h
1 
2 /***************************************************************************
3  * seq_writer.h - Writes sequences of images
4  *
5  * Generated: Tue Jul 03 08:14:56 2007
6  * Copyright 2007 Daniel Beck
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #ifndef _FIREVISION_FVUTILS_WRITERS_SEQ_WRITER_H_
25 #define _FIREVISION_FVUTILS_WRITERS_SEQ_WRITER_H_
26 
27 #include <core/exception.h>
28 #include <fvutils/color/colorspaces.h>
29 #include <fvutils/writers/writer.h>
30 
31 namespace firevision {
32 
33 class SeqWriter
34 {
35 public:
36  SeqWriter(Writer *writer);
37  ~SeqWriter();
38 
39  void set_path(const char *img_path);
40  void set_filename(const char *filename);
41 
42  void set_dimensions(unsigned int width, unsigned int height);
43  void set_colorspace(colorspace_t cspace);
44 
45  void write(unsigned char *buffer);
46 
47 private:
48  Writer * writer;
49  char * filename;
50  char * img_path;
51  colorspace_t cspace;
52  unsigned int frame_number;
53 };
54 
55 } // end namespace firevision
56 
57 #endif /* FIREVISION_FVUTILS_WRITERS_SEQ_WRITER_H__ */
firevision::SeqWriter::set_path
void set_path(const char *img_path)
Set the path to where the images are stored.
Definition: seq_writer.cpp:73
firevision::SeqWriter::~SeqWriter
~SeqWriter()
Destructor.
Definition: seq_writer.cpp:60
firevision::SeqWriter::set_filename
void set_filename(const char *filename)
Set a (base-) filename.
Definition: seq_writer.cpp:86
firevision::SeqWriter::write
void write(unsigned char *buffer)
Write a single image to disk.
Definition: seq_writer.cpp:116
firevision::SeqWriter::set_colorspace
void set_colorspace(colorspace_t cspace)
Set the colorspace of the image.
Definition: seq_writer.cpp:106
firevision::SeqWriter::SeqWriter
SeqWriter(Writer *writer)
Constructor.
Definition: seq_writer.cpp:46
firevision::SeqWriter::set_dimensions
void set_dimensions(unsigned int width, unsigned int height)
Set the image dimensions.
Definition: seq_writer.cpp:97
firevision::Writer
Interface to write images.
Definition: writer.h:32
firevision::SeqWriter
Writes a sequence of images to disk.
Definition: seq_writer.h:34