Expand description
H.265/HEVC payload format (RFC 7798). H.265/HEVC RTP payload format (RFC 7798).
HEVC differs from H.264 in ways that matter to packetization: NAL headers are two bytes rather than one, and there is an extra aggregation form (PACI) that can carry payload content information ahead of the NAL unit.
This module provides the three packet shapes the RFC defines — single NAL unit,
aggregation, and fragmentation unit — plus HevcPayloader, which picks between them
based on the MTU, and the depacketizer that reverses the choice.
Structs§
- H265
Aggregation Packet - H265AggregationPacket represents an Aggregation packet. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PayloadHdr (Type=48) | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | two or more aggregation units | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | :…OPTIONAL RTP padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- H265
Aggregation Unit - H265AggregationUnit represent the an Aggregation Unit in an AP, which is not the first one.
- H265
Aggregation Unit First - Aggregation Packets implementation
- H265
Fragmentation Unit Header - Fragmentation Unit implementation
- H265
Fragmentation Unit Packet - H265FragmentationUnitPacket represents a single Fragmentation Unit packet.
- H265NALU
Header - H265NALUHeader is a H265 NAL Unit Header
- H265PACI
Packet - PACI implementation
- H265
Packet - Packet implementation
- H265
SingleNAL Unit Packet - Single NAL Unit Packet implementation
- H265TSCI
- Temporal Scalability Control Information
- Hevc
Payloader - Packetizes H.265/HEVC NAL units into RTP payloads, fragmenting when needed.
Enums§
- H265
Payload - H265 Payload Enum
- Unit
Type - The H.265 NAL unit types this payloader distinguishes.
Constants§
- H265FRAGMENTATION_
UNIT_ HEADER_ SIZE - Bytes of FU header following the payload header in a fragmentation unit.
- NAL_
HEADER_ SIZE - Bytes in an H.265 NAL header — two, unlike H.264’s one.
- RTP_
OUTBOUND_ MTU - The payload MTU this payloader targets, chosen to survive typical paths without IP fragmentation.
Statics§
- AGGR_
PAYLOAD_ HDR - Payload header for an aggregation packet.
- ANNEXB_
3_ NALUSTART_ CODE - The three-byte Annex B start code (
00 00 01). - FRAG_
PAYLOAD_ HDR - Payload header for a fragmentation unit.
- FU_
HDR_ B_ E - FU header for the last fragment of a B frame.
- FU_
HDR_ B_ M - FU header for a middle fragment of a B frame.
- FU_
HDR_ B_ S - FU header for the first fragment of a B frame.
- FU_
HDR_ IDR_ E - FU header for the last fragment of an IDR frame.
- FU_
HDR_ IDR_ M - FU header for a middle fragment of an IDR frame.
- FU_
HDR_ IDR_ S - FU header for the first fragment of an IDR frame.
- FU_
HDR_ P_ E - FU header for the last fragment of a P frame.
- FU_
HDR_ P_ M - FU header for a middle fragment of a P frame.
- FU_
HDR_ P_ S - FU header for the first fragment of a P frame.
- SING_
PAYLOAD_ HDR - Payload header for a single NAL unit packet.