Skip to main content

Module h264

Module h264 

Source
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§

H264Packet
H264Packet represents the H264 header that is stored in the payload of an RTP Packet
H264Payloader
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_idc from 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.