Android APIs
public static final class

MediaCodecInfo.CodecCapabilities

extends Object
java.lang.Object
   ↳ android.media.MediaCodecInfo.CodecCapabilities

Class Overview

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 MediaCodecInfo object with getCapabilitiesForType(), passing a MIME type.

Summary

Constants
int COLOR_Format12bitRGB444
int COLOR_Format16bitARGB1555
int COLOR_Format16bitARGB4444
int COLOR_Format16bitBGR565
int COLOR_Format16bitRGB565
int COLOR_Format18BitBGR666
int COLOR_Format18bitARGB1665
int COLOR_Format18bitRGB666
int COLOR_Format19bitARGB1666
int COLOR_Format24BitABGR6666
int COLOR_Format24BitARGB6666
int COLOR_Format24bitARGB1887
int COLOR_Format24bitBGR888
int COLOR_Format24bitRGB888
int COLOR_Format25bitARGB1888
int COLOR_Format32bitARGB8888
int COLOR_Format32bitBGRA8888
int COLOR_Format8bitRGB332
int COLOR_FormatCbYCrY
int COLOR_FormatCrYCbY
int COLOR_FormatL16
int COLOR_FormatL2
int COLOR_FormatL24
int COLOR_FormatL32
int COLOR_FormatL4
int COLOR_FormatL8
int COLOR_FormatMonochrome
int COLOR_FormatRawBayer10bit
int COLOR_FormatRawBayer8bit
int COLOR_FormatRawBayer8bitcompressed
int COLOR_FormatSurface
int COLOR_FormatYCbYCr
int COLOR_FormatYCrYCb
int COLOR_FormatYUV411PackedPlanar
int COLOR_FormatYUV411Planar
int COLOR_FormatYUV420PackedPlanar
int COLOR_FormatYUV420PackedSemiPlanar
int COLOR_FormatYUV420Planar
int COLOR_FormatYUV420SemiPlanar
int COLOR_FormatYUV422PackedPlanar
int COLOR_FormatYUV422PackedSemiPlanar
int COLOR_FormatYUV422Planar
int COLOR_FormatYUV422SemiPlanar
int COLOR_FormatYUV444Interleaved
int COLOR_QCOM_FormatYUV420SemiPlanar
int COLOR_TI_FormatYUV420PackedSemiPlanar
String FEATURE_AdaptivePlayback video decoder only: codec supports seamless resolution changes.
Fields
public int[] colorFormats Defined in the OpenMAX IL specs, color format values are drawn from OMX_COLOR_FORMATTYPE.
public CodecProfileLevel[] profileLevels
Public Constructors
MediaCodecInfo.CodecCapabilities()
Public Methods
final boolean isFeatureSupported(String name)
Query codec feature capabilities.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int COLOR_Format12bitRGB444

Added in API level 16

Constant Value: 3 (0x00000003)

public static final int COLOR_Format16bitARGB1555

Added in API level 16

Constant Value: 5 (0x00000005)

public static final int COLOR_Format16bitARGB4444

Added in API level 16

Constant Value: 4 (0x00000004)

public static final int COLOR_Format16bitBGR565

Added in API level 16

Constant Value: 7 (0x00000007)

public static final int COLOR_Format16bitRGB565

Added in API level 16

Constant Value: 6 (0x00000006)

public static final int COLOR_Format18BitBGR666

Added in API level 16

Constant Value: 41 (0x00000029)

public static final int COLOR_Format18bitARGB1665

Added in API level 16

Constant Value: 9 (0x00000009)

public static final int COLOR_Format18bitRGB666

Added in API level 16

Constant Value: 8 (0x00000008)

public static final int COLOR_Format19bitARGB1666

Added in API level 16

Constant Value: 10 (0x0000000a)

public static final int COLOR_Format24BitABGR6666

Added in API level 16

Constant Value: 43 (0x0000002b)

public static final int COLOR_Format24BitARGB6666

Added in API level 16

Constant Value: 42 (0x0000002a)

public static final int COLOR_Format24bitARGB1887

Added in API level 16

Constant Value: 13 (0x0000000d)

public static final int COLOR_Format24bitBGR888

Added in API level 16

Constant Value: 12 (0x0000000c)

public static final int COLOR_Format24bitRGB888

Added in API level 16

Constant Value: 11 (0x0000000b)

