summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-06-25 13:53:43 -0700
committerAndreas Huber <andih@google.com>2012-06-25 14:38:16 -0700
commit68b1a6eed8479e16456f018663b1bcfaecc2a3f4 (patch)
treecbae55d83b9a35649cec6ab70f0546bc00acdd4c /media/java
parentdbbfa702a09f6d2d36dee1b552442d04a4673f89 (diff)
downloadframeworks_base-68b1a6eed8479e16456f018663b1bcfaecc2a3f4.zip
frameworks_base-68b1a6eed8479e16456f018663b1bcfaecc2a3f4.tar.gz
frameworks_base-68b1a6eed8479e16456f018663b1bcfaecc2a3f4.tar.bz2
Document some of the more common mimetypes to be used when instantiating
MediaCodec components. Change-Id: I810507d1d76a28666eb6fb63e3b597d38e5f1389
Diffstat (limited to 'media/java')
-rw-r--r--media/java/android/media/MediaCodec.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/media/java/android/media/MediaCodec.java b/media/java/android/media/MediaCodec.java
index 2debd57..fcb676d 100644
--- a/media/java/android/media/MediaCodec.java
+++ b/media/java/android/media/MediaCodec.java
@@ -159,6 +159,22 @@ final public class MediaCodec {
/**
* Instantiate a decoder supporting input data of the given mime type.
+ *
+ * The following is a partial list of defined mime types and their semantics:
+ * <ul>
+ * <li>"video/x-vnd.on2.vp8" - VPX video (i.e. video in .webm)
+ * <li>"video/avc" - H.264/AVC video
+ * <li>"video/mp4v-es" - MPEG4 video
+ * <li>"video/3gpp" - H.263 video
+ * <li>"audio/3gpp" - AMR narrowband audio
+ * <li>"audio/amr-wb" - AMR wideband audio
+ * <li>"audio/mpeg" - MPEG1/2 audio layer III
+ * <li>"audio/mp4a-latm" - AAC audio
+ * <li>"audio/vorbis" - vorbis audio
+ * <li>"audio/g711-alaw" - G.711 alaw audio
+ * <li>"audio/g711-mlaw" - G.711 ulaw audio
+ * </ul>
+ *
* @param type The mime type of the input data.
*/
public static MediaCodec createDecoderByType(String type) {