Expand description
Bitstream filters for codec-level NAL and OBU transformations.
Provides conversions between AnnexB and AVCC/HVCC packet formats, SPS/PPS/VPS extraction, and AV1 OBU sequence header parsing.
Structs§
- Av1Obu
- A parsed AV1 OBU unit with its type and payload bytes.
- Av1Sequence
Header - High-level fields extracted from an AV1 sequence header OBU.
- NalUnit
- A parsed, classified NAL unit from an H.264 or H.265 bitstream.
Enums§
- Av1Obu
Type - AV1 Open Bitstream Unit (OBU) types per the AV1 specification §5.3.2.
- Bitstream
Filter Error - Errors that can occur during bitstream filtering operations.
- H264
NalType - H.264 NAL unit types relevant for parameter set extraction.
- Length
Prefix Size - Number of bytes used to encode each NAL length in AVCC/HVCC format.
Functions§
- annexb_
to_ avcc - Convert an AnnexB packet to AVCC/HVCC length-prefixed format.
- avcc_
to_ annexb - Convert an AVCC/HVCC length-prefixed packet to AnnexB start-code format.
- extract_
pps - Extract all PPS NAL units from an AnnexB bitstream.
- extract_
sps - Extract all SPS NAL units from an AnnexB bitstream.
- extract_
sps_ pps - Extract both SPS and PPS NAL units from an AnnexB bitstream as owned bytes.
- find_
av1_ sequence_ header - Find and parse the first AV1 sequence header OBU found in a bitstream.
- parse_
av1_ sequence_ header - Parse the fields of an AV1 sequence header OBU payload.
- remove_
emulation_ prevention - Remove H.264/H.265 emulation prevention bytes (
0x03) from a RBSP. - split_
annexb - Split an AnnexB byte stream into individual raw NAL unit byte slices.
- split_
av1_ obus - Split a contiguous AV1 bitstream (e.g., from an ISOBMFF
av01sample) into individual OBU units.
Type Aliases§
- Bitstream
Result - Result type for bitstream filter operations.