diff options
author | Andy McFadden <fadden@android.com> | 2013-02-19 07:28:30 -0800 |
---|---|---|
committer | Andy McFadden <fadden@android.com> | 2013-03-04 15:03:53 -0800 |
commit | 7cd58537932ef6f481f68be0b9c597a89cebdfec (patch) | |
tree | 02a57bed3a2de95c9eac0375cb282c6ad85a5eea /include/media/IOMX.h | |
parent | bf04b5860182d8f4130dcb5d6d88ee68a58c99cd (diff) | |
download | frameworks_av-7cd58537932ef6f481f68be0b9c597a89cebdfec.zip frameworks_av-7cd58537932ef6f481f68be0b9c597a89cebdfec.tar.gz frameworks_av-7cd58537932ef6f481f68be0b9c597a89cebdfec.tar.bz2 |
Implement Surface input to MediaCodec.
Also, renamed a CHECK_INTERFACE macro that was clashing with the
Binder version.
Bug 7991062
Change-Id: If5e6ed0a06d9f67975497676e4b05abe3aa3d6c0
Diffstat (limited to 'include/media/IOMX.h')
-rw-r--r-- | include/media/IOMX.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/media/IOMX.h b/include/media/IOMX.h index be1b2fc..0b1d1e4 100644 --- a/include/media/IOMX.h +++ b/include/media/IOMX.h @@ -19,6 +19,7 @@ #define ANDROID_IOMX_H_ #include <binder/IInterface.h> +#include <gui/IGraphicBufferProducer.h> #include <ui/GraphicBuffer.h> #include <utils/List.h> #include <utils/String8.h> @@ -96,6 +97,12 @@ public: node_id node, OMX_U32 port_index, const sp<GraphicBuffer> &graphicBuffer, buffer_id *buffer) = 0; + virtual status_t createInputSurface( + node_id node, OMX_U32 port_index, + sp<IGraphicBufferProducer> *bufferProducer) = 0; + + virtual status_t signalEndOfInputStream(node_id node) = 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 |