A CTF2 decoder and its methods.
More...
#include "metadata.h"
#include "event_generator.h"
#include "event.h"
Go to the source code of this file.
A CTF2 decoder and its methods.
Decodes data based on the CTF2-SPEC-2.0rA specification: https://diamon.org/ctf/files/CTF2-SPEC-2.0rA.html
◆ actf_decoder_init()
Initialize a decoder.
- Parameters
-
| data | the ctf2 data to process |
| data_len | the length of the data |
| evs_cap | the max event array capacity. If zero, ACTF_DEFAULT_EVS_CAP will be used. |
| metadata | the metadata describing the data |
- Returns
- a decoder or NULL with errno set. A returned decoder should be freed with actf_decoder_free().
◆ actf_decoder_decode()
◆ actf_decoder_seek_ns_from_origin()
| int actf_decoder_seek_ns_from_origin |
( |
actf_decoder * | dec, |
|
|
int64_t | tstamp ) |
◆ actf_decoder_last_error()
◆ actf_decoder_free()
Free a decoder.
- Parameters
-
◆ actf_decoder_to_generator()
Create an event generator based on a decoder.
The decoder is owned by the caller and must be kept alive as long as the event generator is in use.
- Parameters
-
- Returns
- an event generator