@UnstableApi
class Av1Config


AV1 configuration data.

Summary

Public functions

java-static Av1Config?
parse(initializationData: ByteArray!)

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

Public properties

Int

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

String!

An RFC 6381 codecs string representing the video format.

@C.ColorRange Int

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

Int

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

Int

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

Public functions

parse

java-static fun parse(initializationData: ByteArray!): Av1Config?

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
initializationData: ByteArray!

The exact bytes of the AV1 configuration data to parse.

Returns
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.

Public properties

bitdepth

val bitdepthInt

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

codecs

val codecsString!

An RFC 6381 codecs string representing the video format.

See codecs and the AV1 codec string spec.

colorRange

val colorRange: @C.ColorRange Int

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

colorSpace

@C.ColorSpace
val colorSpaceInt

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

colorTransfer

@C.ColorTransfer
val colorTransferInt

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