FuseLutContent Class Reference
[FireVision FUSE Network Protocol, FireVision Image Processing Framework and Applications]
FUSE lookup table content.
More...
#include <fvutils/net/fuse_lut_content.h>

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. | |
Detailed Description
FUSE lookup table content.
Definition at line 33 of file fuse_lut_content.h.
Constructor & Destructor Documentation
| 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.
- Parameters:
-
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 109 of file fuse_lut_content.cpp.
References FuseMessageContent::_payload, FuseMessageContent::_payload_size, FUSE_lut_message_header_t::bytes_per_cell, FUSE_lut_message_header_t::depth, FUSE_lut_message_header_t::height, FUSE_lut_message_header_t::lut_id, and FUSE_lut_message_header_t::width.
| FuseLutContent::FuseLutContent | ( | SharedMemoryLookupTable * | b | ) |
Constructor.
- Parameters:
-
b lookup table to copy data from
Definition at line 74 of file fuse_lut_content.cpp.
References FuseMessageContent::_payload, FuseMessageContent::_payload_size, SharedMemoryLookupTable::buffer(), FUSE_lut_message_header_t::bytes_per_cell, SharedMemoryLookupTable::bytes_per_cell(), FUSE_lut_message_header_t::depth, SharedMemoryLookupTable::depth(), FUSE_lut_message_header_t::height, SharedMemoryLookupTable::height(), SharedMemoryLookupTable::lut_id(), FUSE_lut_message_header_t::lut_id, FUSE_lut_message_header_t::width, and SharedMemoryLookupTable::width().
| FuseLutContent::FuseLutContent | ( | uint32_t | type, | |
| void * | payload, | |||
| size_t | payload_size | |||
| ) |
Constructor.
- Parameters:
-
type content type, must be FUSE_MT_LUT payload payload payload_size size of payload
- Exceptions:
-
TypeMismatchException thrown if type does not equal FUSE_MT_LUT
Definition at line 47 of file fuse_lut_content.cpp.
References FuseMessageContent::_payload, FuseMessageContent::_payload_size, FUSE_lut_message_header_t::bytes_per_cell, FUSE_lut_message_header_t::depth, FUSE_lut_message_header_t::height, FUSE_lut_message_header_t::lut_id, and FUSE_lut_message_header_t::width.
Member Function Documentation
| unsigned char * FuseLutContent::buffer | ( | ) | const |
Get buffer.
- Returns:
- buffer
Definition at line 154 of file fuse_lut_content.cpp.
Referenced by FuseTransferWidget::fuse_inbound_received(), FireVisionNetworkTool::fuse_inbound_received(), and FuseServerClientThread::process_setlut_message().
| size_t FuseLutContent::buffer_size | ( | ) | const |
Get buffer size.
- Returns:
- size of buffer returned by buffer()
Definition at line 164 of file fuse_lut_content.cpp.
| unsigned int FuseLutContent::bytes_per_cell | ( | ) | const |
Bytes per cell in LUT.
- Returns:
- Bytes per cell in LUT
Definition at line 203 of file fuse_lut_content.cpp.
References FUSE_lut_message_header_t::bytes_per_cell.
Referenced by FuseServerClientThread::process_setlut_message().
| unsigned int FuseLutContent::depth | ( | ) | const |
Depth of LUT.
- Returns:
- depth of LUT
Definition at line 193 of file fuse_lut_content.cpp.
References FUSE_lut_message_header_t::depth.
Referenced by FuseTransferWidget::fuse_inbound_received(), FireVisionNetworkTool::fuse_inbound_received(), and FuseServerClientThread::process_setlut_message().
| unsigned int FuseLutContent::height | ( | ) | const |
Height of LUT.
- Returns:
- height of LUT
Definition at line 184 of file fuse_lut_content.cpp.
References FUSE_lut_message_header_t::height.
Referenced by FuseTransferWidget::fuse_inbound_received(), FireVisionNetworkTool::fuse_inbound_received(), and FuseServerClientThread::process_setlut_message().
| const char * FuseLutContent::lut_id | ( | ) | const |
Get LUT ID.
- Returns:
- LUT ID
Definition at line 145 of file fuse_lut_content.cpp.
Referenced by FuseServerClientThread::process_setlut_message().
| void FuseLutContent::serialize | ( | ) | [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 FuseMessageContent.
Definition at line 210 of file fuse_lut_content.cpp.
| unsigned int FuseLutContent::width | ( | ) | const |
Width of LUT.
- Returns:
- width of LUT
Definition at line 174 of file fuse_lut_content.cpp.
References FUSE_lut_message_header_t::width.
Referenced by FuseTransferWidget::fuse_inbound_received(), FireVisionNetworkTool::fuse_inbound_received(), and FuseServerClientThread::process_setlut_message().
The documentation for this class was generated from the following files:
- src/firevision/fvutils/net/fuse_lut_content.h
- src/firevision/fvutils/net/fuse_lut_content.cpp

