Expand description
Video Frame Marking RTP header-extension payload values.
Frame marking is carried as one negotiated RTP header extension
These helpers retain temporal-layer fields for future negotiated SVC selection while current packet gates match simulcast RIDs
Short form, non-scalable stream
+---+---+---+---+---------------+
| S | E | I | D | reserved |
+---+---+---+---+---------------+
Long form, scalable stream
+---+---+---+---+---+-----------+---------------+---------------+
| S | E | I | D | B | TID | LID | TL0PICIDX |
+---+---+---+---+---+-----------+---------------+---------------+
| first octet | optional | optional |
+---+---+---+---+---+-----------+---------------+---------------+Reference: RFC 9626 section 3.
Constants§
- BASE_
LAYER_ ID - Base layer identifier used for TID and LID.
- BASE_
LAYER_ SYNC_ MASK - Base-layer-sync flag in the long-form first octet.
- DISCARDABLE_
FRAME_ MASK - Discardable-frame flag in the first frame-marking octet.
- END_
OF_ FRAME_ MASK - End-of-frame flag in the first frame-marking octet.
- INDEPENDENT_
FRAME_ MASK - Independent-frame flag in the first frame-marking octet.
- LONG_
DATA_ LEN_ FLAGS_ ONLY - Long-form payload length when both
LIDandTL0PICIDXare omitted. - LONG_
DATA_ LEN_ WITHOUT_ TL0PICIDX - Long-form payload length when
TL0PICIDXis omitted. - LONG_
DATA_ LEN_ WITH_ TL0PICIDX - Full long-form frame-marking payload length.
- SHORT_
DATA_ LEN - Short-form non-scalable frame-marking payload length.
- START_
OF_ FRAME_ MASK - Start-of-frame flag in the first frame-marking octet.
- TEMPORAL_
LAYER_ ID_ MASK - Temporal-layer identifier bits in the long-form first octet.
- TEMPORAL_
LAYER_ ID_ MAX - Maximum temporal-layer identifier representable by the 3-bit TID field.
Functions§
- is_
valid_ temporal_ layer_ id - Returns whether
valuefits in the RFC 9626 three-bit temporal-layer field. - temporal_
layer_ id - Extracts the temporal-layer ID from the first long-form frame-marking octet.