diff options
Diffstat (limited to 'include/media/hardware')
-rw-r--r-- | include/media/hardware/HDCPAPI.h | 15 | ||||
-rw-r--r-- | include/media/hardware/HardwareAPI.h | 10 |
2 files changed, 24 insertions, 1 deletions
diff --git a/include/media/hardware/HDCPAPI.h b/include/media/hardware/HDCPAPI.h index 147448e..b3f4222 100644 --- a/include/media/hardware/HDCPAPI.h +++ b/include/media/hardware/HDCPAPI.h @@ -19,6 +19,7 @@ #define HDCP_API_H_ #include <utils/Errors.h> +#include <system/window.h> namespace android { @@ -90,6 +91,20 @@ struct HDCPModule { return INVALID_OPERATION; } + // Encrypt data according to the HDCP spec. "size" bytes of data starting + // at location "offset" are available in "buffer" (buffer handle). "size" + // may not be a multiple of 128 bits (16 bytes). An equal number of + // encrypted bytes should be written to the buffer at "outData" (virtual + // address). This operation is to be synchronous, i.e. this call does not + // return until outData contains size bytes of encrypted data. + // streamCTR will be assigned by the caller (to 0 for the first PES stream, + // 1 for the second and so on) + // inputCTR _will_be_maintained_by_the_callee_ for each PES stream. + virtual status_t encryptNative( + buffer_handle_t buffer, size_t offset, size_t size, + uint32_t streamCTR, uint64_t *outInputCTR, void *outData) { + return INVALID_OPERATION; + } // DECRYPTION only: // Decrypt data according to the HDCP spec. // "size" bytes of encrypted data are available at "inData" diff --git a/include/media/hardware/HardwareAPI.h b/include/media/hardware/HardwareAPI.h index cc43bf6..a6a849d 100644 --- a/include/media/hardware/HardwareAPI.h +++ b/include/media/hardware/HardwareAPI.h @@ -18,7 +18,8 @@ #define HARDWARE_API_H_ -#include <OMXPluginBase.h> +#include <media/hardware/OMXPluginBase.h> +#include <media/hardware/MetadataBufferType.h> #include <system/window.h> #include <utils/RefBase.h> @@ -73,6 +74,13 @@ struct StoreMetaDataInBuffersParams { OMX_BOOL bStoreMetaData; }; +// Meta data buffer layout used to transport output frames to the decoder for +// dynamic buffer handling. +struct VideoDecoderOutputMetaData { + MetadataBufferType eType; + buffer_handle_t pHandle; +}; + // A pointer to this struct is passed to OMX_SetParameter when the extension // index for the 'OMX.google.android.index.useAndroidNativeBuffer' extension is // given. This call will only be performed if a prior call was made with the |