@UnstableApi
class AvcConfig


AVC configuration data.

Summary

Public functions

java-static AvcConfig!

Parses AVC configuration data.

Public properties

Int

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

Int

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

String?

An RFC 6381 codecs string representing the video format, or null if not known.

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

Int

The height of each decoded frame, or NO_VALUE if unknown.

(Mutable)List<ByteArray<Byte>!>!

List of buffers containing the codec-specific data to be provided to the decoder.

Int

The value of max_num_reorder_frames read from the VUI parameters, or inferred according to the spec if absent.

Int

The length of the NAL unit length field in the bitstream's container, in bytes.

Float

The pixel width to height ratio.

Int

The width of each decoded frame, or NO_VALUE if unknown.

Public functions

parse

java-static fun parse(data: ParsableByteArray!): AvcConfig!

Parses AVC configuration data.

Parameters
data: ParsableByteArray!

A ParsableByteArray, whose position is set to the start of the AVC configuration data to parse.

Returns
AvcConfig!

A parsed representation of the AVC configuration data.

Throws
androidx.media3.common.ParserException

If an error occurred parsing the data.

Public properties

bitdepthChroma

val bitdepthChromaInt

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

bitdepthLuma

val bitdepthLumaInt

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

codecs

val codecsString?

An RFC 6381 codecs string representing the video format, or null if not known.

See codecs.

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.

height

val heightInt

The height of each decoded frame, or NO_VALUE if unknown.

initializationData

val initializationData: (Mutable)List<ByteArray<Byte>!>!

List of buffers containing the codec-specific data to be provided to the decoder.

See initializationData.

maxNumReorderFrames

val maxNumReorderFramesInt

The value of max_num_reorder_frames read from the VUI parameters, or inferred according to the spec if absent.

nalUnitLengthFieldLength

val nalUnitLengthFieldLengthInt

The length of the NAL unit length field in the bitstream's container, in bytes.

pixelWidthHeightRatio

val pixelWidthHeightRatioFloat

The pixel width to height ratio.

width

val widthInt

The width of each decoded frame, or NO_VALUE if unknown.