//! [`Encoded`]: one encoded access unit on its way to a track.
use Bytes;
use Timestamp;
/// One encoded video frame: a whole access unit in the codec's wire framing
/// (Annex-B with in-band parameter sets), plus the presentation time of the raw
/// [`Frame`](crate::Frame) it came from.
///
/// Named for what it holds rather than mirroring [`Frame`](crate::Frame), so the
/// two never read alike at a call site that handles both.
///
/// The encoder carries the timestamp through the codec rather than leaving the
/// caller to guess one at publish time, so a backend that buffers a frame or
/// drains a tail from [`Encoder::finish`](super::Encoder::finish) still stamps
/// each access unit with the time of the picture it encoded.