eaarl-io  1.0.1+71abbd4
EAARL Input/Output Library (Public API)
tld.h
Go to the documentation of this file.
1 #ifndef EAARLIO_TLD_H
2 #define EAARLIO_TLD_H
3 
9 #include "eaarlio/error.h"
10 #include "eaarlio/memory.h"
11 #include "eaarlio/raster.h"
12 #include "eaarlio/stream.h"
13 #include <stdint.h>
14 
15 /******************************************************************************/
16 
23 #define EAARLIO_TLD_TYPE_RASTER 5
24 
25 /******************************************************************************/
26 
34  uint32_t record_length;
40  uint8_t record_type;
41 };
42 
48 #define eaarlio_tld_header_empty() \
49  (struct eaarlio_tld_header) \
50  { \
51  0, 0 \
52  }
53 
82  struct eaarlio_tld_header *record_header,
83  struct eaarlio_raster *raster,
84  struct eaarlio_memory *memory,
85  int include_pulses,
86  int include_waveforms);
87 
100  struct eaarlio_raster *raster,
101  struct eaarlio_memory *memory,
102  int include_pulses,
103  int include_waveforms);
104 
126  struct eaarlio_raster *raster,
127  struct eaarlio_memory *memory);
128 
129 #endif
eaarlio_error eaarlio_tld_read_raster(struct eaarlio_stream *stream, struct eaarlio_raster *raster, struct eaarlio_memory *memory, int include_pulses, int include_waveforms)
Read a raster from a TLD stream.
eaarlio_error eaarlio_tld_write_raster(struct eaarlio_stream *stream, struct eaarlio_raster *raster, struct eaarlio_memory *memory)
Write a raster to a TLD stream.
Memory handler.
eaarlio_error
Definition: error.h:16
uint8_t record_type
Record type.
Definition: tld.h:40
Memory handler structure.
Definition: memory.h:41
Constants, structures, and utility functions for EAARL raster data.
Stream interface for working with files.
TLD record header.
Definition: tld.h:32
Error codes and handling.
EAARL raster record.
Definition: raster.h:23
uint32_t record_length
Byte length of this record (including the header)
Definition: tld.h:34
Stream interface.
Definition: stream.h:47
eaarlio_error eaarlio_tld_read_record(struct eaarlio_stream *stream, struct eaarlio_tld_header *record_header, struct eaarlio_raster *raster, struct eaarlio_memory *memory, int include_pulses, int include_waveforms)
Read a TLD record from a stream.