Go to the source code of this file.
Classes | |
struct | igtl_capability_info |
Macros | |
#define | IGTL_CAPABILITY_HEADER_SIZE 4 |
Functions | |
int igtl_export | igtl_capability_alloc_info (igtl_capability_info *info, int ntypes) |
int igtl_export | igtl_capability_free_info (igtl_capability_info *info) |
igtl_uint64 igtl_export | igtl_capability_get_crc (igtl_capability_info *info, void *capability) |
igtl_uint32 igtl_export | igtl_capability_get_length (igtl_capability_info *info) |
void igtl_export | igtl_capability_init_info (igtl_capability_info *info) |
int igtl_export | igtl_capability_pack (igtl_capability_info *info, void *byte_array) |
int igtl_export | igtl_capability_unpack (void *byte_array, igtl_capability_info *info, igtl_uint64 pack_size) |
#define IGTL_CAPABILITY_HEADER_SIZE 4 |
Definition at line 23 of file igtl_capability.h.
int igtl_export igtl_capability_alloc_info | ( | igtl_capability_info * | info, |
int | ntypes | ||
) |
Allocates ndarray info. Allocate size array and ND-array pointed from igtl_ndarray_info. 'type' and 'dim' in igtl_ndarray_info must be specified before calling igtl_ndarray_alloc_info().
int igtl_export igtl_capability_free_info | ( | igtl_capability_info * | info | ) |
Frees ndarray info.
igtl_uint64 igtl_export igtl_capability_get_crc | ( | igtl_capability_info * | info, |
void * | capability | ||
) |
Calculates CRC of image data body including header and array of pixel data.
igtl_uint32 igtl_export igtl_capability_get_length | ( | igtl_capability_info * | info | ) |
Calculates capability data size of the pixel array, which will be transferred with the specified header.
void igtl_export igtl_capability_init_info | ( | igtl_capability_info * | info | ) |
Initializes igtl_ndarray_info
int igtl_export igtl_capability_pack | ( | igtl_capability_info * | info, |
void * | byte_array | ||
) |
Packs CAPABILITY message. Converts an igtl_capability_info structure to a byte array. 'byte_array' should be allocated prior to calling igtl_capability_pack() with memory size calculated by igtl_capability_get_size(). 'type' argument specifies a message type prefix (none, or GET_) by IGTL_TYPE_PREFIX_* macro. Returns 1 if success, otherwise 0.
int igtl_export igtl_capability_unpack | ( | void * | byte_array, |
igtl_capability_info * | info, | ||
igtl_uint64 | pack_size | ||
) |
Unpacks CAPABILITY message. Extracts information in a byte array of CAPABILITY messages and store it in a igtl_capability_info structure. 'type' argument specifies a message type prefix (none, GET_, STT_, STP_ or RTS_) by IGTL_TYPE_PREFIX_* macro. Returns 1 if success, otherwise 0.