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
CODECSattribute forcodecgiven parsedparams. - is_
random_ access_ point - Whether
datais a random-access point undercodec. - 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. ReturnsNonefor codecs whose config is not a NAL parameter set, or when the access unit carries none. - parse_
config - Extract
VideoParamsfrom a config access unit forcodec.