# CodecSpecificDataUtil.MediaCodecProfileAndLevel

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

*** ** * ** ***


```
class CodecSpecificDataUtil.MediaCodecProfileAndLevel
```

<br />

*** ** * ** ***

A tuple of profile and level constants for `https://developer.android.com/reference/android/media/MediaCodec.html`.

This is similar to `https://developer.android.com/reference/android/media/MediaCodecInfo.CodecProfileLevel.html`, except it:

- Is immutable.
- Can be used to represent a profile and level that may be valid but isn't representable by `https://developer.android.com/reference/android/media/MediaCodecInfo.CodecProfileLevel.html` constants.

## Summary

| ### Constants |
|---|---|
| `const https://developer.android.com/reference/kotlin/androidx/media3/common/util/CodecSpecificDataUtil.MediaCodecProfileAndLevel!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/util/CodecSpecificDataUtil.MediaCodecProfileAndLevel#UNSUPPORTABLE()` An instance that represents a profile and level combination not representable with `https://developer.android.com/reference/android/media/MediaCodecInfo.CodecProfileLevel.html` constants. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/util/CodecSpecificDataUtil.MediaCodecProfileAndLevel#MediaCodecProfileAndLevel(int,int)(profile: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, level: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Constructs an instance with values from `https://developer.android.com/reference/android/media/MediaCodecInfo.CodecProfileLevel.html`. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/util/CodecSpecificDataUtil.MediaCodecProfileAndLevel#isSupportableByMediaCodec()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/util/CodecSpecificDataUtil.MediaCodecProfileAndLevel#level()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/util/CodecSpecificDataUtil.MediaCodecProfileAndLevel#profile()` |

## Constants

### UNSUPPORTABLE

```
const val UNSUPPORTABLE: CodecSpecificDataUtil.MediaCodecProfileAndLevel!
```

An instance that represents a profile and level combination not representable with `https://developer.android.com/reference/android/media/MediaCodecInfo.CodecProfileLevel.html` constants.

## Public constructors

### MediaCodecProfileAndLevel

```
MediaCodecProfileAndLevel(profile: Int, level: Int)
```

Constructs an instance with values from `https://developer.android.com/reference/android/media/MediaCodecInfo.CodecProfileLevel.html`.

## Public properties

### isSupportableByMediaCodec

```
val isSupportableByMediaCodec: Boolean
```

### level

```
val level: Int
```

### profile

```
val profile: Int
```