Skip to main content

Module sframe

Module sframe 

Source
Expand description

The RTP payload format of SFrame, draft-ietf-avtcore-rtp-sframe-03 (pinned to that revision, 21 October 2026).

Every RTP payload starts with the one-byte SFrame payload descriptor S E T x x x x x (section 4): S on the first fragment of an SFrame frame only, E on the last only, T 1 when the frame protects packetized media and 0 when it protects a raw (encoded-transform) frame, the same on every fragment; the five reserved bits are sent as 0 and ignored on receipt. SFramePayloader fragments an SFrame ciphertext (section 5.1); SFrameDepacketizer is the Depacketizer form and SFrameReassembler the full receive algorithm of section 5.2 over packets in any order, with the buffer bounded (section 9.7).

Structs§

SFrameDepacketizer
The Depacketizer form of section 5.2 for packets in order (behind a jitter buffer): the fragments from S to E are concatenated without their descriptors; a frame whose fragments disagree on T is discarded (step 6). origin is the payload origin of the last frame it returned.
SFramePayloader
Section 5.1: fragments an SFrame ciphertext into RTP payloads no larger than the MTU, each behind its descriptor. The RTP layer sets the marker bit on the last packet of the frame (step 8: the marker is E when the frame’s marker is set).
SFrameReassembler
Section 5.2 over packets that may arrive in any order: each packet is added to the set of received packets; the smallest run of consecutive sequence numbers from an S packet to an E packet is taken out and, unless its fragments disagree on T or on the payload type (steps 6, 7: the frame is discarded), returned as an SFrameRtpFrame. Section 9.7: at most max_buffered packets are held, the oldest evicted first; fragments older than a completed frame are kept, as a retransmission may still complete theirs.
SFrameRtpFrame
An SFrame frame that section 5.2 reassembled: the SFrame ciphertext (the payload, step 9) and its SFrame RTP metadata (step 10), for the application to decrypt (step 11) and then hand to the receiving pipeline (raw) or to the payload type’s depacketizer (packetized).

Enums§

SFramePayloadOrigin
The SFrame RTP metadata’s payload origin (section 5.1): what the SFrame frame protects.

Constants§

DEFAULT_MAX_BUFFERED_PACKETS
The default bound on the packets SFrameReassembler holds (section 9.7).
SFRAME_DESCRIPTOR_SIZE
The size of the SFrame payload descriptor.
SFRAME_END
The E bit: the last fragment of an SFrame frame.
SFRAME_PACKETIZED
The T bit: the frame protects packetized media (1) or a raw frame (0).
SFRAME_START
The S bit: the first fragment of an SFrame frame.