CodecCapabilities
class CodecCapabilities
| kotlin.Any | |
| ↳ | 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 MediaCodecInfo object with getCapabilitiesForType(), passing a MIME type.
Summary
| Constants | |
|---|---|
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int |
16 bits per pixel RGB color format, with 5-bit red & blue and 6-bit green component. |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int |
24 bits per pixel RGB color format, with 8-bit red, green & blue components. |
| static Int | |
| static Int | |
| static Int |
32 bits per pixel RGBA color format, with 10-bit red, green, blue, and 2-bit alpha components. |
| static Int |
32 bits per pixel RGBA color format, with 8-bit red, green, blue, and alpha components. |
| static Int | |
| static Int | |
| static Int |
64 bits per pixel RGBA color format, with 16-bit signed floating point red, green, blue, and alpha components. |
| static Int | |
| static Int | |
| static Int | |
| static Int |
16 bits per pixel, little-endian Y color format. |
| static Int | |
| static Int | |
| static Int |
32 bits per pixel, little-endian Y color format. |
| static Int | |
| static Int |
8 bits per pixel Y color format. |
| static Int | |
| static Int |
Flexible 32 bits per pixel RGBA color format with 8-bit red, green, blue, and alpha components. |
| static Int |
Flexible 24 bits per pixel RGB color format with 8-bit red, green and blue components. |
| static Int |
SMIA 10-bit Bayer format. |
| static Int |
SMIA 8-bit Bayer format. |
| static Int |
SMIA 8-bit compressed Bayer format. |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int |
Flexible 12 bits per pixel, subsampled YUV color format with 8-bit chroma and luma components. |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int |
Flexible 16 bits per pixel, subsampled YUV color format with 8-bit chroma and luma components. |
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| static Int |
Flexible 24 bits per pixel YUV color format with 8-bit chroma and luma components. |
| static Int | |
| static Int |
P010 is 10-bit-per component 4:2:0 YCbCr semiplanar format. |
| static Int |
P210 is 10-bit-per component 4:2:2 YCbCr semiplanar format. |
| static Int | |
| static Int | |
| static String |
video decoder only: codec supports seamless resolution changes. |
| static String |
video decoder only: codec supports detaching the output surface when in Surface mode. |
| static String |
video decoder only: codec supports dynamically changing color aspects. |
| static String |
If true, the timestamp of each output buffer is derived from the timestamp of the input buffer that produced the output. |
| static String |
video encoder only: codec supports exporting encoding statistics. |
| static String |
decoder onlyIf true, the codec supports partial (including multiple) access units per input buffer. |
| static String |
video encoder only: codec supports HDR editing. |
| static String |
video encoder only: codec supports HLG editing. |
| static String |
video encoder only: codec supports intra refresh. |
| static String |
decoder only: codec supports low latency decoding. |
| static String |
If true, the codec supports multiple access units (for decoding, or to output for encoders). |
| static String |
video decoder only: codec supports queuing partial frames. |
| static String |
video encoder only: codec supports quantization parameter bounds. |
| static String |
video encoder only: codec supports region of interest encoding. |
| static String |
video decoder only: codec supports secure decryption. |
| static String |
video or audio decoder only: codec supports tunneled playback. |
| Public constructors | |
|---|---|
| Public methods | |
|---|---|
| static MediaCodecInfo.CodecCapabilities! |
createFromProfileLevel(mime: String!, profile: Int, level: Int)Retrieve the codec capabilities for a certain |
| MediaCodecInfo.AudioCapabilities? |
Returns the audio capabilities or |
| MediaFormat! |
Returns a MediaFormat object with default values for configurations that have defaults. |
| MediaCodecInfo.EncoderCapabilities? |
Returns the encoding capabilities or |
| Int |
Returns the max number of the supported concurrent codec instances. |
| String! |
Returns the mime type for which this codec-capability object was created. |
| MediaCodecInfo.VideoCapabilities? |
Returns the video capabilities or |
| Boolean |
isFeatureRequired(name: String!)Query codec feature requirements. |
| Boolean |
isFeatureSupported(name: String!)Query codec feature capabilities. |
| Boolean |
isFormatSupported(format: MediaFormat!)Query whether codec supports a given |
| Properties | |
|---|---|
| IntArray! |
The color format for the media. |
| Array<MediaCodecInfo.CodecProfileLevel!>! | |
Constants
COLOR_Format12bitRGB444
static valCOLOR_Format12bitRGB444: Int
Deprecated: Use COLOR_Format24bitBGR888.
Value: 3COLOR_Format16bitARGB1555
static valCOLOR_Format16bitARGB1555: Int
Deprecated: Use COLOR_Format32bitABGR8888.
Value: 5COLOR_Format16bitARGB4444
static valCOLOR_Format16bitARGB4444: Int
Deprecated: Use COLOR_Format32bitABGR8888.
Value: 4COLOR_Format16bitBGR565
static valCOLOR_Format16bitBGR565: Int
Deprecated: Use COLOR_Format16bitRGB565.
Value: 7COLOR_Format16bitRGB565
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.
byte byte <--------- i --------> | <------ i + 1 ------> +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | BLUE | GREEN | RED | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ 0 4 5 7 0 2 3 7 bit
android.graphics.PixelFormat#RGB_565 and android.graphics.ImageFormat#RGB_565.
Value: 6COLOR_Format18BitBGR666
static valCOLOR_Format18BitBGR666: Int
Deprecated: Use COLOR_Format24bitBGR888.
Value: 41COLOR_Format18bitARGB1665
static valCOLOR_Format18bitARGB1665: Int
Deprecated: Use COLOR_Format32bitABGR8888.
Value: 9COLOR_Format18bitRGB666
static valCOLOR_Format18bitRGB666: Int
Deprecated: Use COLOR_Format24bitBGR888.
Value: 8COLOR_Format19bitARGB1666
static valCOLOR_Format19bitARGB1666: Int
Deprecated: Use COLOR_Format32bitABGR8888.
Value: 10COLOR_Format24BitABGR6666
static valCOLOR_Format24BitABGR6666: Int
Deprecated: Use COLOR_Format32bitABGR8888.
Value: 43COLOR_Format24BitARGB6666
static valCOLOR_Format24BitARGB6666: Int
Deprecated: Use COLOR_Format32bitABGR8888.
Value: 42COLOR_Format24bitARGB1887
static valCOLOR_Format24bitARGB1887: Int
Deprecated: Use COLOR_Format32bitABGR8888.
Value: 13COLOR_Format24bitBGR888
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.
byte byte byte <------ i -----> | <---- i+1 ----> | <---- i+2 -----> +-----------------+-----------------+-----------------+ | RED | GREEN | BLUE | +-----------------+-----------------+-----------------+
android.graphics.PixelFormat#RGB_888, and can also be represented as a flexible format by COLOR_FormatRGBFlexible.
Value: 12COLOR_Format24bitRGB888
static valCOLOR_Format24bitRGB888: Int
Deprecated: Use COLOR_Format24bitBGR888 or COLOR_FormatRGBFlexible.
Value: 11COLOR_Format25bitARGB1888
static valCOLOR_Format25bitARGB1888: Int
Deprecated: Use COLOR_Format32bitABGR8888.
Value: 14COLOR_Format32bitABGR2101010
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.
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
android.graphics.PixelFormat#RGBA_1010102.
Value: 2130750114COLOR_Format32bitABGR8888
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.
byte byte byte byte <------ i -----> | <---- i+1 ----> | <---- i+2 ----> | <---- i+3 -----> +-----------------+-----------------+-----------------+-----------------+ | RED | GREEN | BLUE | ALPHA | +-----------------+-----------------+-----------------+-----------------+
android.graphics.PixelFormat#RGBA_8888.
Value: 2130747392COLOR_Format32bitARGB8888
static valCOLOR_Format32bitARGB8888: Int
Deprecated: Use COLOR_Format32bitABGR8888 Or COLOR_FormatRGBAFlexible.
Value: 16COLOR_Format32bitBGRA8888
static valCOLOR_Format32bitBGRA8888: Int
Deprecated: Use COLOR_Format32bitABGR8888 Or COLOR_FormatRGBAFlexible.
Value: 15COLOR_Format64bitABGRFloat
static val COLOR_Format64bitABGRFloat: Int
64 bits per pixel RGBA color format, with 16-bit signed floating point red, green, blue, and alpha components.
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
android.graphics.PixelFormat#RGBA_F16.
Value: 2130710294COLOR_Format8bitRGB332
static valCOLOR_Format8bitRGB332: Int
Deprecated: Use COLOR_Format24bitBGR888.
Value: 2COLOR_FormatCbYCrY
static valCOLOR_FormatCbYCrY: Int
Deprecated: Use COLOR_FormatYUV422Flexible.
Value: 27COLOR_FormatCrYCbY
static valCOLOR_FormatCrYCbY: Int
Deprecated: Use COLOR_FormatYUV422Flexible.
Value: 28COLOR_FormatL16
static val COLOR_FormatL16: Int
16 bits per pixel, little-endian Y color format.
byte byte <--------- i --------> | <------ i + 1 ------> +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | Y | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ 0 7 0 7 bit
Value: 36COLOR_FormatL32
static valCOLOR_FormatL32: Int
Deprecated: Use COLOR_FormatL16.
32 bits per pixel, little-endian Y color format.
byte byte byte byte <------ i -----> | <---- i+1 ----> | <---- i+2 ----> | <---- i+3 -----> +-----------------+-----------------+-----------------+-----------------+ | Y | +-----------------+-----------------+-----------------+-----------------+ 0 7 0 7 0 7 0 7 bit
Value: 38COLOR_FormatL8
static val COLOR_FormatL8: Int
8 bits per pixel Y color format.
Each byte contains a single pixel. This format corresponds to android.graphics.PixelFormat#L_8.
Value: 35COLOR_FormatMonochrome
static valCOLOR_FormatMonochrome: Int
Deprecated: Use COLOR_Format24bitBGR888.
Value: 1COLOR_FormatRGBAFlexible
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 Image. This format corresponds to android.graphics.ImageFormat#FLEX_RGBA_8888, and can represent COLOR_Format32bitBGRA8888, COLOR_Format32bitABGR8888 and COLOR_Format32bitARGB8888 formats.
Value: 2134288520See Also
COLOR_FormatRGBFlexible
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 Image. This format corresponds to android.graphics.ImageFormat#FLEX_RGB_888, and can represent COLOR_Format24bitBGR888 and COLOR_Format24bitRGB888 formats.
Value: 2134292616See Also
COLOR_FormatRawBayer10bit
static val COLOR_FormatRawBayer10bit: Int
SMIA 10-bit Bayer format.
Value: 31COLOR_FormatRawBayer8bit
static val COLOR_FormatRawBayer8bit: Int
SMIA 8-bit Bayer format. Each byte represents the top 8-bits of a 10-bit signal.
Value: 30COLOR_FormatRawBayer8bitcompressed
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: 32COLOR_FormatYCbYCr
static valCOLOR_FormatYCbYCr: Int
Deprecated: Use COLOR_FormatYUV422Flexible.
Value: 25COLOR_FormatYCrYCb
static valCOLOR_FormatYCrYCb: Int
Deprecated: Use COLOR_FormatYUV422Flexible.
Value: 26COLOR_FormatYUV411PackedPlanar
static valCOLOR_FormatYUV411PackedPlanar: Int
Deprecated: Use COLOR_FormatYUV420Flexible.
Value: 18COLOR_FormatYUV411Planar
static valCOLOR_FormatYUV411Planar: Int
Deprecated: Use COLOR_FormatYUV420Flexible.
Value: 17COLOR_FormatYUV420Flexible
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