Fawkes API
Fawkes Development Version
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
imagedecompressor.h
1
2
/***************************************************************************
3
* imagedecompressor.h - image de-compressor interface
4
*
5
* Created: Tue Nov 13 10:50:12 2007
6
* Copyright 2005-2007 Tim Niemueller [www.niemueller.de]
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_UTILS_COMPRESSION_IMAGEDECOMPRESSOR_H_
25
#define __FIREVISION_UTILS_COMPRESSION_IMAGEDECOMPRESSOR_H_
26
27
#include <fvutils/color/colorspaces.h>
28
#include <sys/types.h>
29
30
namespace
firevision {
31
#if 0
/* just to make Emacs auto-indent happy */
32
}
33
#endif
34
35
class
ImageDecompressor
{
36
public
:
37
38
/* Maybe later...
39
* Where to get the compressed image from
40
enum DecompressionSource {
41
COMP_SRC_FILE, < read compressed image from file
42
COMP_SRC_MEM < read compressed image from buffer in memory
43
};
44
*/
45
46
virtual
~
ImageDecompressor
();
47
48
virtual
void
set_image_dimensions(
unsigned
int
width,
unsigned
int
height);
49
virtual
void
set_compressed_buffer(
unsigned
char
*buf,
unsigned
int
buf_size);
50
virtual
void
set_decompressed_buffer(
unsigned
char
*buf,
unsigned
int
buf_size);
51
virtual
void
decompress() = 0;
52
53
protected
:
54
unsigned
int
_width
;
55
unsigned
int
_height
;
56
unsigned
char
*
_compressed_buffer
;
57
unsigned
char
*
_decompressed_buffer
;
58
unsigned
int
_compressed_buffer_size
;
59
unsigned
int
_decompressed_buffer_size
;
60
61
};
62
63
}
// end namespace firevision
64
65
#endif
src
libs
fvutils
compression
imagedecompressor.h
Generated by
1.8.3.1