Fawkes API
Fawkes Development Version
fvraw.h
1
2
/***************************************************************************
3
* fvraw.h - writer for FireVision raw files
4
*
5
* Generated: Sat Mar 25 00:05:26 2006
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_FVUTILS_WRITERS_FVRAW_H_
25
#define _FIREVISION_FVUTILS_WRITERS_FVRAW_H_
26
27
#include <fvutils/writers/writer.h>
28
29
namespace
firevision {
30
31
class
FvRawWriter :
public
Writer
32
{
33
public
:
34
FvRawWriter
();
35
FvRawWriter
(
const
char
*
filename
,
unsigned
int
width
,
unsigned
int
height
);
36
FvRawWriter
(
const
char
*
filename
,
37
unsigned
int
width
,
38
unsigned
int
height
,
39
colorspace_t colorspace,
40
unsigned
char
*buffer);
41
virtual
~FvRawWriter
();
42
43
virtual
void
set_dimensions
(
unsigned
int
width
,
unsigned
int
height
);
44
virtual
void
set_buffer
(colorspace_t
cspace
,
unsigned
char
*buffer);
45
virtual
void
write
();
46
virtual
unsigned
char
*
get_write_buffer
();
47
48
static
const
unsigned
int
FILE_IDENTIFIER
;
49
50
/** FvRaw image file header. */
51
typedef
struct
52
{
53
unsigned
int
file_id;
/**< file id */
54
colorspace_t colorspace;
/**< color space */
55
unsigned
int
width
;
/**< width of image in pixels */
56
unsigned
int
height
;
/**< height of image in pixels */
57
} FvRawHeader;
58
59
private
:
60
FvRawHeader
header;
61
unsigned
char
*buffer;
62
};
63
64
}
// end namespace firevision
65
66
#endif
firevision::Writer::cspace
colorspace_t cspace
Definition:
writer.h:64
firevision::FvRawWriter::get_write_buffer
virtual unsigned char * get_write_buffer()
Get write buffer.
Definition:
fvraw.cpp:160
firevision::FvRawWriter::FvRawWriter
FvRawWriter()
Constructor.
Definition:
fvraw.cpp:46
firevision::FvRawWriter::write
virtual void write()
Definition:
fvraw.cpp:118
firevision::FvRawWriter::FvRawHeader
FvRaw image file header.
Definition:
fvraw.h:63
firevision::FvRawWriter::set_buffer
virtual void set_buffer(colorspace_t cspace, unsigned char *buffer)
Set image buffer.
Definition:
fvraw.cpp:111
firevision::FvRawWriter::~FvRawWriter
virtual ~FvRawWriter()
Destructor.
Definition:
fvraw.cpp:99
firevision::Writer::filename
char * filename
Definition:
writer.h:57
firevision::FvRawWriter::FILE_IDENTIFIER
static const unsigned int FILE_IDENTIFIER
File identifier for FvRaw images.
Definition:
fvraw.h:60
firevision::FvRawWriter::set_dimensions
virtual void set_dimensions(unsigned int width, unsigned int height)
Set dimensions of image in pixels.
Definition:
fvraw.cpp:104
firevision::Writer::height
unsigned int height
Definition:
writer.h:62
firevision::Writer::width
unsigned int width
Definition:
writer.h:61
src
libs
fvutils
writers
fvraw.h
Generated by
1.8.17