# Av1Config

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

*** ** * ** ***


```
@UnstableApi
class Av1Config
```

<br />

*** ** * ** ***

AV1 configuration data.

## Summary

| ### Public functions |
|---|---|
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/extractor/Av1Config?` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/Av1Config#parse(byte[])(initializationData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/index.html>!)` Parses the av1C configuration record and OBU sequence header and returns an `https://developer.android.com/reference/kotlin/androidx/media3/extractor/Av1Config` from their data. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/Av1Config#bitdepth()` The bit depth of the 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/Av1Config#codecs()` An RFC 6381 codecs string representing the video format. |
| `@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/Av1Config#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/Av1Config#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/Av1Config#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. |

## Public functions

### parse

```
java-static fun parse(initializationData: ByteArray<Byte>!): Av1Config?
```

Parses the av1C configuration record and OBU sequence header and returns an `https://developer.android.com/reference/kotlin/androidx/media3/extractor/Av1Config` from their data.

See av1C configuration record syntax in the [AV1 ISOBMFF spec](https://aomediacodec.github.io/av1-isobmff/#av1codecconfigurationbox-syntax).

See av1C OBU syntax in the [AV1 Bitstream spec](https://aomediacodec.github.io/av1-spec/av1-spec.pdf).

| Parameters |
|---|---|
| `initializationData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte/index.html>!` | The exact bytes of the AV1 configuration data to parse. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/extractor/Av1Config?` | A parsed representation of the AV1 configuration data, or `null` if the version isn't supported. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException` | If an error occurred parsing the data. |

## Public properties

### bitdepth

```
val bitdepth: Int
```

The bit depth of the 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.

See `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#codecs()` and the [AV1 codec string spec](https://aomediacodec.github.io/av1-isobmff/#codecsparam).

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