diff options
author | 2014-03-03 15:42:54 -0800 | |
---|---|---|
committer | 2014-03-11 12:23:14 -0700 | |
commit | 399184a4cd728ea1421fb0bc1722274a29e38f4a (patch) | |
tree | 7185bc1ac84eec1afebc221ed91d90b90fa9a7fb /libs/gui/BufferQueueConsumer.cpp | |
parent | 05fe2d1cfbf580c04ef1b1f0130b5dccba6dfe33 (diff) |
Add sideband streams to BufferQueue and related classes
Sideband streams are essentially a device-specific buffer queue that
bypasses the BufferQueue system. They can be used for situations with
hard real-time requirements like high-quality TV and video playback
with A/V sync. A handle to the stream is provided by the source HAL,
and attached to a BufferQueue. The sink HAL can read buffers via the
stream handle rather than acquiring individual buffers from the
BufferQueue.
Change-Id: Ib3f262eddfc520f4bbe3d9b91753ed7dd09d3a9b
Diffstat (limited to 'libs/gui/BufferQueueConsumer.cpp')
-rw-r--r-- | libs/gui/BufferQueueConsumer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/gui/BufferQueueConsumer.cpp b/libs/gui/BufferQueueConsumer.cpp index dc7aa157f3..e34f716c67 100644 --- a/libs/gui/BufferQueueConsumer.cpp +++ b/libs/gui/BufferQueueConsumer.cpp @@ -395,6 +395,10 @@ status_t BufferQueueConsumer::setTransformHint(uint32_t hint) { return NO_ERROR; } +sp<NativeHandle> BufferQueueConsumer::getSidebandStream() const { + return mCore->mSidebandStream; +} + void BufferQueueConsumer::dump(String8& result, const char* prefix) const { mCore->dump(result, prefix); } |