summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorShalaj Jain <shalajj@codeaurora.org>2015-07-09 14:27:01 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:26:51 -0600
commit131591fd87f7a6fd5ea39a092a912bfca3a07589 (patch)
treefc8158a0324476dfdec20bd6173a3d0bc1b3795b /media
parent6229b9435da4d1a01ceb86bd04854139a7b3796e (diff)
downloadframeworks_base-131591fd87f7a6fd5ea39a092a912bfca3a07589.zip
frameworks_base-131591fd87f7a6fd5ea39a092a912bfca3a07589.tar.gz
frameworks_base-131591fd87f7a6fd5ea39a092a912bfca3a07589.tar.bz2
MediaCodecInfo: Add new method to return CapabilitiesInfoFormat
Return the CapabilitiesInfoFormat to give caller access to custom capabilities like VT. Change-Id: I1a78314a2c9128eea7296644f71928a14ce8030f
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/MediaCodecInfo.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/media/java/android/media/MediaCodecInfo.java b/media/java/android/media/MediaCodecInfo.java
index 4101935..957ba16 100644
--- a/media/java/android/media/MediaCodecInfo.java
+++ b/media/java/android/media/MediaCodecInfo.java
@@ -589,6 +589,13 @@ public final class MediaCodecInfo {
return mDefaultFormat;
}
+ /* Return the capabilities info, so the app can query custom settings
+ * like for VT. */
+ /** @hide */
+ public MediaFormat getCapabilitiesInfoFormat() {
+ return mCapabilitiesInfo;
+ }
+
/**
* Returns the mime type for which this codec-capability object was created.
*/