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
fuse_lut_content.h
1
2
/***************************************************************************
3
* fuse_lut_content.h - FUSE LUT content encapsulation
4
*
5
* Created: Wed Nov 21 16:47:53 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_FVUTILS_NET_FUSE_LUT_CONTENT_H_
25
#define __FIREVISION_FVUTILS_NET_FUSE_LUT_CONTENT_H_
26
27
#include <fvutils/net/fuse.h>
28
#include <fvutils/net/fuse_message_content.h>
29
#include <sys/types.h>
30
31
namespace
firevision {
32
#if 0
/* just to make Emacs auto-indent happy */
33
}
34
#endif
35
36
class
SharedMemoryLookupTable;
37
38
class
FuseLutContent
:
public
FuseMessageContent
39
{
40
public
:
41
FuseLutContent
(
const
char
*lut_id,
void
*buffer,
42
unsigned
int
width,
unsigned
int
height,
43
unsigned
int
depth,
unsigned
int
bpc);
44
FuseLutContent
(
SharedMemoryLookupTable
*l);
45
FuseLutContent
(uint32_t type,
void
*payload,
size_t
payload_size);
46
virtual
~
FuseLutContent
();
47
48
const
char
* lut_id()
const
;
49
unsigned
char
* buffer()
const
;
50
size_t
buffer_size()
const
;
51
unsigned
int
width()
const
;
52
unsigned
int
height()
const
;
53
unsigned
int
depth()
const
;
54
unsigned
int
bytes_per_cell()
const
;
55
56
virtual
void
serialize();
57
58
private
:
59
char
*__lut_id;
60
unsigned
char
*__buffer;
61
size_t
__buffer_size;
62
FUSE_lut_message_header_t
*__header;
63
};
64
65
}
// end namespace firevision
66
67
#endif
firevision::FuseLutContent
FUSE lookup table content.
Definition:
fuse_lut_content.h:38
firevision::FuseMessageContent
FUSE message content.
Definition:
fuse_message_content.h:34
firevision::FUSE_lut_message_header_t
Lookup table packet header.
Definition:
fuse.h:106
firevision::SharedMemoryLookupTable
Shared memory lookup table.
Definition:
shm_lut.h:113
src
libs
fvutils
net
fuse_lut_content.h
Generated by
1.8.7