Public Member Functions

firevision::FuseLutContent Class Reference
[FireVision FUSE Network ProtocolFireVision Image Processing Framework and Applications]

FUSE lookup table content. More...

#include <>>

Inheritance diagram for firevision::FuseLutContent:
Inheritance graph
[legend]

List of all members.

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.

Author:
Tim Niemueller

Definition at line 38 of file fuse_lut_content.h.


Constructor & Destructor Documentation

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_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  ) 
firevision::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 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, and firevision::FUSE_lut_message_header_t::width.


Member Function Documentation

unsigned char * firevision::FuseLutContent::buffer (  )  const
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.

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

unsigned int firevision::FuseLutContent::depth (  )  const
unsigned int firevision::FuseLutContent::height (  )  const
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().

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.

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

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