summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include/OMXNodeInstance.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 /media/libstagefright/include/OMXNodeInstance.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 'media/libstagefright/include/OMXNodeInstance.h')
-rw-r--r--media/libstagefright/include/OMXNodeInstance.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/media/libstagefright/include/OMXNodeInstance.h b/media/libstagefright/include/OMXNodeInstance.h
index b5b31ac..8c7c562 100644
--- a/media/libstagefright/include/OMXNodeInstance.h
+++ b/media/libstagefright/include/OMXNodeInstance.h
@@ -49,10 +49,16 @@ struct OMXNodeInstance {
status_t getConfig(OMX_INDEXTYPE index, void *params, size_t size);
status_t setConfig(OMX_INDEXTYPE index, const void *params, size_t size);
+ status_t enableGraphicBuffers(OMX_U32 portIndex, OMX_BOOL enable);
+
status_t useBuffer(
OMX_U32 portIndex, const sp<IMemory> &params,
OMX::buffer_id *buffer);
+ status_t useGraphicBuffer(
+ OMX_U32 portIndex, const sp<GraphicBuffer> &graphicBuffer,
+ OMX::buffer_id *buffer);
+
status_t allocateBuffer(
OMX_U32 portIndex, size_t size, OMX::buffer_id *buffer,
void **buffer_data);
@@ -125,4 +131,3 @@ private:
} // namespace android
#endif // OMX_NODE_INSTANCE_H_
-