summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2013-09-04 15:14:33 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-04 15:14:33 -0700
commit83da1fcb120a2d09642be74cf9091ab321a60c8f (patch)
tree65347c418aed813190c0e265838933ff2e055c38 /include
parent4167457a22f311fea2bd94c0916607eed0541b0b (diff)
parentc74630bcbdc6f9a88a019b7ced6fbe7a58675ea2 (diff)
downloadframeworks_av-83da1fcb120a2d09642be74cf9091ab321a60c8f.zip
frameworks_av-83da1fcb120a2d09642be74cf9091ab321a60c8f.tar.gz
frameworks_av-83da1fcb120a2d09642be74cf9091ab321a60c8f.tar.bz2
am c74630bc: am a1991255: Merge "wifi-display: do not use HDCP\'s encryptNative method if its unsupported" into klp-dev
* commit 'c74630bcbdc6f9a88a019b7ced6fbe7a58675ea2': wifi-display: do not use HDCP's encryptNative method if its unsupported
Diffstat (limited to 'include')
-rw-r--r--include/media/IHDCP.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/media/IHDCP.h b/include/media/IHDCP.h
index 54fefa3..352561e 100644
--- a/include/media/IHDCP.h
+++ b/include/media/IHDCP.h
@@ -46,6 +46,17 @@ struct IHDCP : public IInterface {
// Request to shutdown the active HDCP session.
virtual status_t shutdownAsync() = 0;
+ // Returns the capability bitmask of this HDCP session.
+ // Possible return values (please refer to HDCAPAPI.h):
+ // HDCP_CAPS_ENCRYPT: mandatory, meaning the HDCP module can encrypt
+ // from an input byte-array buffer to an output byte-array buffer
+ // HDCP_CAPS_ENCRYPT_NATIVE: the HDCP module supports encryption from
+ // a native buffer to an output byte-array buffer. The format of the
+ // input native buffer is specific to vendor's encoder implementation.
+ // It is the same format as that used by the encoder when
+ // "storeMetaDataInBuffers" extension is enabled on its output port.
+ virtual uint32_t getCaps() = 0;
+
// ENCRYPTION only:
// Encrypt data according to the HDCP spec. "size" bytes of data are
// available at "inData" (virtual address), "size" may not be a multiple