summaryrefslogtreecommitdiffstats
path: root/include/media/IOMX.h
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-02-23 19:01:28 -0800
committerJamie Gennis <jgennis@google.com>2011-02-28 12:12:20 -0800
commite2ce6458659c6e1bad420357b61dc10cd8bbe2ab (patch)
tree89a59a1cef847dc359dbf013f0c76d94f6363918 /include/media/IOMX.h
parent3911a720270fc0326accfa4a3df427a649a45487 (diff)
downloadframeworks_av-e2ce6458659c6e1bad420357b61dc10cd8bbe2ab.zip
frameworks_av-e2ce6458659c6e1bad420357b61dc10cd8bbe2ab.tar.gz
frameworks_av-e2ce6458659c6e1bad420357b61dc10cd8bbe2ab.tar.bz2
Add an OMX IL API for querying buffer usage flags.
This change defines an OpenMAX IL API for querying from the IL component the gralloc buffer usage flags that should be used to allocate the buffers. It also adds the Stagefright plumbing for using the new OMX IL API. Change-Id: I046b5e7be70ce61e2a921dcdc6e3aa9324d19ea6 Related-Bug: 3479027
Diffstat (limited to 'include/media/IOMX.h')
-rw-r--r--include/media/IOMX.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/IOMX.h b/include/media/IOMX.h
index cb36bbb..16a9342 100644
--- a/include/media/IOMX.h
+++ b/include/media/IOMX.h
@@ -85,6 +85,9 @@ public:
virtual status_t enableGraphicBuffers(
node_id node, OMX_U32 port_index, OMX_BOOL enable) = 0;
+ virtual status_t getGraphicBufferUsage(
+ node_id node, OMX_U32 port_index, OMX_U32* usage) = 0;
+
virtual status_t useBuffer(
node_id node, OMX_U32 port_index, const sp<IMemory> &params,
buffer_id *buffer) = 0;