@UnstableApi
public final class ObuParser


Utility methods for parsing AV1 Open Bitstream Units or OBUs.

AV1 Bitstream and Decoding Process Specification

Summary

Nested types

public final class ObuParser.FrameHeader

An AV1 Frame Header.

public final class ObuParser.Obu

Open bitstream unit.

public final class ObuParser.SequenceHeader

An AV1 Sequence header.

Constants

static final int

OBU type frame.

static final int

OBU type frame header.

static final int

OBU type padding.

static final int

OBU type sequence header.

static final int

OBU type temporal delimiter.

Public methods

static List<ObuParser.Obu>
split(ByteBuffer sample)

Splits the input sample into a list of OBUs.

Constants

OBU_FRAME

public static final int OBU_FRAME = 6

OBU type frame.

OBU_FRAME_HEADER

public static final int OBU_FRAME_HEADER = 3

OBU type frame header.

OBU_PADDING

public static final int OBU_PADDING = 15

OBU type padding.

OBU_SEQUENCE_HEADER

public static final int OBU_SEQUENCE_HEADER = 1

OBU type sequence header.

OBU_TEMPORAL_DELIMITER

public static final int OBU_TEMPORAL_DELIMITER = 2

OBU type temporal delimiter.

Public methods

split

public static List<ObuParser.Obusplit(ByteBuffer sample)

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
ByteBuffer sample

The sample data.

Returns
List<ObuParser.Obu>

The list of OBUs contained within the sample data.