Expand description
H.264 payload format (RFC 6184): STAP-A aggregation and FU-A fragmentation. H.264 RTP payload format (RFC 6184).
A NAL unit that fits the MTU is sent as-is. Larger ones are split into FU-A fragments, and
several small ones (typically SPS and PPS) may be combined into one STAP-A aggregate. The
*_NALU_TYPE constants name the types this payloader recognises, and the *_BITMASK
constants describe how the NAL header and FU header pack their fields.
Structs§
- H264
Packet - H264Packet represents the H264 header that is stored in the payload of an RTP Packet
- H264
Payloader - H264Payloader payloads H264 packets
Constants§
- AUD_
NALU_ TYPE - NAL type 9: access unit delimiter.
- FILLER_
NALU_ TYPE - NAL type 12: filler data, which is dropped rather than sent.
- FUA_
HEADER_ SIZE - Bytes of FU-A header prefixed to each fragment.
- FUA_
NALU_ TYPE - NAL type 28: FU-A, which fragments one NAL unit across several payloads.
- FUB_
NALU_ TYPE - NAL type 29: FU-B, FU-A with a decoding-order number. Not used by WebRTC.
- FU_
END_ BITMASK - FU header end bit: this fragment completes a NAL unit.
- FU_
START_ BITMASK - FU header start bit: this fragment begins a NAL unit.
- NALU_
REF_ IDC_ BITMASK - Mask selecting
nal_ref_idcfrom a NAL header byte. - NALU_
TYPE_ BITMASK - Mask selecting the NAL type from a NAL header byte.
- OUTPUT_
STAP_ AHEADER - The STAP-A header byte this payloader emits.
- PPS_
NALU_ TYPE - NAL type 8: picture parameter set.
- SPS_
NALU_ TYPE - NAL type 7: sequence parameter set.
- STAPA_
HEADER_ SIZE - Bytes of STAP-A header prefixed to an aggregate.
- STAPA_
NALU_ LENGTH_ SIZE - Bytes of length prefix before each NAL unit inside a STAP-A.
- STAPA_
NALU_ TYPE - NAL type 24: STAP-A, which aggregates several small NAL units into one payload.
Statics§
- ANNEXB_
NALUSTART_ CODE - The Annex B start code (
00 00 00 01) that delimits NAL units in a byte stream.