# HevcConfig

Artifact: [androidx.media3:media3-extractor](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/extractor/HevcConfig.java+class:androidx.media3.extractor.HevcConfig)

*** ** * ** ***


```
@UnstableApi
class HevcConfig
```

<br />

*** ** * ** ***

HEVC configuration data.

## Summary

| ### Public functions |
|---|---|
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig!` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#parse(androidx.media3.common.util.ParsableByteArray)(data: https://developer.android.com/reference/kotlin/androidx/media3/common/util/ParsableByteArray!)` Parses HEVC configuration data. |
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig!` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#parseLayered(androidx.media3.common.util.ParsableByteArray,androidx.media3.container.NalUnitUtil.H265VpsData)(data: https://developer.android.com/reference/kotlin/androidx/media3/common/util/ParsableByteArray!, vpsData: https://developer.android.com/reference/kotlin/androidx/media3/container/NalUnitUtil.H265VpsData!)` Parses L-HEVC configuration data. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#bitdepthChroma()` The bit depth of the chroma samples, or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#bitdepthLuma()` The bit depth of the luma samples, or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#codecs()` An RFC 6381 codecs string representing the video format, or `null` if not known. |
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.ColorRange https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#colorRange()` The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.ColorRange` of the video or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown or not applicable. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.ColorSpace https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#colorSpace()` The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.ColorSpace` of the video or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown or not applicable. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.ColorTransfer https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#colorTransfer()` The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.ColorTransfer` of the video or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown or not applicable. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#decodedHeight()` The height of each decoded picture, or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#decodedWidth()` The width of each decoded picture, or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#height()` The height of each cropped decoded picture, or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown. |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/index.html>!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#initializationData()` List of buffers containing the codec-specific data to be provided to the decoder. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#maxNumReorderPics()` The `sps_max_num_reorder_pics` value. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#maxSubLayers()` The `sps_max_sub_layers_minus1 + 1` value: the number of temporal sub-layers. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#nalUnitLengthFieldLength()` The length of the NAL unit length field in the bitstream's container, in bytes. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#pixelWidthHeightRatio()` The pixel width to height ratio. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.StereoMode https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#stereoMode()` The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.StereoMode` of the video or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown or not applicable. |
| `https://developer.android.com/reference/kotlin/androidx/media3/container/NalUnitUtil.H265VpsData?` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#vpsData()` The parsed representation of VPS data or `null` if not available. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig#width()` The width of each cropped decoded picture, or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown. |

## Public functions

### parse

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

Parses HEVC configuration data.

| Parameters |
|---|---|
| `data: https://developer.android.com/reference/kotlin/androidx/media3/common/util/ParsableByteArray!` | A `https://developer.android.com/reference/kotlin/androidx/media3/common/util/ParsableByteArray`, whose position is set to the start of the HEVC configuration data to parse. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig!` | A parsed representation of the HEVC configuration data. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/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: https://developer.android.com/reference/kotlin/androidx/media3/common/util/ParsableByteArray!` | A `https://developer.android.com/reference/kotlin/androidx/media3/common/util/ParsableByteArray`, whose position is set to the start of the L-HEVC configuration data to parse. |
| `vpsData: https://developer.android.com/reference/kotlin/androidx/media3/container/NalUnitUtil.H265VpsData!` | A parsed representation of VPS data. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/extractor/HevcConfig!` | A parsed representation of the L-HEVC configuration data. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/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 `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown.

### bitdepthLuma

```
val bitdepthLuma: Int
```

The bit depth of the luma samples, or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown.

### codecs

```
val codecs: String?
```

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

See `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#codecs()`.

### colorRange

```
val colorRange: @C.ColorRange Int
```

The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.ColorRange` of the video or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown or not applicable.

Value is one of the following:

- `Format.NO_VALUE`

<br />

### colorSpace

```
@C.ColorSpace
val colorSpace: Int
```

The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.ColorSpace` of the video or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown or not applicable.

Value is one of the following:

- `Format.NO_VALUE`

<br />

### colorTransfer

```
@C.ColorTransfer
val colorTransfer: Int
```

The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.ColorTransfer` of the video or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown or not applicable.

Value is one of the following:

- `Format.NO_VALUE`

<br />

### decodedHeight

```
val decodedHeight: Int
```

The height of each decoded picture, or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown.

### decodedWidth

```
val decodedWidth: Int
```

The width of each decoded picture, or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown.

### height

```
val height: Int
```

The height of each cropped decoded picture, or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#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 `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#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 `https://developer.android.com/reference/kotlin/androidx/media3/common/C.StereoMode` of the video or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown or not applicable.

Value is one of the following:

- `Format.NO_VALUE`

<br />

### 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 `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown.