From d291c222357303b9611cab89d0c3b047584ef377 Mon Sep 17 00:00:00 2001 From: Chong Zhang Date: Thu, 30 Apr 2015 18:15:52 -0700 Subject: MediaCodec: implement persistent input surface APIs Bug: 19127604 Bug: 19489395 Change-Id: Idaf1cc9008016f66903e93907a676f54e342e1a3 --- include/media/IOMX.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/media/IOMX.h') diff --git a/include/media/IOMX.h b/include/media/IOMX.h index 6def65b..df3aeca 100644 --- a/include/media/IOMX.h +++ b/include/media/IOMX.h @@ -20,6 +20,7 @@ #include #include +#include #include #include #include @@ -113,6 +114,14 @@ public: node_id node, OMX_U32 port_index, sp *bufferProducer) = 0; + virtual status_t createPersistentInputSurface( + sp *bufferProducer, + sp *bufferConsumer) = 0; + + virtual status_t usePersistentInputSurface( + node_id node, OMX_U32 port_index, + const sp &bufferConsumer) = 0; + virtual status_t signalEndOfInputStream(node_id node) = 0; // This API clearly only makes sense if the caller lives in the -- cgit v1.1