summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Tinker <jtinker@google.com>2014-09-09 23:55:59 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-09-09 23:56:00 +0000
commit1173137af3fb93c7708fb7b1109c5b37db72d783 (patch)
treef06c966dd897680e2555d4b55cfa087dad6b9d05
parent5ef471c5f986a52c681a29856c38f72127cdf8ac (diff)
parentc3959f5bc22d1605e51c19766fc9a6b2db169ad1 (diff)
downloadframeworks_native-1173137af3fb93c7708fb7b1109c5b37db72d783.zip
frameworks_native-1173137af3fb93c7708fb7b1109c5b37db72d783.tar.gz
frameworks_native-1173137af3fb93c7708fb7b1109c5b37db72d783.tar.bz2
Merge "Add support for max res decode" into lmp-dev
-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 59ae795..c800825 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.