Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# CodecCapabilities

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities "View this page in Java")

```
class CodecCapabilities
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.media.MediaCodecInfo.CodecCapabilities](https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#) |

Encapsulates the capabilities of a given codec component. For example, what profile/level combinations it supports and what colorspaces it is capable of providing the decoded data in, as well as some codec-type specific capability flags.

You can get an instance for a given `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo` object with `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo#getCapabilitiesForType(kotlin.String)`, passing a MIME type.

## Summary

| Constants ||
|---|---|
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format12bitRGB444:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format16bitARGB1555:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format16bitARGB4444:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format16bitBGR565:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format16bitRGB565:kotlin.Int` 16 bits per pixel RGB color format, with 5-bit red \& blue and 6-bit green component. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format18BitBGR666:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format18bitARGB1665:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format18bitRGB666:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format19bitARGB1666:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format24BitABGR6666:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format24BitARGB6666:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format24bitARGB1887:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format24bitBGR888:kotlin.Int` 24 bits per pixel RGB color format, with 8-bit red, green \& blue components. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format24bitRGB888:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format25bitARGB1888:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitABGR2101010:kotlin.Int` 32 bits per pixel RGBA color format, with 10-bit red, green, blue, and 2-bit alpha components. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitABGR8888:kotlin.Int` 32 bits per pixel RGBA color format, with 8-bit red, green, blue, and alpha components. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitARGB8888:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitBGRA8888:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format64bitABGRFloat:kotlin.Int` 64 bits per pixel RGBA color format, with 16-bit signed floating point red, green, blue, and alpha components. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format8bitRGB332:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatCbYCrY:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatCrYCbY:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatL16:kotlin.Int` 16 bits per pixel, little-endian Y color format. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatL2:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatL24:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatL32:kotlin.Int` 32 bits per pixel, little-endian Y color format. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatL4:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatL8:kotlin.Int` 8 bits per pixel Y color format. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatMonochrome:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatRGBAFlexible:kotlin.Int` Flexible 32 bits per pixel RGBA color format with 8-bit red, green, blue, and alpha components. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatRGBFlexible:kotlin.Int` Flexible 24 bits per pixel RGB color format with 8-bit red, green and blue components. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatRawBayer10bit:kotlin.Int` SMIA 10-bit Bayer format. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatRawBayer8bit:kotlin.Int` SMIA 8-bit Bayer format. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatRawBayer8bitcompressed:kotlin.Int` SMIA 8-bit compressed Bayer format. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatSurface:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYCbYCr:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYCrYCb:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV411PackedPlanar:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV411Planar:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420Flexible:kotlin.Int` Flexible 12 bits per pixel, subsampled YUV color format with 8-bit chroma and luma components. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420PackedPlanar:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420PackedSemiPlanar:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420Planar:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420SemiPlanar:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422Flexible:kotlin.Int` Flexible 16 bits per pixel, subsampled YUV color format with 8-bit chroma and luma components. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422PackedPlanar:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422PackedSemiPlanar:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422Planar:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422SemiPlanar:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV444Flexible:kotlin.Int` Flexible 24 bits per pixel YUV color format with 8-bit chroma and luma components. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV444Interleaved:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUVP010:kotlin.Int` P010 is 10-bit-per component 4:2:0 YCbCr semiplanar format. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUVP210:kotlin.Int` P210 is 10-bit-per component 4:2:2 YCbCr semiplanar format. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_QCOM_FormatYUV420SemiPlanar:kotlin.Int` <br /> |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_TI_FormatYUV420PackedSemiPlanar:kotlin.Int` <br /> |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_AdaptivePlayback:kotlin.String` **video decoder only**: codec supports seamless resolution changes. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_DetachedSurface:kotlin.String` **video decoder only**: codec supports detaching the output surface when in Surface mode. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_DynamicColorAspects:kotlin.String` **video decoder only**: codec supports dynamically changing color aspects. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_DynamicTimestamp:kotlin.String` If true, the timestamp of each output buffer is derived from the timestamp of the input buffer that produced the output. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_EncodingStatistics:kotlin.String` **video encoder only**: codec supports exporting encoding statistics. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_FrameParsing:kotlin.String` **decoder only**If true, the codec supports partial (including multiple) access units per input buffer. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_HdrEditing:kotlin.String` **video encoder only**: codec supports HDR editing. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_HlgEditing:kotlin.String` **video encoder only**: codec supports HLG editing. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_IntraRefresh:kotlin.String` **video encoder only**: codec supports intra refresh. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_LowLatency:kotlin.String` **decoder only**: codec supports low latency decoding. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_MultipleFrames:kotlin.String` If true, the codec supports multiple access units (for decoding, or to output for encoders). |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_PartialFrame:kotlin.String` **video decoder only**: codec supports queuing partial frames. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_QpBounds:kotlin.String` **video encoder only**: codec supports quantization parameter bounds. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_Roi:kotlin.String` **video encoder only**: codec supports region of interest encoding. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_SecurePlayback:kotlin.String` **video decoder only**: codec supports secure decryption. |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_TunneledPlayback:kotlin.String` **video or audio decoder only**: codec supports tunneled playback. |

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#CodecCapabilities()()` <br /> |

