@UnstableApi
public final class Av1Config


AV1 configuration data.

Summary

Public fields

final int

The bit depth of the samples, or NO_VALUE if unknown.

final String

An RFC 6381 codecs string representing the video format.

final @C.ColorRange int

The C.ColorRange of the video, or NO_VALUE if unknown or not applicable.

final int

The C.ColorSpace of the video, or NO_VALUE if unknown or not applicable.

final int

The C.ColorTransfer of the video, or NO_VALUE if unknown or not applicable.

Public methods

static @Nullable Av1Config
parse(byte[] initializationData)

Parses the av1C configuration record and OBU sequence header and returns an Av1Config from their data.

Public fields

bitdepth

public final int bitdepth

The bit depth of the samples, or NO_VALUE if unknown.

codecs

public final String codecs

An RFC 6381 codecs string representing the video format.

See codecs and the AV1 codec string spec.

colorRange

public final @C.ColorRange int colorRange

The C.ColorRange of the video, or NO_VALUE if unknown or not applicable.

colorSpace

@C.ColorSpace
public final int colorSpace

The C.ColorSpace of the video, or NO_VALUE if unknown or not applicable.

colorTransfer

@C.ColorTransfer
public final int colorTransfer

The C.ColorTransfer of the video, or NO_VALUE if unknown or not applicable.

Public methods

parse

public static @Nullable Av1Config parse(byte[] initializationData)

Parses the av1C configuration record and OBU sequence header and returns an Av1Config from their data.

See av1C configuration record syntax in the AV1 ISOBMFF spec.

See av1C OBU syntax in the AV1 Bitstream spec.

Parameters
byte[] initializationData

The exact bytes of the AV1 configuration data to parse.

Returns
@Nullable Av1Config

A parsed representation of the AV1 configuration data, or null if the version isn't supported.

Throws
androidx.media3.common.ParserException

If an error occurred parsing the data.