@UnstableApi
class ObuParser


Utility methods for parsing AV1 Open Bitstream Units or OBUs.

AV1 Bitstream and Decoding Process Specification

Summary

Nested types

An AV1 Frame Header.

Open bitstream unit.

An AV1 Sequence header.

Constants

const Int

OBU type frame.

const Int

OBU type frame header.

const Int

OBU type padding.

const Int

OBU type sequence header.

const Int

OBU type temporal delimiter.

Public functions

java-static (Mutable)List<ObuParser.Obu!>!
split(sample: ByteBuffer!)

Splits the input sample into a list of OBUs.

Constants

OBU_FRAME

const val OBU_FRAME = 6: Int

OBU type frame.

OBU_FRAME_HEADER

const val OBU_FRAME_HEADER = 3: Int

OBU type frame header.

OBU_PADDING

const val OBU_PADDING = 15: Int

OBU type padding.

OBU_SEQUENCE_HEADER

const val OBU_SEQUENCE_HEADER = 1: Int

OBU type sequence header.

OBU_TEMPORAL_DELIMITER

const val OBU_TEMPORAL_DELIMITER = 2: Int

OBU type temporal delimiter.

Public functions

split

java-static fun split(sample: ByteBuffer!): (Mutable)List<ObuParser.Obu!>!

Splits the input sample into a list of OBUs.

Expects the AV1 sample format specified by the AV1 Codec ISO Media File Format Binding. That is, each OBU has the obu_has_size_field set to 1 except for the last OBU in the sample, for which obu_has_size_field may be set to 0.

Parameters
sample: ByteBuffer!

The sample data.

Returns
(Mutable)List<ObuParser.Obu!>!

The list of OBUs contained within the sample data.