@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 picture, or NO_VALUE if unknown.

Int

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

Int

The height of each cropped decoded picture, or NO_VALUE if unknown.

(Mutable)List<Array<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 sps_max_sub_layers_minus1 + 1 value: the number of temporal sub-layers.

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 cropped decoded picture, 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 bitdepthChroma: Int

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

bitdepthLuma

val bitdepthLuma: Int

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

codecs

val codecs: String?

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 colorSpace: Int

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

colorTransfer

@C.ColorTransfer
val colorTransfer: Int

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

decodedHeight

val decodedHeight: Int

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

decodedWidth

val decodedWidth: Int

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

height

val height: Int

The height of each cropped decoded picture, or NO_VALUE if unknown.

initializationData

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

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

See initializationData.

maxNumReorderPics

val maxNumReorderPics: Int

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.

maxSubLayers

val maxSubLayers: Int

The sps_max_sub_layers_minus1 + 1 value: the number of temporal sub-layers.

nalUnitLengthFieldLength

val nalUnitLengthFieldLength: Int

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

pixelWidthHeightRatio

val pixelWidthHeightRatio: Float

The pixel width to height ratio.

stereoMode

@C.StereoMode
val stereoMode: Int

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

vpsData

val vpsData: NalUnitUtil.H265VpsData?

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

width

val width: Int

The width of each cropped decoded picture, or NO_VALUE if unknown.