diff options
Diffstat (limited to 'include/media/hardware/CryptoAPI.h')
-rw-r--r-- | include/media/hardware/CryptoAPI.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/media/hardware/CryptoAPI.h b/include/media/hardware/CryptoAPI.h index 44a0040..c800825 100644 --- a/include/media/hardware/CryptoAPI.h +++ b/include/media/hardware/CryptoAPI.h @@ -51,8 +51,8 @@ struct CryptoPlugin { }; struct SubSample { - size_t mNumBytesOfClearData; - size_t mNumBytesOfEncryptedData; + uint32_t mNumBytesOfClearData; + uint32_t mNumBytesOfEncryptedData; }; CryptoPlugin() {} @@ -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. |