diff options
author | Lajos Molnar <lajos@google.com> | 2014-10-10 17:14:17 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-10-13 21:27:49 -0700 |
commit | 512e979284de984427e5b2f73b9054ae1b5e2b0a (patch) | |
tree | 34e93922113abbd179cba3363439ff285e9c2e27 /media/libstagefright/omx/GraphicBufferSource.h | |
parent | e760de61d9a662b1fbfda96ac34aaa246c2711bb (diff) | |
download | frameworks_av-512e979284de984427e5b2f73b9054ae1b5e2b0a.zip frameworks_av-512e979284de984427e5b2f73b9054ae1b5e2b0a.tar.gz frameworks_av-512e979284de984427e5b2f73b9054ae1b5e2b0a.tar.bz2 |
stagefright: support passing GraphicBuffer in metadata buffer
Bug: 17935149
Change-Id: I6bb5dd654e498a7153410afc052c2c8f7f35e44d
Diffstat (limited to 'media/libstagefright/omx/GraphicBufferSource.h')
-rw-r--r-- | media/libstagefright/omx/GraphicBufferSource.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/media/libstagefright/omx/GraphicBufferSource.h b/media/libstagefright/omx/GraphicBufferSource.h index a70cc1a..c0860ab 100644 --- a/media/libstagefright/omx/GraphicBufferSource.h +++ b/media/libstagefright/omx/GraphicBufferSource.h @@ -49,7 +49,8 @@ namespace android { class GraphicBufferSource : public BufferQueue::ConsumerListener { public: GraphicBufferSource(OMXNodeInstance* nodeInstance, - uint32_t bufferWidth, uint32_t bufferHeight, uint32_t bufferCount); + uint32_t bufferWidth, uint32_t bufferHeight, uint32_t bufferCount, + bool useGraphicBufferInMeta = false); virtual ~GraphicBufferSource(); // We can't throw an exception if the constructor fails, so we just set @@ -271,6 +272,8 @@ private: int64_t mPrevCaptureUs; int64_t mPrevFrameUs; + bool mUseGraphicBufferInMeta; + void onMessageReceived(const sp<AMessage> &msg); DISALLOW_EVIL_CONSTRUCTORS(GraphicBufferSource); |