OSDN Git Service

MediaFormat.java: Add KEY_MAX_WIDTH and KEY_MAX_HEIGHT
authorLajos Molnar <lajos@google.com>
Thu, 9 May 2013 19:20:34 +0000 (12:20 -0700)
committerLajos Molnar <lajos@google.com>
Fri, 6 Sep 2013 18:13:33 +0000 (11:13 -0700)
commit9a4575c31411524f5037f78666cdb648a07a5682
tree2c232990ede5e0540ce6c35c3db57fe85e70f771
parentf96b104a7f6e4c2a8883b6d4de69e6de24aa8edc
MediaFormat.java: Add KEY_MAX_WIDTH and KEY_MAX_HEIGHT

KEY_MAX_WIDTH and KEY_MAX_HEIGHT are optional video decoder
format keys.  Specify both to request seamless resolution-
change support from video decoders that support this feature.
You can check this via CodecCapabilities.isFeatureSupported.

The codecs use the MAX_WIDTH/HEIGHT values as hints for the
range of resolutions that needs to be supported.  Note,
however, that some codecs may require more memory just by
_preparing_ for larger maximum resolutions, whether or not
that resolution is actually used.

Change-Id: I00fe986ef894fec4bb39bceed081da0e88725d59
Signed-off-by: Lajos Molnar <lajos@google.com>
Related-to-bug: 7093648
api/current.txt
media/java/android/media/MediaFormat.java