Go to the source code of this file.
◆ IGTL_COLORTABLE_HEADER_SIZE
#define IGTL_COLORTABLE_HEADER_SIZE 2 |
◆ IGTL_COLORTABLE_INDEX_UINT16
#define IGTL_COLORTABLE_INDEX_UINT16 5 |
◆ IGTL_COLORTABLE_INDEX_UINT8
#define IGTL_COLORTABLE_INDEX_UINT8 3 |
◆ IGTL_COLORTABLE_MAP_RGB
#define IGTL_COLORTABLE_MAP_RGB 19 |
◆ IGTL_COLORTABLE_MAP_UINT16
#define IGTL_COLORTABLE_MAP_UINT16 5 |
◆ IGTL_COLORTABLE_MAP_UINT8
#define IGTL_COLORTABLE_MAP_UINT8 3 |
◆ igtl_colortable_convert_byte_order()
Converts endianness of each element in an array of igtl_igtl_colortable_header and color table from host byte order to network byte order, or vice versa (if necessary). The function automatically determins the endian type of the host.
◆ igtl_colortable_get_crc()
Calculates CRC of color table message
◆ igtl_colortable_get_table_size()
igtl_colortable_get_data_size(n) calculates the size of body based on the index and map types. The size of body is used in the message header. igtl_colortable_get_data_n(size) calculates the number of images in the body, based on the body size. This function may be used when a client program parses a COLORTABLE message.