summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Tinker <jtinker@google.com>2014-09-10 00:51:52 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-09-10 00:51:52 +0000
commitf7a8f90ad4845752f5eb57ecc62a2bfd86313667 (patch)
tree27a35fde970fa2f3848cb936f101c28489bcb7e7 /include
parent625ae1d0023f21a3a353c41322d47dd2e0af55c0 (diff)
parent1173137af3fb93c7708fb7b1109c5b37db72d783 (diff)
downloadframeworks_native-f7a8f90ad4845752f5eb57ecc62a2bfd86313667.tar.gz
frameworks_native-f7a8f90ad4845752f5eb57ecc62a2bfd86313667.tar.bz2
frameworks_native-f7a8f90ad4845752f5eb57ecc62a2bfd86313667.zip
am 1173137a: Merge "Add support for max res decode" into lmp-dev
* commit '1173137af3fb93c7708fb7b1109c5b37db72d783': Add support for max res decode
Diffstat (limited to 'include')
-rw-r--r--include/media/hardware/CryptoAPI.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/media/hardware/CryptoAPI.h b/include/media/hardware/CryptoAPI.h
index 59ae79559..c800825a3 100644
--- a/include/media/hardware/CryptoAPI.h
+++ b/include/media/hardware/CryptoAPI.h
@@ -64,6 +64,12 @@ struct CryptoPlugin {
// media data of the given mime type.
virtual bool requiresSecureDecoderComponent(const char *mime) const = 0;
+ // To implement resolution constraints, the crypto plugin needs to know
+ // the resolution of the video being decrypted. The media player should
+ // call this method when the resolution is determined and any time it
+ // is subsequently changed.
+ virtual void notifyResolution(uint32_t width, uint32_t height) {}
+
// If the error returned falls into the range
// ERROR_DRM_VENDOR_MIN..ERROR_DRM_VENDOR_MAX, errorDetailMsg should be
// filled in with an appropriate string.