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

FUSE lookup table content. More...

#include <fvutils/net/fuse_lut_content.h>

Inheritance diagram for FuseLutContent:

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

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

unsigned int FuseLutContent::height (  )  const

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


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