Skip to main content

split_temporal_unit

Function split_temporal_unit 

Source
pub fn split_temporal_unit(temporal_unit: &Bytes) -> Result<Vec<Av1LayerData>>
Expand description

The spatial layers of temporal_unit (low overhead bitstream format, AV1 specification 5.2), lowest first, each with its OBUs unchanged. OBUs without an extension header (the temporal delimiter, a sequence header, metadata) go with the layer whose OBUs follow them, those at the end with the last layer. A unit without extension headers is one layer.

ยงErrors

A header or a size past the end, a temporal delimiter after the first OBU (a second temporal unit), or a spatial layer that comes after a higher one. An OBU without a size field runs to the end of the unit.