Skip to main content

Module packer

Module packer 

Source
Expand description

Frames → wire chunks (docs/protocol/chunks.md).

A video frame becomes one or more FEC blocks of up to BLOCK_DATA_CHUNKS data chunks plus k parity chunks computed over that block only. The packer is pure: it allocates the chunk buffers and returns them; the sender decides admission and transmits.

Structs§

FrameParams
VideoPack

Constants§

BLOCK_DATA_CHUNKS
MAX_PARITY_PER_BLOCK

Functions§

pack_message
Pack one sensor/command message: n = 1, k = 0, END_OF_FRAME.
pack_video
Pack one access unit.