From 7616178271e95f009452a21ea45e7225997dc27a Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Mon, 8 Aug 2011 15:28:21 -0700 Subject: Notify the OMX component that it's going to be used in "secure" mode. Change-Id: Id87c4b295eb38f7d24045918e73df298d7b842f9 related-to-bug: 5137212 --- include/media/stagefright/HardwareAPI.h | 10 ++++++++++ include/media/stagefright/OMXCodec.h | 2 ++ 2 files changed, 12 insertions(+) (limited to 'include') diff --git a/include/media/stagefright/HardwareAPI.h b/include/media/stagefright/HardwareAPI.h index 32eed3f79c6c..d785c48708c9 100644 --- a/include/media/stagefright/HardwareAPI.h +++ b/include/media/stagefright/HardwareAPI.h @@ -73,6 +73,16 @@ struct StoreMetaDataInBuffersParams { OMX_BOOL bStoreMetaData; }; +// A pointer to this struct is passed to OMX_SetParameter() when the extension +// index "OMX.google.android.index.enableSecureMode" +// is given. +// +struct EnableSecureModeParams { + OMX_U32 nSize; + OMX_VERSIONTYPE nVersion; + OMX_BOOL bEnableSecureMode; +}; + // 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 diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index 2932744f0e6b..2a1b3d814f41 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -319,6 +319,8 @@ private: void initOutputFormat(const sp &inputFormat); status_t initNativeWindow(); + status_t enableSecureMode(); + void dumpPortStatus(OMX_U32 portIndex); status_t configureCodec(const sp &meta); -- cgit v1.2.3-59-g8ed1b