|
Fawkes API
Fawkes Development Version
|
FUSE lookup table content. More...
#include <>>

Public Member Functions | |
| FuseLutContent (const char *lut_id, void *buffer, unsigned int width, unsigned int height, unsigned int depth, unsigned int bpc) | |
| Constructor. | |
| FuseLutContent (SharedMemoryLookupTable *l) | |
| Constructor. | |
| FuseLutContent (uint32_t type, void *payload, size_t payload_size) | |
| Constructor. | |
| const char * | lut_id () const |
| Get LUT ID. | |
| unsigned char * | buffer () const |
| Get buffer. | |
| size_t | buffer_size () const |
| Get buffer size. | |
| unsigned int | width () const |
| Width of LUT. | |
| unsigned int | height () const |
| Height of LUT. | |
| unsigned int | depth () const |
| Depth of LUT. | |
| unsigned int | bytes_per_cell () const |
| Bytes per cell in LUT. | |
| virtual void | serialize () |
| Serialize message content. | |
Public Member Functions inherited from firevision::FuseMessageContent | |
| FuseMessageContent () | |
| Constructor. | |
| virtual | ~FuseMessageContent () |
| Virtual empty destructor. | |
| virtual void * | payload () const |
| Return pointer to payload. | |
| virtual size_t | payload_size () const |
| Return payload size. | |
| void | free_payload () |
| Free message payload. | |
Additional Inherited Members | |
Protected Member Functions inherited from firevision::FuseMessageContent | |
| void | copy_payload (size_t offset, void *buf, size_t len) |
| Copy payload into payload buffer to a specified offset. | |
Protected Attributes inherited from firevision::FuseMessageContent | |
| void * | _payload |
| Pointer to payload. | |
| size_t | _payload_size |
| Payloda size. | |
FUSE lookup table content.
Definition at line 38 of file fuse_lut_content.h.
| firevision::FuseLutContent::FuseLutContent | ( | const char * | lut_id, |
| void * | buffer, | ||
| unsigned int | width, | ||
| unsigned int | height, | ||
| unsigned int | depth, | ||
| unsigned int | bpc | ||
| ) |
Constructor.
Create a brand new FuseLutContent from a raw buffer.
| lut_id | LUT ID |
| buffer | buffer that holds the LUT data |
| width | LUT width |
| height | LUT height |
| depth | LUT depth |
| bpc | LUT bytes per cell |
Definition at line 114 of file fuse_lut_content.cpp.
| firevision::FuseLutContent::FuseLutContent | ( | SharedMemoryLookupTable * | b | ) |
Constructor.
| b | lookup table to copy data from |
Definition at line 79 of file fuse_lut_content.cpp.
References firevision::SharedMemoryLookupTable::buffer(), firevision::SharedMemoryLookupTable::bytes_per_cell(), firevision::SharedMemoryLookupTable::depth(), firevision::SharedMemoryLookupTable::height(), firevision::SharedMemoryLookupTable::lut_id(), and firevision::SharedMemoryLookupTable::width().
| firevision::FuseLutContent::FuseLutContent | ( | uint32_t | type, |
| void * | payload, | ||
| size_t | payload_size | ||
| ) |
Constructor.
| type | content type, must be FUSE_MT_LUT |
| payload | payload |
| payload_size | size of payload |
| TypeMismatchException | thrown if type does not equal FUSE_MT_LUT |
Definition at line 52 of file fuse_lut_content.cpp.
| unsigned char * firevision::FuseLutContent::buffer | ( | ) | const |
Get buffer.
Definition at line 159 of file fuse_lut_content.cpp.
Referenced by FuseTransferWidget::fuse_inbound_received(), FireVisionNetworkTool::fuse_inbound_received(), and firevision::FuseServerClientThread::process_setlut_message().
| size_t firevision::FuseLutContent::buffer_size | ( | ) | const |
Get buffer size.
Definition at line 169 of file fuse_lut_content.cpp.
| unsigned int firevision::FuseLutContent::bytes_per_cell | ( | ) | const |
Bytes per cell in LUT.
Definition at line 208 of file fuse_lut_content.cpp.
Referenced by firevision::FuseServerClientThread::process_setlut_message().
| unsigned int firevision::FuseLutContent::depth | ( | ) | const |
Depth of LUT.
Definition at line 198 of file fuse_lut_content.cpp.
Referenced by FuseTransferWidget::fuse_inbound_received(), FireVisionNetworkTool::fuse_inbound_received(), and firevision::FuseServerClientThread::process_setlut_message().
| unsigned int firevision::FuseLutContent::height | ( | ) | const |
Height of LUT.
Definition at line 189 of file fuse_lut_content.cpp.
Referenced by FuseTransferWidget::fuse_inbound_received(), FireVisionNetworkTool::fuse_inbound_received(), and firevision::FuseServerClientThread::process_setlut_message().
| const char * firevision::FuseLutContent::lut_id | ( | ) | const |
Get LUT ID.
Definition at line 150 of file fuse_lut_content.cpp.
Referenced by firevision::FuseServerClientThread::process_setlut_message().
|
virtual |
Serialize message content.
Generate a single contiguous buffer. Make _payload point to this buffer and _payload_size contain the size of the buffer.
Implements firevision::FuseMessageContent.
Definition at line 215 of file fuse_lut_content.cpp.
| unsigned int firevision::FuseLutContent::width | ( | ) | const |
Width of LUT.
Definition at line 179 of file fuse_lut_content.cpp.
Referenced by FuseTransferWidget::fuse_inbound_received(), FireVisionNetworkTool::fuse_inbound_received(), and firevision::FuseServerClientThread::process_setlut_message().