| Public methods ||
|---|---|
| static [MediaCodecInfo.CodecCapabilities](https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#)! | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#createFromProfileLevel(kotlin.String,%20kotlin.Int,%20kotlin.Int)(mime: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, profile: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, level: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Retrieve the codec capabilities for a certain `mime type`, `profile` and `level`. |
| [MediaCodecInfo.AudioCapabilities](https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.AudioCapabilities)? | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#getAudioCapabilities()()` Returns the audio capabilities or `null` if this is not an audio codec. |
| [MediaFormat](https://developer.android.com/reference/kotlin/android/media/MediaFormat)! | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#getDefaultFormat()()` Returns a MediaFormat object with default values for configurations that have defaults. |
| [MediaCodecInfo.EncoderCapabilities](https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.EncoderCapabilities)? | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#getEncoderCapabilities()()` Returns the encoding capabilities or `null` if this is not an encoder. |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#getMaxSupportedInstances()()` Returns the max number of the supported concurrent codec instances. |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#getMimeType()()` Returns the mime type for which this codec-capability object was created. |
| [MediaCodecInfo.VideoCapabilities](https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.VideoCapabilities)? | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#getVideoCapabilities()()` Returns the video capabilities or `null` if this is not a video codec. |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#isFeatureRequired(kotlin.String)(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` Query codec feature requirements. |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#isFeatureSupported(kotlin.String)(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!)` Query codec feature capabilities. |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#isFormatSupported(android.media.MediaFormat)(format: https://developer.android.com/reference/kotlin/android/media/MediaFormat!)` Query whether codec supports a given `https://developer.android.com/reference/kotlin/android/media/MediaFormat`. |

| Properties ||
|---|---|
| [IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)! | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#colorFormats:kotlin.IntArray` The color format for the media. |
| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[MediaCodecInfo.CodecProfileLevel](https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecProfileLevel)!\>! | `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#profileLevels:kotlin.Array` <br /> |

## Constants

### COLOR_Format12bitRGB444

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format12bitRGB444: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format24bitBGR888:kotlin.Int`.*

    Value: 3

### COLOR_Format16bitARGB1555

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format16bitARGB1555: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitABGR8888:kotlin.Int`.*

    Value: 5

### COLOR_Format16bitARGB4444

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format16bitARGB4444: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitABGR8888:kotlin.Int`.*

    Value: 4

### COLOR_Format16bitBGR565

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format16bitBGR565: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format16bitRGB565:kotlin.Int`.*

    Value: 7

### COLOR_Format16bitRGB565

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format16bitRGB565: Int
```

16 bits per pixel RGB color format, with 5-bit red \& blue and 6-bit green component.

Using 16-bit little-endian representation, colors stored as Red 15:11, Green 10:5, Blue 4:0.

```kotlin
byte                   byte
   <--- i ---> | <--- i + 1 --->
  +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
  |     BLUE     |      GREEN      |     RED      |
  +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
   0           4  5     7   0     2  3           7
  bit
  
```
This format corresponds to `https://developer.android.com/reference/kotlin/android/graphics/PixelFormat.html#RGB_565:kotlin.Int` and `https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#RGB_565:kotlin.Int`.

    Value: 6

### COLOR_Format18BitBGR666

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format18BitBGR666: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format24bitBGR888:kotlin.Int`.*

    Value: 41

### COLOR_Format18bitARGB1665

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format18bitARGB1665: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitABGR8888:kotlin.Int`.*

    Value: 9

### COLOR_Format18bitRGB666

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format18bitRGB666: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format24bitBGR888:kotlin.Int`.*

    Value: 8

### COLOR_Format19bitARGB1666

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format19bitARGB1666: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitABGR8888:kotlin.Int`.*

    Value: 10

### COLOR_Format24BitABGR6666

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format24BitABGR6666: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitABGR8888:kotlin.Int`.*

    Value: 43

### COLOR_Format24BitARGB6666

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format24BitARGB6666: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitABGR8888:kotlin.Int`.*

    Value: 42

### COLOR_Format24bitARGB1887

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format24bitARGB1887: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitABGR8888:kotlin.Int`.*

    Value: 13

### COLOR_Format24bitBGR888

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format24bitBGR888: Int
```

24 bits per pixel RGB color format, with 8-bit red, green \& blue components.

Using 24-bit little-endian representation, colors stored as Red 7:0, Green 15:8, Blue 23:16.

```kotlin
byte              byte             byte
   <--- i ---> | <--- i+1 ---> | <--- i+2 --->
  +---+---+---+
  |       RED       |      GREEN      |       BLUE      |
  +---+---+---+
  
```
This format corresponds to `https://developer.android.com/reference/kotlin/android/graphics/PixelFormat.html#RGB_888:kotlin.Int`, and can also be represented as a flexible format by `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatRGBFlexible:kotlin.Int`.

    Value: 12

### COLOR_Format24bitRGB888

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format24bitRGB888: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format24bitBGR888:kotlin.Int` or `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatRGBFlexible:kotlin.Int`.*

    Value: 11

### COLOR_Format25bitARGB1888

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format25bitARGB1888: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitABGR8888:kotlin.Int`.*

    Value: 14

### COLOR_Format32bitABGR2101010

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format32bitABGR2101010: Int
```

32 bits per pixel RGBA color format, with 10-bit red, green, blue, and 2-bit alpha components.

Using 32-bit little-endian representation, colors stored as Red 9:0, Green 19:10, Blue 29:20, and Alpha 31:30.

```kotlin
byte              byte             byte              byte
   <--- i ---> | <--- i+1 ---> | <--- i+2 ---> | <--- i+3 --->
  +---+---+---+---+---+---+---+
  |       RED           |      GREEN          |       BLUE          |ALPHA|
  +---+---+---+---+---+---+---+
   0               7 0 1 2           7 0     3 4       7 0         5 6   7
  
```
This corresponds to `https://developer.android.com/reference/kotlin/android/graphics/PixelFormat.html#RGBA_1010102:kotlin.Int`.

    Value: 2130750114

### COLOR_Format32bitABGR8888

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format32bitABGR8888: Int
```

32 bits per pixel RGBA color format, with 8-bit red, green, blue, and alpha components.

Using 32-bit little-endian representation, colors stored as Red 7:0, Green 15:8, Blue 23:16, and Alpha 31:24.

```kotlin
byte              byte             byte              byte
   <--- i ---> | <--- i+1 ---> | <--- i+2 ---> | <--- i+3 --->
  +---+---+---+---+
  |       RED       |      GREEN      |       BLUE      |      ALPHA      |
  +---+---+---+---+
  
```
This corresponds to `https://developer.android.com/reference/kotlin/android/graphics/PixelFormat.html#RGBA_8888:kotlin.Int`.

    Value: 2130747392

### COLOR_Format32bitARGB8888

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format32bitARGB8888: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitABGR8888:kotlin.Int` Or `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatRGBAFlexible:kotlin.Int`.*

    Value: 16

### COLOR_Format32bitBGRA8888

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format32bitBGRA8888: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitABGR8888:kotlin.Int` Or `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatRGBAFlexible:kotlin.Int`.*

    Value: 15

### COLOR_Format64bitABGRFloat

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format64bitABGRFloat: Int
```

64 bits per pixel RGBA color format, with 16-bit signed floating point red, green, blue, and alpha components.

```kotlin
byte              byte             byte              byte
   <-- i -->|<- i+1 ->|<- i+2 ->|<- i+3 ->|<- i+4 ->|<- i+5 ->|<- i+6 ->|<- i+7 ->
  +---+---+---+---+---+---+---+
  |        RED        |       GREEN       |       BLUE        |       ALPHA       |
  +---+---+---+---+---+---+---+
   0       7 0       7 0       7 0       7 0       7 0       7 0       7 0       7
  
```
This corresponds to `https://developer.android.com/reference/kotlin/android/graphics/PixelFormat.html#RGBA_F16:kotlin.Int`.

    Value: 2130710294

### COLOR_Format8bitRGB332

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_Format8bitRGB332: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format24bitBGR888:kotlin.Int`.*

    Value: 2

### COLOR_FormatCbYCrY

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatCbYCrY: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422Flexible:kotlin.Int`.*

    Value: 27

### COLOR_FormatCrYCbY

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatCrYCbY: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422Flexible:kotlin.Int`.*

    Value: 28

### COLOR_FormatL16

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatL16: Int
```

16 bits per pixel, little-endian Y color format.

```kotlin
byte                   byte
   <--- i ---> | <--- i + 1 --->
  +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
  |                       Y                       |
  +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
   0                    7   0                    7
  bit
  
```

    Value: 36

### COLOR_FormatL2

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatL2: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatL8:kotlin.Int`.*

    Value: 33

### COLOR_FormatL24

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatL24: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatL16:kotlin.Int`.*

    Value: 37

### COLOR_FormatL32

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatL32: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatL16:kotlin.Int`.*

32 bits per pixel, little-endian Y color format.

```kotlin
byte              byte             byte              byte
   <--- i ---> | <--- i+1 ---> | <--- i+2 ---> | <--- i+3 --->
  +---+---+---+---+
  |                                   Y                                   |
  +---+---+---+---+
   0               7 0               7 0               7 0               7
  bit
  
```

    Value: 38

### COLOR_FormatL4

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatL4: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatL8:kotlin.Int`.*

    Value: 34

### COLOR_FormatL8

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatL8: Int
```

8 bits per pixel Y color format.

Each byte contains a single pixel. This format corresponds to `https://developer.android.com/reference/kotlin/android/graphics/PixelFormat.html#L_8:kotlin.Int`.

    Value: 35

### COLOR_FormatMonochrome

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatMonochrome: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format24bitBGR888:kotlin.Int`.*

    Value: 1

### COLOR_FormatRGBAFlexible

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatRGBAFlexible: Int
```

Flexible 32 bits per pixel RGBA color format with 8-bit red, green, blue, and alpha components.

Use this format with `https://developer.android.com/reference/kotlin/android/media/Image`. This format corresponds to `https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#FLEX_RGBA_8888:kotlin.Int`, and can represent `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitBGRA8888:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitABGR8888:kotlin.Int` and `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format32bitARGB8888:kotlin.Int` formats.

    Value: 2134288520

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/Image#getFormat()`

### COLOR_FormatRGBFlexible

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatRGBFlexible: Int
```

Flexible 24 bits per pixel RGB color format with 8-bit red, green and blue components.

Use this format with `https://developer.android.com/reference/kotlin/android/media/Image`. This format corresponds to `https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#FLEX_RGB_888:kotlin.Int`, and can represent `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format24bitBGR888:kotlin.Int` and `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_Format24bitRGB888:kotlin.Int` formats.

    Value: 2134292616

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/Image#getFormat()`

### COLOR_FormatRawBayer10bit

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatRawBayer10bit: Int
```

SMIA 10-bit Bayer format.

    Value: 31

### COLOR_FormatRawBayer8bit

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatRawBayer8bit: Int
```

SMIA 8-bit Bayer format. Each byte represents the top 8-bits of a 10-bit signal.

    Value: 30

### COLOR_FormatRawBayer8bitcompressed

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatRawBayer8bitcompressed: Int
```

SMIA 8-bit compressed Bayer format. Each byte represents a sample from the 10-bit signal that is compressed into 8-bits using DPCM/PCM compression, as defined by the SMIA Functional Specification.

    Value: 32

### COLOR_FormatSurface

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatSurface: Int
```

    Value: 2130708361

### COLOR_FormatYCbYCr

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYCbYCr: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422Flexible:kotlin.Int`.*

    Value: 25

### COLOR_FormatYCrYCb

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYCrYCb: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422Flexible:kotlin.Int`.*

    Value: 26

### COLOR_FormatYUV411PackedPlanar

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUV411PackedPlanar: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420Flexible:kotlin.Int`.*

    Value: 18

### COLOR_FormatYUV411Planar

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUV411Planar: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420Flexible:kotlin.Int`.*

    Value: 17

### COLOR_FormatYUV420Flexible

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUV420Flexible: Int
```

Flexible 12 bits per pixel, subsampled YUV color format with 8-bit chroma and luma components.

Chroma planes are subsampled by 2 both horizontally and vertically. Use this format with `https://developer.android.com/reference/kotlin/android/media/Image`. This format corresponds to `https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YUV_420_888:kotlin.Int`, and can represent the `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV411Planar:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV411PackedPlanar:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420Planar:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420PackedPlanar:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420SemiPlanar:kotlin.Int` and `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420PackedSemiPlanar:kotlin.Int` formats.

    Value: 2135033992

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/Image#getFormat()`

### COLOR_FormatYUV420PackedPlanar

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUV420PackedPlanar: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420Flexible:kotlin.Int`.*

    Value: 20

### COLOR_FormatYUV420PackedSemiPlanar

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUV420PackedSemiPlanar: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420Flexible:kotlin.Int`.*

    Value: 39

### COLOR_FormatYUV420Planar

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUV420Planar: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420Flexible:kotlin.Int`.*

    Value: 19

### COLOR_FormatYUV420SemiPlanar

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUV420SemiPlanar: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420Flexible:kotlin.Int`.*

    Value: 21

### COLOR_FormatYUV422Flexible

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUV422Flexible: Int
```

Flexible 16 bits per pixel, subsampled YUV color format with 8-bit chroma and luma components.

Chroma planes are horizontally subsampled by 2. Use this format with `https://developer.android.com/reference/kotlin/android/media/Image`. This format corresponds to `https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YUV_422_888:kotlin.Int`, and can represent the `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYCbYCr:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYCrYCb:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatCbYCrY:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatCrYCbY:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422Planar:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422PackedPlanar:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422SemiPlanar:kotlin.Int` and `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422PackedSemiPlanar:kotlin.Int` formats.

    Value: 2135042184

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/Image#getFormat()`

### COLOR_FormatYUV422PackedPlanar

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUV422PackedPlanar: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422Flexible:kotlin.Int`.*

    Value: 23

### COLOR_FormatYUV422PackedSemiPlanar

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUV422PackedSemiPlanar: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422Flexible:kotlin.Int`.*

    Value: 40

### COLOR_FormatYUV422Planar

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUV422Planar: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422Flexible:kotlin.Int`.*

    Value: 22

### COLOR_FormatYUV422SemiPlanar

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUV422SemiPlanar: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV422Flexible:kotlin.Int`.*

    Value: 24

### COLOR_FormatYUV444Flexible

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUV444Flexible: Int
```

Flexible 24 bits per pixel YUV color format with 8-bit chroma and luma components.

Chroma planes are not subsampled. Use this format with `https://developer.android.com/reference/kotlin/android/media/Image`. This format corresponds to `https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YUV_444_888:kotlin.Int`, and can represent the `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV444Interleaved:kotlin.Int` format.

    Value: 2135181448

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/Image#getFormat()`

### COLOR_FormatYUV444Interleaved

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUV444Interleaved: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV444Flexible:kotlin.Int`.*

    Value: 29

### COLOR_FormatYUVP010

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUVP010: Int
```

P010 is 10-bit-per component 4:2:0 YCbCr semiplanar format.

This format uses 24 allocated bits per pixel with 15 bits of data per pixel. Chroma planes are subsampled by 2 both horizontally and vertically. Each chroma and luma component has 16 allocated bits in little-endian configuration with 10 MSB of actual data.

```kotlin
byte                   byte
   <--- i ---> | <--- i + 1 --->
  +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
  |     UNUSED      |      Y/Cb/Cr                |
  +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
   0               5 6   7 0                    7
  bit
  
```
Use this format with `https://developer.android.com/reference/kotlin/android/media/Image`. This format corresponds to `https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YCBCR_P010:kotlin.Int`.

<br />

    Value: 54

### COLOR_FormatYUVP210

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_FormatYUVP210: Int
```

P210 is 10-bit-per component 4:2:2 YCbCr semiplanar format.

This format uses 32 allocated bits per pixel with 20 bits of data per pixel. Chroma planes are subsampled by 2 both horizontally. Each chroma and luma component has 16 allocated bits in little-endian configuration with 10 MSB of actual data.

```kotlin
byte                   byte
   <--- i ---> | <--- i + 1 --->
  +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
  |     UNUSED      |      Y/Cb/Cr                |
  +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
   0               5 6   7 0                    7
  bit
  
```
Use this format with `https://developer.android.com/reference/kotlin/android/media/Image`. This format corresponds to `https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YCBCR_P210:kotlin.Int`.

<br />

    Value: 60

### COLOR_QCOM_FormatYUV420SemiPlanar

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_QCOM_FormatYUV420SemiPlanar: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420Flexible:kotlin.Int`.*

    Value: 2141391872

### COLOR_TI_FormatYUV420PackedSemiPlanar

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val COLOR_TI_FormatYUV420PackedSemiPlanar: Int
```

**Deprecated:** *Use `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#COLOR_FormatYUV420Flexible:kotlin.Int`.*

    Value: 2130706688

### FEATURE_AdaptivePlayback

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_AdaptivePlayback: String
```

**video decoder only**: codec supports seamless resolution changes.

    Value: "adaptive-playback"

### FEATURE_DetachedSurface

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_DetachedSurface: String
```

**video decoder only**: codec supports detaching the output surface when in Surface mode.

If true, the codec can be configured in Surface mode without an actual surface (in detached surface mode).

    Value: "detached-surface"

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaCodec#CONFIGURE_FLAG_DETACHED_SURFACE:kotlin.Int`

### FEATURE_DynamicColorAspects

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_DynamicColorAspects: String
```

**video decoder only**: codec supports dynamically changing color aspects.

If true, the codec can propagate color aspect changes during decoding. This is only meaningful at session boundaries, e.g. upon processing Picture Parameter Sets prior to a new IDR. The color aspects may come from the bitstream, or may be provided using `https://developer.android.com/reference/kotlin/android/media/MediaCodec#setParameters(android.os.Bundle)` calls.

If the codec supports both 8-bit and 10-bit profiles, this feature means that the codec can dynamically switch between 8 and 10-bit profiles, but this is restricted to Surface mode only.

If the device supports HDR transfer functions, switching between SDR and HDR transfer is also supported. Together with the previous clause this means that switching between SDR and HDR sessions are supported in Surface mode, as SDR is typically encoded at 8-bit and HDR at 10-bit.

    Value: "dynamic-color-aspects"

### FEATURE_DynamicTimestamp

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_DynamicTimestamp: String
```

If true, the timestamp of each output buffer is derived from the timestamp of the input buffer that produced the output. If false, the timestamp of each output buffer is derived from the timestamp of the first input buffer.

    Value: "dynamic-timestamp"

### FEATURE_EncodingStatistics

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_EncodingStatistics: String
```

**video encoder only** : codec supports exporting encoding statistics. Encoders with this feature can provide the App clients with the encoding statistics information about the frame. The scope of encoding statistics is controlled by `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_VIDEO_ENCODING_STATISTICS_LEVEL:kotlin.String`.

    Value: "encoding-statistics"

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_VIDEO_ENCODING_STATISTICS_LEVEL:kotlin.String`

### FEATURE_FrameParsing

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_FrameParsing: String
```

**decoder only**If true, the codec supports partial (including multiple) access units per input buffer.

    Value: "frame-parsing"

### FEATURE_HdrEditing

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_HdrEditing: String
```

**video encoder only**: codec supports HDR editing.

HDR editing support means that the codec accepts 10-bit HDR input surface, and it is capable of generating any HDR metadata required from both YUV and RGB input when the metadata is not present. This feature is only meaningful when using an HDR capable profile (and 10-bit HDR input).

This feature implies that the codec is capable of encoding at least one HDR format, and that it supports RGBA_1010102 as well as P010, and optionally RGBA_FP16 input formats, and that the encoder can generate HDR metadata for all supported HDR input formats.

    Value: "hdr-editing"

### FEATURE_HlgEditing

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_HlgEditing: String
```

**video encoder only**: codec supports HLG editing.

HLG editing support means that the codec accepts 10-bit HDR input surface in both YUV and RGB pixel format. This feature is only meaningful when using a 10-bit (HLG) profile and 10-bit input.

This feature implies that the codec is capable of encoding 10-bit format, and that it supports RGBA_1010102 as well as P010, and optionally RGBA_FP16 input formats.

The difference between this feature and `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_HdrEditing:kotlin.String` is that HLG does not require the generation of HDR metadata and does not use an explicit HDR profile.

    Value: "hlg-editing"

### FEATURE_IntraRefresh

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_IntraRefresh: String
```

**video encoder only**: codec supports intra refresh.

    Value: "intra-refresh"

### FEATURE_LowLatency

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_LowLatency: String
```

**decoder only**: codec supports low latency decoding. If supported, clients can enable the low latency mode for the decoder. When the mode is enabled, the decoder doesn't hold input and output data more than required by the codec standards.

    Value: "low-latency"

### FEATURE_MultipleFrames

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_MultipleFrames: String
```

If true, the codec supports multiple access units (for decoding, or to output for encoders). If false, the codec only supports single access units. Producing multiple access units for output is an optional feature.

    Value: "multiple-frames"

### FEATURE_PartialFrame

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_PartialFrame: String
```

**video decoder only**: codec supports queuing partial frames.

    Value: "partial-frame"

### FEATURE_QpBounds

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_QpBounds: String
```

**video encoder only**: codec supports quantization parameter bounds.

    Value: "qp-bounds"

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_VIDEO_QP_MAX:kotlin.String`
- `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_VIDEO_QP_MIN:kotlin.String`

### FEATURE_Roi

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_Roi: String
```

**video encoder only**: codec supports region of interest encoding.

RoI encoding support means the codec accepts information that specifies the relative importance of different portions of each video frame. This allows the encoder to separate a video frame into critical and non-critical regions, and use more bits (better quality) to represent the critical regions and de-prioritize non-critical regions. In other words, the encoder chooses a negative qp bias for the critical portions and a zero or positive qp bias for the non-critical portions.

At a basic level, if the encoder decides to encode each frame with a uniform quantization value 'qpFrame' and a 'qpBias' is chosen/suggested for an LCU of the frame, then the actual qp of the LCU will be 'qpFrame + qpBias', although this value can be clamped basing on the min-max configured qp bounds for the current encoding session.

In a shot, if a group of LCUs pan out quickly they can be marked as non-critical thereby enabling the encoder to reserve fewer bits during their encoding. Contrarily, LCUs that remain in shot for a prolonged duration can be encoded at better quality in one frame thereby setting-up an excellent long-term reference for all future frames.

Note that by offsetting the quantization of each LCU, the overall bit allocation will differ from the originally estimated bit allocation, and the encoder will adjust the frame quantization for subsequent frames to meet the bitrate target. An effective selection of critical regions can set-up a golden reference and this can compensate for the bit burden that was introduced due to encoding RoI's at better quality. On the other hand, an ineffective choice of critical regions might increase the quality of certain parts of the image but this can hamper quality in subsequent frames.

<br />

    Value: "region-of-interest"

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaCodec#PARAMETER_KEY_QP_OFFSET_MAP:kotlin.String`
- `https://developer.android.com/reference/kotlin/android/media/MediaCodec#PARAMETER_KEY_QP_OFFSET_RECTS:kotlin.String`

### FEATURE_SecurePlayback

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_SecurePlayback: String
```

**video decoder only**: codec supports secure decryption.

    Value: "secure-playback"

### FEATURE_TunneledPlayback

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FEATURE_TunneledPlayback: String
```

**video or audio decoder only**: codec supports tunneled playback.

    Value: "tunneled-playback"

## Public constructors

### CodecCapabilities

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
CodecCapabilities()
```

## Public methods

### createFromProfileLevel

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static fun createFromProfileLevel(
    mime: String!, 
    profile: Int, 
    level: Int
): MediaCodecInfo.CodecCapabilities!
```

Retrieve the codec capabilities for a certain `mime type`, `profile` and `level`. If the type, or profile-level combination is not understood by the framework, it returns null.

In `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#M:kotlin.Int`, calling this method without calling any method of the `https://developer.android.com/reference/kotlin/android/media/MediaCodecList` class beforehand results in a `https://developer.android.com/reference/kotlin/java/lang/NullPointerException.html#`.

### getAudioCapabilities

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getAudioCapabilities(): MediaCodecInfo.AudioCapabilities?
```

Returns the audio capabilities or `null` if this is not an audio codec.

### getDefaultFormat

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getDefaultFormat(): MediaFormat!
```

Returns a MediaFormat object with default values for configurations that have defaults.

### getEncoderCapabilities

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getEncoderCapabilities(): MediaCodecInfo.EncoderCapabilities?
```

Returns the encoding capabilities or `null` if this is not an encoder.

### getMaxSupportedInstances

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getMaxSupportedInstances(): Int
```

Returns the max number of the supported concurrent codec instances.

This is a hint for an upper bound. Applications should not expect to successfully operate more instances than the returned value, but the actual number of concurrently operable instances may be less as it depends on the available resources at time of use.

### getMimeType

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getMimeType(): String!
```

Returns the mime type for which this codec-capability object was created.

### getVideoCapabilities

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getVideoCapabilities(): MediaCodecInfo.VideoCapabilities?
```

Returns the video capabilities or `null` if this is not a video codec.

### isFeatureRequired

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun isFeatureRequired(name: String!): Boolean
```

Query codec feature requirements.

These features are required to be used by the codec, and as such, they are always turned on.

### isFeatureSupported

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun isFeatureSupported(name: String!): Boolean
```

Query codec feature capabilities.

These features are supported to be used by the codec. These include optional features that can be turned on, as well as features that are always on.

### isFormatSupported

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun isFormatSupported(format: MediaFormat!): Boolean
```

Query whether codec supports a given `https://developer.android.com/reference/kotlin/android/media/MediaFormat`.

**Note:** On `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#LOLLIPOP:kotlin.Int`, `format` must not contain a [frame rate](https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_FRAME_RATE:kotlin.String). Use `format.setString(MediaFormat.KEY_FRAME_RATE, null)` to clear any existing frame rate setting in the format.

The following table summarizes the format keys considered by this method. This is especially important to consider when targeting a higher SDK version than the minimum SDK version, as this method will disregard some keys on devices below the target SDK version.

| OS Version(s) | `MediaFormat` keys considered for |||
| OS Version(s) | Audio Codecs | Video Codecs | Encoders |
| OS Version(s) |
|---|---|---|---|
| `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#LOLLIPOP:kotlin.Int` | `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_MIME:kotlin.String`\*, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_SAMPLE_RATE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_CHANNEL_COUNT:kotlin.String`, | `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_MIME:kotlin.String`\*, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_AdaptivePlayback:kotlin.String`D, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_SecurePlayback:kotlin.String`D, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_TunneledPlayback:kotlin.String`D, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_WIDTH:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_HEIGHT:kotlin.String`, **no** `KEY_FRAME_RATE` | as to the left, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_BITRATE_MODE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_PROFILE:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_AAC_PROFILE:kotlin.String`\~), `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_COMPLEXITY:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_FLAC_COMPRESSION_LEVEL:kotlin.String`\~) |
| `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#LOLLIPOP_MR1:kotlin.Int` | `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_MIME:kotlin.String`\*, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_SAMPLE_RATE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_CHANNEL_COUNT:kotlin.String`, | as above, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_FRAME_RATE:kotlin.String` | as to the left, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_BITRATE_MODE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_PROFILE:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_AAC_PROFILE:kotlin.String`\~), `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_COMPLEXITY:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_FLAC_COMPRESSION_LEVEL:kotlin.String`\~) |
| `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#M:kotlin.Int` | `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_MIME:kotlin.String`\*, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_SAMPLE_RATE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_CHANNEL_COUNT:kotlin.String`, | as above, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_FRAME_RATE:kotlin.String` | as to the left, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_BITRATE_MODE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_PROFILE:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_AAC_PROFILE:kotlin.String`\~), `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_COMPLEXITY:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_FLAC_COMPRESSION_LEVEL:kotlin.String`\~) |
| `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#N:kotlin.Int` | as above, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_PROFILE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_BIT_RATE:kotlin.String` | as above, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_PROFILE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_LEVEL:kotlin.String`+, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_BIT_RATE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_IntraRefresh:kotlin.String`E | as to the left, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_BITRATE_MODE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_PROFILE:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_AAC_PROFILE:kotlin.String`\~), `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_COMPLEXITY:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_FLAC_COMPRESSION_LEVEL:kotlin.String`\~) |
| `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#N_MR1:kotlin.Int` | as above, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_PROFILE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_BIT_RATE:kotlin.String` | as above, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_PROFILE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_LEVEL:kotlin.String`+, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_BIT_RATE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_IntraRefresh:kotlin.String`E | as to the left, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_BITRATE_MODE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_PROFILE:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_AAC_PROFILE:kotlin.String`\~), `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_COMPLEXITY:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_FLAC_COMPRESSION_LEVEL:kotlin.String`\~) |
| `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#O:kotlin.Int` | as above, plus `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_PartialFrame:kotlin.String`D || as to the left, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_BITRATE_MODE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_PROFILE:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_AAC_PROFILE:kotlin.String`\~), `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_COMPLEXITY:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_FLAC_COMPRESSION_LEVEL:kotlin.String`\~) |
| `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#O_MR1:kotlin.Int` | as above, plus `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_PartialFrame:kotlin.String`D || as to the left, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_BITRATE_MODE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_PROFILE:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_AAC_PROFILE:kotlin.String`\~), `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_COMPLEXITY:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_FLAC_COMPRESSION_LEVEL:kotlin.String`\~) |
| `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#P:kotlin.Int` | as above, plus `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_PartialFrame:kotlin.String`D || as to the left, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_BITRATE_MODE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_PROFILE:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_AAC_PROFILE:kotlin.String`\~), `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_COMPLEXITY:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_FLAC_COMPRESSION_LEVEL:kotlin.String`\~) |
| `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#Q:kotlin.Int` | as above, plus `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_FrameParsing:kotlin.String`D, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_MultipleFrames:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_DynamicTimestamp:kotlin.String` || as to the left, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_BITRATE_MODE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_PROFILE:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_AAC_PROFILE:kotlin.String`\~), `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_COMPLEXITY:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_FLAC_COMPRESSION_LEVEL:kotlin.String`\~) |
| `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#R:kotlin.Int` | as above, plus `https://developer.android.com/reference/kotlin/android/media/MediaCodecInfo.CodecCapabilities#FEATURE_LowLatency:kotlin.String`D || as to the left, plus `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_BITRATE_MODE:kotlin.String`, `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_PROFILE:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_AAC_PROFILE:kotlin.String`\~), `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_COMPLEXITY:kotlin.String` (and/or `https://developer.android.com/reference/kotlin/android/media/MediaFormat#KEY_FLAC_COMPRESSION_LEVEL:kotlin.String`\~) |
| **Notes:** \*: must be specified; otherwise, method returns `false`. +: method does not verify that the format parameters are supported by the specified level. D: decoders only E: encoders only \~: if both keys are provided values must match ||||

| Parameters ||
|---|---|
| `format` | [MediaFormat](https://developer.android.com/reference/kotlin/android/media/MediaFormat)!: media format with optional feature directives. |

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | whether the codec capabilities support the given format and feature requests. |

| Exceptions ||
|---|---|
| `java.lang.IllegalArgumentException` | if format is not a valid media format. |

## Properties

### colorFormats

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
var colorFormats: IntArray!
```

The color format for the media. This is one of the color constants defined in this class.

### profileLevels

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
var profileLevels: Array<MediaCodecInfo.CodecProfileLevel!>!
```