summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2011-03-11 08:46:40 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-11 08:46:40 -0800
commit6dd429efe2f5f4aee1f3b934bb5404e24d65ac93 (patch)
tree6e96bbb982209f0e71386d422917e8b07f9b1e65 /include/media
parentdd0f9af1161e491cb16d9705a3983650d3dc087b (diff)
parent055066e1e77d944383360d50057f5b8187f23c0b (diff)
downloadframeworks_base-6dd429efe2f5f4aee1f3b934bb5404e24d65ac93.zip
frameworks_base-6dd429efe2f5f4aee1f3b934bb5404e24d65ac93.tar.gz
frameworks_base-6dd429efe2f5f4aee1f3b934bb5404e24d65ac93.tar.bz2
am 055066e1: am 92f2f3ff: Merge "Bug 3012968 DRM output control" into honeycomb-mr1
* commit '055066e1e77d944383360d50057f5b8187f23c0b': Bug 3012968 DRM output control
Diffstat (limited to 'include/media')
-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,