diff options
author | Glenn Kasten <gkasten@google.com> | 2011-01-28 12:37:51 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2011-03-10 19:16:40 -0800 |
commit | b8763f60b488ea4e233c9ebed8208599edb36da3 (patch) | |
tree | 10f7cb25a26cf6491dffbf8dff212ebc1fd2170a /include/media | |
parent | b2e606f5f175906ab8c578cb9ba03c728154c50c (diff) | |
download | frameworks_base-b8763f60b488ea4e233c9ebed8208599edb36da3.zip frameworks_base-b8763f60b488ea4e233c9ebed8208599edb36da3.tar.gz frameworks_base-b8763f60b488ea4e233c9ebed8208599edb36da3.tar.bz2 |
Bug 3012968 DRM output control
Modifies Stagefright to verify that there is a hardware-protected path
to video sink for DRM content.
Change-Id: I18b8741390e803a05a88c7f180b860a24ba88a10
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/stagefright/OMXCodec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index f7d837a..93b5d24 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -50,6 +50,9 @@ struct OMXCodec : public MediaSource, // Only submit one input buffer at one time. kOnlySubmitOneInputBufferAtOneTime = 64, + + // Enable GRALLOC_USAGE_PROTECTED for output buffers from native window + kEnableGrallocUsageProtected = 128, }; static sp<MediaSource> Create( const sp<IOMX> &omx, @@ -197,6 +200,7 @@ private: bool mIsMetaDataStoredInVideoBuffers; bool mOnlySubmitOneBufferAtOneTime; + bool mEnableGrallocUsageProtected; OMXCodec(const sp<IOMX> &omx, IOMX::node_id node, uint32_t quirks, bool isEncoder, const char *mime, const char *componentName, |