Skip to main content

Module dispatch

Module dispatch 

Source
Available on crate feature codec only.
Expand description

Codec-erased dispatch over CodecId.

Protocol handlers call these to classify an access unit without naming a concrete parser. Each returns a conservative default (false / None) for a codec whose feature is not enabled.

Functions§

hls_codec_string
The HLS CODECS attribute for codec given parsed params.
is_random_access_point
Whether data is a random-access point under codec.
parameter_sets
Extract the codec’s parameter-set NAL units (H.264 SPS/PPS, H.265 VPS/SPS/PPS) from an Annex-B access unit, re-framed Annex-B with 4-byte start codes — i.e. a config record suitable for parse_config / Fmp4Muxer::init_segment. Returns None for codecs whose config is not a NAL parameter set, or when the access unit carries none.
parse_config
Extract VideoParams from a config access unit for codec.