![]() |
cacao
Release 0.1.03-dev
Compute And Control For Adaptive Optics
|
Image metadata. More...
#include <ImageStruct.h>
Data Fields | |
char | version [32] |
char | name [80] |
Image Name. More... | |
uint8_t | naxis |
Number of axis. More... | |
uint32_t | size [3] |
Image size along each axis. More... | |
uint64_t | nelement |
Number of elements in image. More... | |
uint8_t | datatype |
Data type. More... | |
uint64_t | imagetype |
struct timespec | creationtime |
struct timespec | lastaccesstime |
struct timespec | atime |
struct timespec | writetime |
uint8_t | shared |
int8_t | location |
uint8_t | status |
uint64_t | flag |
uint8_t | logflag |
uint16_t | sem |
uint64_t | __pad0__: 0 |
uint64_t | cnt0 |
uint64_t | cnt1 |
uint64_t | cnt2 |
uint8_t | write |
uint16_t | NBkw |
cudaIpcMemHandle_t | cudaMemHandle |
Image metadata.
uint64_t IMAGE_METADATA::__pad0__ |
struct timespec IMAGE_METADATA::atime |
time at which data was acquires/created. This time CAN be copied from input to output
uint64_t IMAGE_METADATA::cnt0 |
counter (incremented if image is updated)
uint64_t IMAGE_METADATA::cnt1 |
in 3D rolling buffer image, this is the last slice written
uint64_t IMAGE_METADATA::cnt2 |
in event mode, this is the # of events
struct timespec IMAGE_METADATA::creationtime |
0x 0000 0000 0000 0001 Circular buffer, slice z axis is encoding time -> record writetime array 0x 0000 0000 0000 0002 Image is mathematical vector or matrix 0x 0000 0000 0000 0004 Image is stream received from another computer 0x 0000 0000 0000 0008 Image is stream sent to other computer
0x 0000 0000 000X 0000 axis[0] encoding code (0-15): 0: undefined (default) 1: spatial coordinate 2: temporal coordinate 3: wavelength coordinate 4: mapping index
cudaIpcMemHandle_t IMAGE_METADATA::cudaMemHandle |
uint8_t IMAGE_METADATA::datatype |
Data type.
Encoded according to data type defines.
uint64_t IMAGE_METADATA::flag |
bitmask, encodes read/write permissions.... NOTE: enum instead of defines
uint64_t IMAGE_METADATA::imagetype |
image type
struct timespec IMAGE_METADATA::lastaccesstime |
int8_t IMAGE_METADATA::location |
-1 if in CPU memory, >=0 if in GPU memory on location
device
uint8_t IMAGE_METADATA::logflag |
set to 1 to start logging
char IMAGE_METADATA::name[80] |
Image Name.
Image structure version.
should be equal to IMAGESTRUCT_VERSION
Will be tested to ensure current software revision matches data. If does not match, return error message with both versions.
uint8_t IMAGE_METADATA::naxis |
Number of axis.
uint16_t IMAGE_METADATA::NBkw |
number of keywords (max: 65536)
uint64_t IMAGE_METADATA::nelement |
Number of elements in image.
This is computed upon image creation
uint16_t IMAGE_METADATA::sem |
number of semaphores in use, specified at image creation
uint8_t IMAGE_METADATA::shared |
1 if in shared memory
uint32_t IMAGE_METADATA::size[3] |
Image size along each axis.
If naxis = 1 (1D image), size[1] and size[2] are irrelevant
uint8_t IMAGE_METADATA::status |
1 to log image (default); 0 : do not log: 2 : stop log (then goes back to 2)
char IMAGE_METADATA::version[32] |
uint8_t IMAGE_METADATA::write |
1 if image is being written
struct timespec IMAGE_METADATA::writetime |
last write time into data array