@UnstableApi
class HevcConfig


HEVC configuration data.

Summary

Public functions

java-static HevcConfig!

Parses HEVC configuration data.

java-static HevcConfig!

Parses L-HEVC 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 sps_max_num_reorder_pics value.

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 C.StereoMode of the video or NO_VALUE if unknown or not applicable.

NalUnitUtil.H265VpsData?

The parsed representation of VPS data or null if not available.

Int

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

Public functions

parse

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

Parses HEVC configuration data.

Parameters
data: ParsableByteArray!

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

Returns
HevcConfig!

A parsed representation of the HEVC configuration data.

Throws
androidx.media3.common.ParserException

If an error occurred parsing the data.

parseLayered

java-static fun parseLayered(data: ParsableByteArray!, vpsData: NalUnitUtil.H265VpsData!): HevcConfig!

Parses L-HEVC configuration data.

Parameters
data: ParsableByteArray!

A ParsableByteArray, whose position is set to the start of the L-HEVC configuration data to parse.

vpsData: NalUnitUtil.H265VpsData!

A parsed representation of VPS data.

Returns
HevcConfig!

A parsed representation of the L-HEVC 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.

maxNumReorderPics

val maxNumReorderPicsInt

The sps_max_num_reorder_pics value.

If a different value is present for each layer (due to sps_sub_layer_ordering_info_present_flag), this value is the max of the values for all the layers.

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.

stereoMode

@C.StereoMode
val stereoModeInt

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

vpsData

val vpsDataNalUnitUtil.H265VpsData?

The parsed representation of VPS data or null if not available.

width

val widthInt

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