|
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. More... | |
| FuseLutContent (SharedMemoryLookupTable *l) | |
| Constructor. More... | |
| FuseLutContent (uint32_t type, void *payload, size_t payload_size) | |
| Constructor. More... | |
| const char * | lut_id () const |
| Get LUT ID. More... | |
| unsigned char * | buffer () const |
| Get buffer. More... | |
| size_t | buffer_size () const |
| Get buffer size. More... | |
| unsigned int | width () const |
| Width of LUT. More... | |
| unsigned int | height () const |
| Height of LUT. More... | |
| unsigned int | depth () const |
| Depth of LUT. More... | |
| unsigned int | bytes_per_cell () const |
| Bytes per cell in LUT. More... | |
| virtual void | serialize () |
| Serialize message content. More... | |
Public Member Functions inherited from firevision::FuseMessageContent | |
| FuseMessageContent () | |
| Constructor. More... | |
| virtual | ~FuseMessageContent () |
| Virtual empty destructor. More... | |
| virtual void * | payload () const |
| Return pointer to payload. More... | |
| virtual size_t | payload_size () const |
| Return payload size. More... | |
| void | free_payload () |
| Free message payload. More... | |
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. More... | |
Protected Attributes inherited from firevision::FuseMessageContent | |
| void * | _payload |
| Pointer to payload. More... | |
| size_t | _payload_size |
| Payloda size. More... | |
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.
References firevision::FuseMessageContent::_payload, firevision::FuseMessageContent::_payload_size, firevision::FUSE_lut_message_header_t::bytes_per_cell, firevision::FUSE_lut_message_header_t::depth, firevision::FUSE_lut_message_header_t::height, firevision::FUSE_lut_message_header_t::lut_id, and firevision::FUSE_lut_message_header_t::width.
| 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::FuseMessageContent::_payload, firevision::FuseMessageContent::_payload_size, firevision::SharedMemoryLookupTable::buffer(), firevision::FUSE_lut_message_header_t::bytes_per_cell, firevision::SharedMemoryLookupTable::bytes_per_cell(), firevision::FUSE_lut_message_header_t::depth, firevision::SharedMemoryLookupTable::depth(), firevision::FUSE_lut_message_header_t::height, firevision::SharedMemoryLookupTable::height(), firevision::FUSE_lut_message_header_t::lut_id, firevision::SharedMemoryLookupTable::lut_id(), firevision::FUSE_lut_message_header_t::width, 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.
References firevision::FuseMessageContent::_payload, firevision::FuseMessageContent::_payload_size, firevision::FUSE_lut_message_header_t::bytes_per_cell, firevision::FUSE_lut_message_header_t::depth, firevision::FUSE_lut_message_header_t::height, firevision::FUSE_lut_message_header_t::lut_id, firevision::FuseMessageContent::payload(), firevision::FuseMessageContent::payload_size(), and firevision::FUSE_lut_message_header_t::width.
| 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.
References firevision::FUSE_lut_message_header_t::bytes_per_cell.
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.
References firevision::FUSE_lut_message_header_t::depth.
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.
References firevision::FUSE_lut_message_header_t::height.
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.
References firevision::FUSE_lut_message_header_t::width.
Referenced by FuseTransferWidget::fuse_inbound_received(), FireVisionNetworkTool::fuse_inbound_received(), and firevision::FuseServerClientThread::process_setlut_message().