Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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

Constant Value: 3 (0x00000003)

public static final int COLOR_Format16bitARGB1555

Constant Value: 5 (0x00000005)

public static final int COLOR_Format16bitARGB4444

Constant Value: 4 (0x00000004)

public static final int COLOR_Format16bitBGR565

Constant Value: 7 (0x00000007)

public static final int COLOR_Format16bitRGB565

Constant Value: 6 (0x00000006)

public static final int COLOR_Format18BitBGR666

Constant Value: 41 (0x00000029)

public static final int COLOR_Format18bitARGB1665

Constant Value: 9 (0x00000009)

public static final int COLOR_Format18bitRGB666

Constant Value: 8 (0x00000008)

public static final int COLOR_Format19bitARGB1666

Constant Value: 10 (0x0000000a)

public static final int COLOR_Format24BitABGR6666

Constant Value: 43 (0x0000002b)

public static final int COLOR_Format24BitARGB6666

Constant Value: 42 (0x0000002a)

public static final int COLOR_Format24bitARGB1887

Constant Value: 13 (0x0000000d)

public static final int COLOR_Format24bitBGR888

Constant Value: 12 (0x0000000c)

public static final int COLOR_Format24bitRGB888

Constant Value: 11 (0x0000000b)

public static final int COLOR_Format25bitARGB1888

Constant Value: 14 (0x0000000e)

public static final int COLOR_Format32bitARGB8888

Constant Value: 16 (0x00000010)

public static final int COLOR_Format32bitBGRA8888

Constant Value: 15 (0x0000000f)

public static final int COLOR_Format8bitRGB332

Constant Value: 2 (0x00000002)

public static final int COLOR_FormatCbYCrY

Constant Value: 27 (0x0000001b)

public static final int COLOR_FormatCrYCbY

Constant Value: 28 (0x0000001c)

public static final int COLOR_FormatL16

Constant Value: 36 (0x00000024)

public static final int COLOR_FormatL2

Constant Value: 33 (0x00000021)

public static final int COLOR_FormatL24

Constant Value: 37 (0x00000025)

public static final int COLOR_FormatL32

Constant Value: 38 (0x00000026)

public static final int COLOR_FormatL4

Constant Value: 34 (0x00000022)

public static final int COLOR_FormatL8

Constant Value: 35 (0x00000023)

public static final int COLOR_FormatMonochrome

Constant Value: 1 (0x00000001)

public static final int COLOR_FormatRawBayer10bit

Constant Value: 31 (0x0000001f)

public static final int COLOR_FormatRawBayer8bit

Constant Value: 30 (0x0000001e)

public static final int COLOR_FormatRawBayer8bitcompressed

Constant Value: 32 (0x00000020)

public static final int COLOR_FormatSurface

Constant Value: 2130708361 (0x7f000789)

public static final int COLOR_FormatYCbYCr

Constant Value: 25 (0x00000019)

public static final int COLOR_FormatYCrYCb

Constant Value: 26 (0x0000001a)

public static final int COLOR_FormatYUV411PackedPlanar

Constant Value: 18 (0x00000012)

public static final int COLOR_FormatYUV411Planar

Constant Value: 17 (0x00000011)

public static final int COLOR_FormatYUV420PackedPlanar

Constant Value: 20 (0x00000014)

public static final int COLOR_FormatYUV420PackedSemiPlanar

Constant Value: 39 (0x00000027)

public static final int COLOR_FormatYUV420Planar

Constant Value: 19 (0x00000013)

public static final int COLOR_FormatYUV420SemiPlanar

Constant Value: 21 (0x00000015)

public static final int COLOR_FormatYUV422PackedPlanar

Constant Value: 23 (0x00000017)

public static final int COLOR_FormatYUV422PackedSemiPlanar

Constant Value: 40 (0x00000028)

public static final int COLOR_FormatYUV422Planar

Constant Value: 22 (0x00000016)

public static final int COLOR_FormatYUV422SemiPlanar

Constant Value: 24 (0x00000018)

public static final int COLOR_FormatYUV444Interleaved

Constant Value: 29 (0x0000001d)

public static final int COLOR_QCOM_FormatYUV420SemiPlanar

Constant Value: 2141391872 (0x7fa30c00)

public static final int COLOR_TI_FormatYUV420PackedSemiPlanar

Constant Value: 2130706688 (0x7f000100)

public static final String FEATURE_AdaptivePlayback

video decoder only : codec supports seamless resolution changes.

Constant Value: "adaptive-playback"

Fields

public int[] colorFormats

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

public CodecProfileLevel[] profileLevels

Public Constructors

public MediaCodecInfo.CodecCapabilities ()

Public Methods

public final boolean isFeatureSupported ( String name)

Query codec feature capabilities.