Skip to main content

Module bitstream_filter

Module bitstream_filter 

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

Av1ObuType
AV1 Open Bitstream Unit (OBU) types per the AV1 specification §5.3.2.
BitstreamFilterError
Errors that can occur during bitstream filtering operations.
H264NalType
H.264 NAL unit types relevant for parameter set extraction.
LengthPrefixSize
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 av01 sample) into individual OBU units.

Type Aliases§

BitstreamResult
Result type for bitstream filter operations.