summaryrefslogtreecommitdiffstats
path: root/include/media/IOMX.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-08-07 12:01:29 -0700
committerAndreas Huber <andih@google.com>2009-08-10 12:58:05 -0700
commitf4148b55c5d6f68b22462e3880015fefa91ae7c6 (patch)
tree9a698fe66dd72d29942954df156ac0cc80042b44 /include/media/IOMX.h
parent408b8e1073385d0d09bb96b9952f84731a0b4aeb (diff)
downloadframeworks_av-f4148b55c5d6f68b22462e3880015fefa91ae7c6.zip
frameworks_av-f4148b55c5d6f68b22462e3880015fefa91ae7c6.tar.gz
frameworks_av-f4148b55c5d6f68b22462e3880015fefa91ae7c6.tar.bz2
Expose a variation of the createRenderer API that works on a plain Surface.
Diffstat (limited to 'include/media/IOMX.h')
-rw-r--r--include/media/IOMX.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/media/IOMX.h b/include/media/IOMX.h
index 857b2bd..7e5ff61 100644
--- a/include/media/IOMX.h
+++ b/include/media/IOMX.h
@@ -31,6 +31,7 @@ class IMemory;
class IOMXObserver;
class IOMXRenderer;
class ISurface;
+class Surface;
class IOMX : public IInterface {
public:
@@ -87,6 +88,16 @@ public:
OMX_COLOR_FORMATTYPE colorFormat,
size_t encodedWidth, size_t encodedHeight,
size_t displayWidth, size_t displayHeight) = 0;
+
+ // Note: This method is _not_ virtual, it exists as a wrapper around
+ // the virtual "createRenderer" method above facilitating extraction
+ // of the ISurface from a regular Surface.
+ sp<IOMXRenderer> createRenderer(
+ const sp<Surface> &surface,
+ const char *componentName,
+ OMX_COLOR_FORMATTYPE colorFormat,
+ size_t encodedWidth, size_t encodedHeight,
+ size_t displayWidth, size_t displayHeight);
};
struct omx_message {