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

```
public final class ShadowMediaCodecConfig.CodecInfo
```

<br />

*** ** * ** ***

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

## Summary

| ### Public fields |
|---|---|
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig.CodecInfo#codecName()` |
| `final https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/java/lang/Integer.html>` | `https://developer.android.com/reference/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig.CodecInfo#colorFormats()` |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig.CodecInfo#mimeType()` |
| `final 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/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig.CodecInfo#profileLevels()` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/test/utils/robolectric/ShadowMediaCodecConfig.CodecInfo#CodecInfo(java.lang.String,java.lang.String)(https://developer.android.com/reference/java/lang/String.html codecName, https://developer.android.com/reference/java/lang/String.html mimeType)` Creates an instance. |
| `https://developer.android.com/reference/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>)( https://developer.android.com/reference/java/lang/String.html codecName, https://developer.android.com/reference/java/lang/String.html 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> profileLevels, https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/java/lang/Integer.html> colorFormats )` Creates an instance. |

## Public fields

### codecName

```
public final String codecName
```

### colorFormats

```
public final ImmutableList<Integer> colorFormats
```

### mimeType

```
public final String mimeType
```

### profileLevels

```
public final ImmutableList<MediaCodecInfo.CodecProfileLevel> profileLevels
```

## Public constructors

### CodecInfo

```
public CodecInfo(String codecName, String mimeType)
```

Creates an instance.

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

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html codecName` | The name of the codec. |
| `https://developer.android.com/reference/java/lang/String.html mimeType` | The MIME type of the codec. |

### CodecInfo

```
public CodecInfo(
    String codecName,
    String mimeType,
    ImmutableList<MediaCodecInfo.CodecProfileLevel> profileLevels,
    ImmutableList<Integer> colorFormats
)
```

Creates an instance.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html codecName` | The name of the codec. |
| `https://developer.android.com/reference/java/lang/String.html mimeType` | The MIME type of the codec. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/android/media/MediaCodecInfo.CodecProfileLevel.html> profileLevels` | A list of profiles and levels supported by the codec. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/java/lang/Integer.html> colorFormats` | A list of color formats supported by the codec. |