diff options
author | Andreas Huber <andih@google.com> | 2013-04-19 15:34:15 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-04-19 15:34:15 +0000 |
commit | 6ead6ccac9727993559c9f09f1e8da3c69ee3313 (patch) | |
tree | db593398ef666c2872c5df056f1c88809022e9cf /media | |
parent | 4e0eb22fdf56b8f3fd1bff09c4064b35b80751c1 (diff) | |
parent | ba9269a5855b6d9d581af09077caafbd45180b41 (diff) | |
download | frameworks_base-6ead6ccac9727993559c9f09f1e8da3c69ee3313.zip frameworks_base-6ead6ccac9727993559c9f09f1e8da3c69ee3313.tar.gz frameworks_base-6ead6ccac9727993559c9f09f1e8da3c69ee3313.tar.bz2 |
Merge "Add some documentation to MediaCodecInfo" into jb-mr2-dev
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/MediaCodecInfo.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/media/java/android/media/MediaCodecInfo.java b/media/java/android/media/MediaCodecInfo.java index 1501c79..df87db3 100644 --- a/media/java/android/media/MediaCodecInfo.java +++ b/media/java/android/media/MediaCodecInfo.java @@ -44,7 +44,16 @@ public final class MediaCodecInfo { return MediaCodecList.getSupportedTypes(mIndex); } + /** + * Encapsulates the capabilities of a given codec component, + * i.e. what profile/level combinations it supports and what colorspaces + * it is capable of providing the decoded data in. + */ public static final class CodecCapabilities { + // Enumerates supported profile/level combinations as defined + // by the type of encoded data. These combinations impose restrictions + // on video resolution, bitrate... and limit the available encoder tools + // such as B-frame support, arithmetic coding... public CodecProfileLevel[] profileLevels; // from OMX_COLOR_FORMATTYPE @@ -219,6 +228,11 @@ public final class MediaCodecInfo { public int level; }; + /** + * Enumerates the capabilities of the codec component. Since a single + * component can support data of a variety of types, the type has to be + * specified to yield a meaningful result. + */ public final CodecCapabilities getCapabilitiesForType( String type) { return MediaCodecList.getCodecCapabilities(mIndex, type); |