Expand description
Binary frame header prepended to every raw pixel buffer on the Zenoh image key.
§Layout (16 bytes, all fields little-endian)
| Offset | Size | Field | Value / Notes |
|---|---|---|---|
| 0 | 2 | magic | 0x4746 LE ([0x46, 0x47]) |
| 2 | 1 | version | 1 |
| 3 | 1 | format | pixel format discriminant (see table) |
| 4 | 4 | width | image width in pixels, u32 LE |
| 8 | 4 | height | image height in pixels, u32 LE |
| 12 | 4 | seq | monotonically increasing frame counter |
Structs§
- Frame
Header - 16-byte binary frame header prepended to every image payload.
Enums§
- Frame
Header Error - Errors returned by
FrameHeader::decode.
Constants§
- FRAME_
MAGIC - Magic bytes identifying a GenICam frame header.
Little-endian encoding of
0x4746-> bytes[0x46, 0x47]. - HEADER_
SIZE - Fixed size of the binary frame header in bytes.
- SUPPORTED_
VERSION - The only supported header version. Bumped when the layout changes.
Functions§
- pixel_
format_ to_ u8 - Map a
PixelFormatvariant to its stable 1-byte discriminant code. - u8_
to_ pixel_ format - Map a 1-byte discriminant code back to the corresponding
PixelFormat.