From 4df82703a7274876c03e65f7baf643f1ed55d29c Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Wed, 5 Dec 2012 11:12:26 -0800 Subject: Make it clear that non-optional MediaFormat keys are required Also mark KEY_CHANNEL_MASK optional. Change-Id: I569087f564dc60a89b15a3440a9b1c538927f610 related-to-bug: 7623602 --- media/java/android/media/MediaFormat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'media/java') diff --git a/media/java/android/media/MediaFormat.java b/media/java/android/media/MediaFormat.java index 169502b..a2eb8d9 100644 --- a/media/java/android/media/MediaFormat.java +++ b/media/java/android/media/MediaFormat.java @@ -26,7 +26,7 @@ import java.util.Map; * * The format of the media data is specified as string/value pairs. * - * Keys common to all formats: + * Keys common to all formats, all keys not marked optional are mandatory: * * * @@ -52,7 +52,7 @@ import java.util.Map; * * * - * + * * *
NameValue TypeDescription
{@link #KEY_SAMPLE_RATE}Integer
{@link #KEY_IS_ADTS}Integeroptional, if decoding AAC audio content, setting this key to 1 indicates that each audio frame is prefixed by the ADTS header.
{@link #KEY_AAC_PROFILE}Integerencoder-only, optional, if content is AAC audio, specifies the desired profile.
{@link #KEY_CHANNEL_MASK}IntegerA mask of audio channel assignments
{@link #KEY_CHANNEL_MASK}Integeroptional, a mask of audio channel assignments
{@link #KEY_FLAC_COMPRESSION_LEVEL}Integerencoder-only, optional, if content is FLAC audio, specifies the desired compression level.
* -- cgit v1.1