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
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
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_FormatYUV420Flexible
Constant Value:
2135033992
(0x7f420888)
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"
public
static
final
String
FEATURE_SecurePlayback
video decoder only: codec supports secure decryption.
Constant Value:
"secure-playback"
public
static
final
String
FEATURE_TunneledPlayback
video or audio decoder only: codec supports tunneled playback.
Constant Value:
"tunneled-playback"
Fields
public
int[]
colorFormats
Defined in the OpenMAX IL specs, color format values are drawn from
OMX_COLOR_FORMATTYPE.
Public Constructors
public
MediaCodecInfo.CodecCapabilities
()
Public Methods
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.
Returns the audio capabilities or null
if this is not an audio codec.
public
MediaFormat
getDefaultFormat
()
Returns a MediaFormat object with default values for configurations that have
defaults.
Returns the encoding capabilities or null
if this is not an encoder.
public
String
getMimeType
()
Returns the mime type for which this codec-capability object was created.
Returns the video capabilities or null
if this is not a video codec.
public
final
boolean
isFeatureRequired
(String name)
Query codec feature requirements.
These features are required to be used by the codec, and as such,
they are always turned on.
public
final
boolean
isFeatureSupported
(String name)
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.
public
final
boolean
isFormatSupported
(MediaFormat format)
Parameters
format
| media format with optional feature directives. |
Returns
- whether the codec capabilities support the given format
and feature requests.