Fawkes API  Fawkes Development Version

FUSE lookup table content. More...

#include <>>

Inheritance diagram for firevision::FuseLutContent:

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...
 

Detailed Description

FUSE lookup table content.

Author
Tim Niemueller

Definition at line 38 of file fuse_lut_content.h.

Constructor & Destructor Documentation

◆ FuseLutContent() [1/3]

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.

Parameters
lut_idLUT ID
bufferbuffer that holds the LUT data
widthLUT width
heightLUT height
depthLUT depth
bpcLUT 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.

◆ FuseLutContent() [2/3]

◆ FuseLutContent() [3/3]

firevision::FuseLutContent::FuseLutContent ( uint32_t  type,
void *  payload,
size_t  payload_size 
)

Member Function Documentation

◆ buffer()

unsigned char * firevision::FuseLutContent::buffer ( ) const

◆ buffer_size()

size_t firevision::FuseLutContent::buffer_size ( ) const

Get buffer size.

Returns
size of buffer returned by buffer()

Definition at line 169 of file fuse_lut_content.cpp.

◆ bytes_per_cell()

unsigned int firevision::FuseLutContent::bytes_per_cell ( ) const

Bytes per cell in LUT.

Returns
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().

◆ depth()

unsigned int firevision::FuseLutContent::depth ( ) const

◆ height()

unsigned int firevision::FuseLutContent::height ( ) const

◆ lut_id()

const char * firevision::FuseLutContent::lut_id ( ) const

Get LUT ID.

Returns
LUT ID

Definition at line 150 of file fuse_lut_content.cpp.

Referenced by firevision::FuseServerClientThread::process_setlut_message().

◆ serialize()

void firevision::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 firevision::FuseMessageContent.

Definition at line 215 of file fuse_lut_content.cpp.

◆ width()

unsigned int firevision::FuseLutContent::width ( ) const

The documentation for this class was generated from the following files: