pub fn access_units(stream: &[u8]) -> AccessUnits<'_> ⓘExpand description
Splits an H.264 Annex B byte stream into access units, the input
VideoDecoder::decode takes.
An access unit starts at the first NAL unit after a picture that may only
precede one (access unit delimiter, SEI, SPS, PPS; §7.4.1.2.3), or at a
slice that starts a new picture (first_mb_in_slice is 0). Streams that
send a picture’s slices out of order (arbitrary slice order) are split at
each slice that starts at macroblock 0, which such streams do not
guarantee. Bytes before the first start code are skipped.