# ShadowMediaCodecConfig.CodecInfo

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

*** ** * ** ***

<br />

```
class ShadowMediaCodecConfig.CodecInfo
```

<br />

*** ** * ** ***

Class that holds information about a `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig.CodecImpl` configuration.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig.CodecInfo#CodecInfo(java.lang.String,java.lang.String)(codecName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, mimeType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Creates an instance. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig.CodecInfo#CodecInfo(java.lang.String,java.lang.String,com.google.common.collect.ImmutableList<android.media.MediaCodecInfo.CodecProfileLevel>,com.google.common.collect.ImmutableList<java.lang.Integer>)( codecName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, mimeType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, profileLevels: https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/android/media/MediaCodecInfo.CodecProfileLevel.html!>!, colorFormats: https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>! )` Creates an instance. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig.CodecInfo#codecName()` |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig.CodecInfo#colorFormats()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig.CodecInfo#mimeType()` |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/android/media/MediaCodecInfo.CodecProfileLevel.html!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig.CodecInfo#profileLevels()` |

## Public constructors

### CodecInfo

```
CodecInfo(codecName: String!, mimeType: String!)
```

Creates an instance.

This method is equivalent to `CodecInfo(codecName, mimeType, ImmutableList.of(), ImmutableList.of()`.

| Parameters |
|---|---|
| `codecName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The name of the codec. |
| `mimeType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The MIME type of the codec. |

### CodecInfo

```
CodecInfo(
    codecName: String!,
    mimeType: String!,
    profileLevels: ImmutableList<MediaCodecInfo.CodecProfileLevel!>!,
    colorFormats: ImmutableList<Int!>!
)
```

Creates an instance.

| Parameters |
|---|---|
| `codecName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The name of the codec. |
| `mimeType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The MIME type of the codec. |
| `profileLevels: https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/android/media/MediaCodecInfo.CodecProfileLevel.html!>!` | A list of profiles and levels supported by the codec. |
| `colorFormats: https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>!` | A list of color formats supported by the codec. |

## Public properties

### codecName

```
val codecName: String!
```

### colorFormats

```
val colorFormats: ImmutableList<Int!>!
```

### mimeType

```
val mimeType: String!
```

### profileLevels

```
val profileLevels: ImmutableList<MediaCodecInfo.CodecProfileLevel!>!
```