Module gvsp

Module gvsp 

Source
Expand description

GVSP packet parsing, reassembly and resend orchestration.

The GigE Vision Streaming Protocol delivers image data over UDP. Packets can arrive out of order or be dropped entirely; this module reconstructs complete frames while coordinating resend requests over GVCP. The implementation keeps copies to a minimum by writing directly into pooled [BytesMut] buffers that are subsequently frozen into [Bytes] once a frame is ready.

Structs§

ChunkRaw
Raw GVSP chunk extracted from a payload or trailer block.
CompletedFrame
Representation of a fully reassembled frame ready for consumption.
FrameAssembly
Representation of a partially received frame.
FrameQueue
Frame queue used for communicating between the receiver task and the application.
PacketBitmap
Bitmap tracking received packets within a block.
Reassembler
Zero-copy block assembly state machine.
ResendPlanner
Helper struct tracking resend attempts for a given block.
StreamConfig
Stream configuration shared between the control plane and GVSP receiver.

Enums§

GvspError
Errors raised while handling GVSP packets.
GvspPacket
Representation of a GVSP packet.
StreamDest
Destination for GVSP packets received by the stream.

Functions§

coalesce_missing
Coalesce missing packet ranges into resend requests.
parse_chunks
Parse a chunk payload following the [id][reserved][length][data...] layout.
parse_packet
Parse a raw UDP payload into a GVSP packet.