compressed.h

00001
00002 /***************************************************************************
00003  *  compression_writer.h - Write image arbitrarily compressed with an
00004  *                         ImageCompressor
00005  *
00006  *  Generated: Sat Aug 12 13:31:52 2006
00007  *  Copyright  2005-2007  Tim Niemueller [www.niemueller.de]
00008  *
00009  ****************************************************************************/
00010
00011 /*  This program is free software; you can redistribute it and/or modify
00012  *  it under the terms of the GNU General Public License as published by
00013  *  the Free Software Foundation; either version 2 of the License, or
00014  *  (at your option) any later version. A runtime exception applies to
00015  *  this software (see LICENSE.GPL_WRE file mentioned below for details).
00016  *
00017  *  This program is distributed in the hope that it will be useful,
00018  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  *  GNU Library General Public License for more details.
00021  *
00022  *  Read the full text in the LICENSE.GPL_WRE file in the doc directory.
00023  */
00024
00025 #ifndef __FIREVISION_FVUTILS_WRITERS_COMPRESSED_H_
00026 #define __FIREVISION_FVUTILS_WRITERS_COMPRESSED_H_
00027 
00028 #include <fvutils/writers/writer.h>
00029
00030 class ImageCompressor;
00031
00032 class CompressedImageWriter : public Writer {
00033
00034  public:
00035   CompressedImageWriter(ImageCompressor *ic = NULL);
00036   virtual ~CompressedImageWriter();
00037
00038   virtual void             set_filename(const char *filename);
00039   virtual void             set_dimensions(unsigned int width, unsigned int height);
00040   virtual void             set_buffer(colorspace_t cspace, unsigned char *buffer);
00041   virtual void             write();
00042
00043   virtual void             set_image_compressor(ImageCompressor *ic);
00044
00045  private:
00046   ImageCompressor *image_compressor;
00047
00048 };
00049
00050
00051 #endif