summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/OMXCodec.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2011-01-28 12:37:51 -0800
committerGlenn Kasten <gkasten@google.com>2011-03-10 19:16:40 -0800
commit2eb62955eb84b97695e8a7e56e14310cbb86412b (patch)
treefd19d4d6f069a06d5094fe85dda6b632f5c80d4e /include/media/stagefright/OMXCodec.h
parent8862028032790fe2ec3f6114de6b2e98a296e6df (diff)
downloadframeworks_av-2eb62955eb84b97695e8a7e56e14310cbb86412b.zip
frameworks_av-2eb62955eb84b97695e8a7e56e14310cbb86412b.tar.gz
frameworks_av-2eb62955eb84b97695e8a7e56e14310cbb86412b.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/stagefright/OMXCodec.h')
-rw-r--r--include/media/stagefright/OMXCodec.h4
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,