Skip to main content

Module evs_header

Module evs_header 

Source
Expand description

Binary header prepended to every event-vision block on the Zenoh evs key.

An event-vision camera — a LUCID Triton2 EVS, for one (#138) — streams encoded events, not pixels. Its blocks are published on keys::evs rather than keys::image, framed the way images are: a fixed little-endian header, then the payload exactly as the device sent it.

§Layout (24 bytes, all fields little-endian)

OffsetSizeFieldValue / Notes
02magic0x5645 LE ([0x45, 0x56], "EV")
21version1
31formatevent encoding discriminant (see EvsFormat)
44seqper-acquisition block counter, u32
88timestampdevice timestamp; meaningful only if flagged
164payload_lenlength of the event bytes that follow, u32
201flagsbit 0: timestamp is present
213reservedzero

Structs§

EvsHeader
24-byte header prepended to every event-vision block.

Enums§

EvsFormat
Encoding of the event bytes that follow an EvsHeader.
EvsHeaderError
Errors returned by EvsHeader::decode.

Constants§

EVS_HEADER_SIZE
Fixed size of the binary event-vision block header in bytes.
EVS_MAGIC
Magic bytes identifying an event-vision block header. Little-endian encoding of 0x5645 -> bytes [0x45, 0x56] ("EV").
EVS_SUPPORTED_VERSION
The only supported header version. Bumped when the layout changes.