public static final int COLOR_Format25bitARGB1888

Added in API level 16

Constant Value: 14 (0x0000000e)

public static final int COLOR_Format32bitARGB8888

Added in API level 16

Constant Value: 16 (0x00000010)

public static final int COLOR_Format32bitBGRA8888

Added in API level 16

Constant Value: 15 (0x0000000f)

public static final int COLOR_Format8bitRGB332

Added in API level 16

Constant Value: 2 (0x00000002)

public static final int COLOR_FormatCbYCrY

Added in API level 16

Constant Value: 27 (0x0000001b)

public static final int COLOR_FormatCrYCbY

Added in API level 16

Constant Value: 28 (0x0000001c)

public static final int COLOR_FormatL16

Added in API level 16

Constant Value: 36 (0x00000024)

public static final int COLOR_FormatL2

Added in API level 16

Constant Value: 33 (0x00000021)

public static final int COLOR_FormatL24

Added in API level 16

Constant Value: 37 (0x00000025)

public static final int COLOR_FormatL32

Added in API level 16

Constant Value: 38 (0x00000026)

public static final int COLOR_FormatL4

Added in API level 16

Constant Value: 34 (0x00000022)

public static final int COLOR_FormatL8

Added in API level 16

Constant Value: 35 (0x00000023)

public static final int COLOR_FormatMonochrome

Added in API level 16

Constant Value: 1 (0x00000001)

public static final int COLOR_FormatRawBayer10bit

Added in API level 16

Constant Value: 31 (0x0000001f)

public static final int COLOR_FormatRawBayer8bit

Added in API level 16

Constant Value: 30 (0x0000001e)

public static final int COLOR_FormatRawBayer8bitcompressed

Added in API level 16

Constant Value: 32 (0x00000020)

public static final int COLOR_FormatSurface

Added in API level 18

Constant Value: 2130708361 (0x7f000789)

public static final int COLOR_FormatYCbYCr

Added in API level 16

Constant Value: 25 (0x00000019)

public static final int COLOR_FormatYCrYCb

Added in API level 16

Constant Value: 26 (0x0000001a)

public static final int COLOR_FormatYUV411PackedPlanar

Added in API level 16

Constant Value: 18 (0x00000012)

public static final int COLOR_FormatYUV411Planar

Added in API level 16

Constant Value: 17 (0x00000011)

public static final int COLOR_FormatYUV420PackedPlanar

Added in API level 16

Constant Value: 20 (0x00000014)

public static final int COLOR_FormatYUV420PackedSemiPlanar

Added in API level 16

Constant Value: 39 (0x00000027)

public static final int COLOR_FormatYUV420Planar

Added in API level 16

Constant Value: 19 (0x00000013)

public static final int COLOR_FormatYUV420SemiPlanar

Added in API level 16

Constant Value: 21 (0x00000015)

public static final int COLOR_FormatYUV422PackedPlanar

Added in API level 16

Constant Value: 23 (0x00000017)

public static final int COLOR_FormatYUV422PackedSemiPlanar

Added in API level 16

Constant Value: 40 (0x00000028)

public static final int COLOR_FormatYUV422Planar

Added in API level 16

Constant Value: 22 (0x00000016)

public static final int COLOR_FormatYUV422SemiPlanar

Added in API level 16

Constant Value: 24 (0x00000018)

public static final int COLOR_FormatYUV444Interleaved

Added in API level 16

Constant Value: 29 (0x0000001d)

public static final int COLOR_QCOM_FormatYUV420SemiPlanar

Added in API level 16

Constant Value: 2141391872 (0x7fa30c00)

public static final int COLOR_TI_FormatYUV420PackedSemiPlanar

Added in API level 16

Constant Value: 2130706688 (0x7f000100)

public static final String FEATURE_AdaptivePlayback

Added in API level 19

video decoder only: codec supports seamless resolution changes.

Constant Value: "adaptive-playback"

Fields

public int[] colorFormats

Added in API level 16

Defined in the OpenMAX IL specs, color format values are drawn from OMX_COLOR_FORMATTYPE.

public CodecProfileLevel[] profileLevels

Added in API level 16

Public Constructors

public MediaCodecInfo.CodecCapabilities ()

Added in API level 16

Public Methods

public final boolean isFeatureSupported (String name)

Added in API level 19

Query codec feature capabilities.