eaarl-io
1.0.1+71abbd4
EAARL Input/Output Library (Public API)
|
Constants, structures, and utility functions for EAARL raster data. More...
Go to the source code of this file.
Data Structures | |
struct | eaarlio_raster |
EAARL raster record. More... | |
Macros | |
#define | eaarlio_raster_empty() |
Empty eaarlio_raster value. More... | |
Functions | |
eaarlio_error | eaarlio_raster_free (struct eaarlio_raster *raster, struct eaarlio_memory *memory) |
Free memory allocated to fields in eaarlio_raster. More... | |
Constants, structures, and utility functions for EAARL raster data.
This header provides the structures used for working with EAARL raster data. These structures are used throughout the rest of the TLD related parts of the API.
Some utility functions are also included for releasing memory allocated for eaarlio_raster and eaarlio_pulse records.
struct eaarlio_raster |
EAARL raster record.
Data Fields | ||
---|---|---|
uint8_t | digitizer | Digitizer used: 0 or 1. |
struct eaarlio_pulse * | pulse |
Pulse records. The size is specified by eaarlio_raster::pulse_count. |
uint16_t | pulse_count | Number of pulses in this raster. |
uint32_t | sequence_number |
Sequence number, ignore. This value cycles and repeats and is thus not suitable for uniquely identifying rasters. The value is not used for anything and should be ignored. |
uint32_t | time_fraction |
Fractional seconds component of timestamp. Use eaarlio_units_raster_time to derive floating point time |
uint32_t | time_seconds |
Integer seconds component of timestamp. Use eaarlio_units_raster_time to derive floating point time |
#define eaarlio_raster_empty | ( | ) |
Empty eaarlio_raster value.
All numeric fields will contain zero values. The pointer will be null.
eaarlio_error eaarlio_raster_free | ( | struct eaarlio_raster * | raster, |
struct eaarlio_memory * | memory | ||
) |
Free memory allocated to fields in eaarlio_raster.
[in,out] | raster | Raster with memory to release |
[in] | memory | Memory handler, or NULL for stdlib |
raster->pulse
will be null. raster->pulse
has been released.raster
is not released. raster->pulse
may be null. If so, it is left alone.