//! The access units of a stream that an app reads from a file or a network.
use ;
/// Splits an Annex-B stream of H.264 or HEVC into access units, as [`AccessUnit::data`] takes
/// them: each holds the NAL units of one picture with their start codes, and the parameter sets
/// before the picture that they precede.
///
/// An access unit begins at an access unit delimiter, at a parameter set that follows a slice,
/// and at a picture's first slice that follows another slice, so a stream with no delimiters
/// splits as well. Bytes before the first start code belong to no unit. A stream of AV1 has no
/// start codes, and comes back as one unit.
///
/// [`AccessUnit::data`]: crate::AccessUnit::data