summaryrefslogtreecommitdiffstats
path: root/include/media/IOMX.h
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2010-08-30 16:48:38 -0700
committerJamie Gennis <jgennis@google.com>2010-09-03 14:32:42 -0700
commit83750eaf5a3f38c243a9e7eb81d4b2421e3a0d88 (patch)
tree3e986eeeff4dd2f5d7cb9ddb3c90a714be495f2e /include/media/IOMX.h
parent9f2d258645826c999a93a4206df157fec2e3b0f2 (diff)
downloadframeworks_av-83750eaf5a3f38c243a9e7eb81d4b2421e3a0d88.zip
frameworks_av-83750eaf5a3f38c243a9e7eb81d4b2421e3a0d88.tar.gz
frameworks_av-83750eaf5a3f38c243a9e7eb81d4b2421e3a0d88.tar.bz2
Add the new Stagefright ANativeWindow OMX codec API.
This change defines the two OMX_SetParameter calls that enable OMX codecs to interact with ANativeWindows. It also adds the plumbing to the IOMX, OMX, and OMXNodeInstance classes to use these new APIs. This is try 2 for this change, after reverting the first one because it broke the build. Change-Id: I94249b72bdb5d5719360f03d7935fcca4ece5028
Diffstat (limited to 'include/media/IOMX.h')
-rw-r--r--include/media/IOMX.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/media/IOMX.h b/include/media/IOMX.h
index 2f61cbe..1f8ce71 100644
--- a/include/media/IOMX.h
+++ b/include/media/IOMX.h
@@ -19,6 +19,7 @@
#define ANDROID_IOMX_H_
#include <binder/IInterface.h>
+#include <ui/GraphicBuffer.h>
#include <utils/List.h>
#include <utils/String8.h>
@@ -78,10 +79,17 @@ public:
node_id node, OMX_INDEXTYPE index,
const void *params, size_t size) = 0;
+ virtual status_t enableGraphicBuffers(
+ node_id node, OMX_U32 port_index, OMX_BOOL enable) = 0;
+
virtual status_t useBuffer(
node_id node, OMX_U32 port_index, const sp<IMemory> &params,
buffer_id *buffer) = 0;
+ virtual status_t useGraphicBuffer(
+ node_id node, OMX_U32 port_index,
+ const sp<GraphicBuffer> &graphicBuffer, buffer_id *buffer) = 0;
+
// This API clearly only makes sense if the caller lives in the
// same process as the callee, i.e. is the media_server, as the
// returned "buffer_data" pointer is just that, a pointer into local