# AvcConfig

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/AvcConfig.java+class:androidx.media3.extractor.AvcConfig)

*** ** * ** ***


```
@UnstableApi
class AvcConfig
```

<br />

*** ** * ** ***

AVC configuration data.

## Summary

| ### Public functions |
|---|---|
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/extractor/AvcConfig!` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/AvcConfig#parse(androidx.media3.common.util.ParsableByteArray)(data: https://developer.android.com/reference/kotlin/androidx/media3/common/util/ParsableByteArray!)` Parses AVC configuration data. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/AvcConfig#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/AvcConfig#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/AvcConfig#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/AvcConfig#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/AvcConfig#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/AvcConfig#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/AvcConfig#height()` The height of each decoded frame, 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/AvcConfig#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/AvcConfig#maxNumReorderFrames()` The value of `max_num_reorder_frames` read from the VUI parameters, or inferred according to the spec if absent. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/AvcConfig#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/AvcConfig#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/extractor/AvcConfig#width()` The width of each decoded frame, or `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#NO_VALUE()` if unknown. |

## Public functions

### parse

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

Parses AVC 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 AVC configuration data to parse. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/extractor/AvcConfig!` | A parsed representation of the AVC 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 />

### height

```
val height: Int
```

The height of each decoded frame, 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()`.

### maxNumReorderFrames

```
val maxNumReorderFrames: Int
```

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

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

### width

```
val width: Int
```

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