Home
last modified time | relevance | path

Searched refs:BufferQueue (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/native/libs/gui/
DBufferQueue.cpp66 BufferQueue::BufferQueue(bool allowSynchronousMode, in BufferQueue() function in android::BufferQueue
98 BufferQueue::~BufferQueue() { in ~BufferQueue()
102 status_t BufferQueue::setDefaultMaxBufferCountLocked(int count) { in setDefaultMaxBufferCountLocked()
112 bool BufferQueue::isSynchronousMode() const { in isSynchronousMode()
117 void BufferQueue::setConsumerName(const String8& name) { in setConsumerName()
122 status_t BufferQueue::setDefaultBufferFormat(uint32_t defaultFormat) { in setDefaultBufferFormat()
128 status_t BufferQueue::setConsumerUsageBits(uint32_t usage) { in setConsumerUsageBits()
134 status_t BufferQueue::setTransformHint(uint32_t hint) { in setTransformHint()
141 status_t BufferQueue::setBufferCount(int bufferCount) { in setBufferCount()
198 int BufferQueue::query(int what, int* outValue) in query()
[all …]
DConsumerBase.cpp54 ConsumerBase::ConsumerBase(const sp<BufferQueue>& bufferQueue) : in ConsumerBase()
64 wp<BufferQueue::ConsumerListener> listener; in ConsumerBase()
65 sp<BufferQueue::ConsumerListener> proxy; in ConsumerBase()
66 listener = static_cast<BufferQueue::ConsumerListener*>(this); in ConsumerBase()
67 proxy = new BufferQueue::ProxyConsumerListener(listener); in ConsumerBase()
101 sp<BufferQueue> ConsumerBase::getBufferQueue() const { in getBufferQueue()
133 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in onBuffersReleased()
152 for (int i =0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in abandonLocked()
188 status_t ConsumerBase::acquireBufferLocked(BufferQueue::BufferItem *item) { in acquireBufferLocked()
237 if (err == BufferQueue::STALE_BUFFER_SLOT) { in releaseBufferLocked()
DCpuConsumer.cpp34 ConsumerBase(new BufferQueue(true) ), in CpuConsumer()
66 BufferQueue::BufferItem b; in lockNextBuffer()
72 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in lockNextBuffer()
123 BufferQueue::INVALID_BUFFER_SLOT) { in lockNextBuffer()
196 ab.mSlot = BufferQueue::INVALID_BUFFER_SLOT; in releaseAcquiredBufferLocked()
DGLConsumer.cpp82 GLenum texTarget, bool useFenceSync, const sp<BufferQueue> &bufferQueue) : in GLConsumer()
83 ConsumerBase(bufferQueue == 0 ? new BufferQueue(allowSynchronousMode) : bufferQueue), in GLConsumer()
96 mCurrentTexture(BufferQueue::INVALID_BUFFER_SLOT), in GLConsumer()
137 BufferQueue::BufferItem item; in updateTexImage()
144 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in updateTexImage()
168 status_t GLConsumer::acquireBufferLocked(BufferQueue::BufferItem *item) { in acquireBufferLocked()
200 status_t GLConsumer::releaseAndUpdateLocked(const BufferQueue::BufferItem& item) in releaseAndUpdateLocked()
250 if (mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in releaseAndUpdateLocked()
253 if (status != NO_ERROR && status != BufferQueue::STALE_BUFFER_SLOT) { in releaseAndUpdateLocked()
287 if (mCurrentTexture == BufferQueue::INVALID_BUFFER_SLOT) { in bindTextureImageLocked()
[all …]
DAndroid.mk7 BufferQueue.cpp \
/frameworks/native/include/gui/
DConsumerBase.h37 protected BufferQueue::ConsumerListener {
70 sp<BufferQueue> getBufferQueue() const;
90 ConsumerBase(const sp<BufferQueue> &bufferQueue);
156 virtual status_t acquireBufferLocked(BufferQueue::BufferItem *item);
197 Slot mSlots[BufferQueue::NUM_BUFFER_SLOTS];
217 sp<BufferQueue> mBufferQueue;
DBufferItemConsumer.h43 typedef BufferQueue::BufferItem BufferItem;
45 enum { INVALID_BUFFER_SLOT = BufferQueue::INVALID_BUFFER_SLOT };
46 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };
53 int bufferCount = BufferQueue::MIN_UNDEQUEUED_BUFFERS,
DGLConsumer.h90 const sp<BufferQueue> &bufferQueue = 0);
197 sp<BufferQueue> getBufferQueue() const { in getBufferQueue()
241 virtual status_t acquireBufferLocked(BufferQueue::BufferItem *item);
257 status_t releaseAndUpdateLocked(const BufferQueue::BufferItem& item);
405 EglSlot mEglSlots[BufferQueue::NUM_BUFFER_SLOTS];
DBufferQueue.h36 class BufferQueue : public BnGraphicBufferProducer {
83 class ProxyConsumerListener : public BufferQueue::ConsumerListener {
86 ProxyConsumerListener(const wp<BufferQueue::ConsumerListener>& consumerListener);
95 wp<BufferQueue::ConsumerListener> mConsumerListener;
103 BufferQueue(bool allowSynchronousMode = true,
105 virtual ~BufferQueue();
DDummyConsumer.h29 class DummyConsumer : public BufferQueue::ConsumerListener {
DCpuConsumer.h113 mSlot(BufferQueue::INVALID_BUFFER_SLOT), in AcquiredBuffer()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp54 ConsumerBase(new BufferQueue(true, new GraphicBufferAlloc())), in FramebufferSurface()
85 BufferQueue::BufferItem item; in nextBuffer()
87 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in nextBuffer()
103 if (mCurrentBufferSlot != BufferQueue::INVALID_BUFFER_SLOT && in nextBuffer()
108 if (err != NO_ERROR && err != BufferQueue::STALE_BUFFER_SLOT) { in nextBuffer()
139 mCurrentBufferSlot = BufferQueue::INVALID_BUFFER_SLOT; in freeBufferLocked()
146 mCurrentBufferSlot != BufferQueue::INVALID_BUFFER_SLOT) { in onFrameCommitted()
/frameworks/native/libs/gui/tests/
DBufferQueue_test.cpp43 mBQ = new BufferQueue(); in SetUp()
55 sp<BufferQueue> mBQ;
58 struct DummyConsumer : public BufferQueue::ConsumerListener {
75 BufferQueue::BufferItem item; in TEST_F()
103 BufferQueue::MAX_MAX_ACQUIRED_BUFFERS+1)); in TEST_F()
114 BufferQueue::MAX_MAX_ACQUIRED_BUFFERS)); in TEST_F()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.h57 typedef BufferQueue::BufferItem BufferItem;
59 enum { INVALID_BUFFER_SLOT = BufferQueue::INVALID_BUFFER_SLOT };
60 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };
67 int bufferCount = BufferQueue::MIN_UNDEQUEUED_BUFFERS);
139 return mBufferItem.mBuf == BufferQueue::INVALID_BUFFER_SLOT; in isEmpty()
/frameworks/av/media/libstagefright/omx/
DGraphicBufferSource.cpp54 mBufferQueue = new BufferQueue(true); in GraphicBufferSource()
72 wp<BufferQueue::ConsumerListener> listener; in GraphicBufferSource()
73 listener = static_cast<BufferQueue::ConsumerListener*>(this); in GraphicBufferSource()
75 sp<BufferQueue::ConsumerListener> proxy; in GraphicBufferSource()
76 proxy = new BufferQueue::ProxyConsumerListener(listener); in GraphicBufferSource()
212 for (id = 0; id < BufferQueue::NUM_BUFFER_SLOTS; id++) { in codecBufferEmptied()
226 if (id == BufferQueue::NUM_BUFFER_SLOTS) { in codecBufferEmptied()
262 BufferQueue::BufferItem item; in fillCodecBuffer_l()
264 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in fillCodecBuffer_l()
431 BufferQueue::BufferItem item; in onFrameAvailable()
[all …]
DGraphicBufferSource.h47 class GraphicBufferSource : public BufferQueue::ConsumerListener {
153 sp<BufferQueue> mBufferQueue;
167 sp<GraphicBuffer> mBufferSlot[BufferQueue::NUM_BUFFER_SLOTS];
/frameworks/av/media/libstagefright/
DSurfaceMediaSource.cpp41 mCurrentSlot(BufferQueue::INVALID_BUFFER_SLOT), in SurfaceMediaSource()
57 mBufferQueue = new BufferQueue(true); in SurfaceMediaSource()
69 wp<BufferQueue::ConsumerListener> listener; in SurfaceMediaSource()
70 sp<BufferQueue::ConsumerListener> proxy; in SurfaceMediaSource()
71 listener = static_cast<BufferQueue::ConsumerListener*>(this); in SurfaceMediaSource()
72 proxy = new BufferQueue::ProxyConsumerListener(listener); in SurfaceMediaSource()
291 BufferQueue::BufferItem item; in read()
297 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in read()
407 for (int id = 0; id < BufferQueue::NUM_BUFFER_SLOTS; id++) { in signalBufferReturned()
471 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in onBuffersReleased()
/frameworks/av/include/media/stagefright/
DSurfaceMediaSource.h59 protected BufferQueue::ConsumerListener {
114 sp<BufferQueue> getBufferQueue() const { return mBufferQueue; } in getBufferQueue()
147 sp<BufferQueue> mBufferQueue;
150 sp<GraphicBuffer> mBufferSlot[BufferQueue::NUM_BUFFER_SLOTS];
/frameworks/native/services/surfaceflinger/
DSurfaceFlingerConsumer.h32 const sp<BufferQueue> &bufferQueue = 0)
40 const BufferQueue::BufferItem& item) = 0;
DSurfaceTextureLayer.cpp31 : BufferQueue(true), flinger(flinger) { in SurfaceTextureLayer()
55 status_t err = BufferQueue::connect(api, output); in connect()
DSurfaceFlingerConsumer.cpp48 BufferQueue::BufferItem item; in updateTexImage()
55 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in updateTexImage()
DSurfaceTextureLayer.h36 class SurfaceTextureLayer : public BufferQueue {
/frameworks/av/media/libstagefright/wifi-display/source/
DPlaybackSession.h28 struct BufferQueue;
112 sp<BufferQueue> mBufferQueue;
/frameworks/native/opengl/tests/EGLTest/
DEGL_test.cpp105 sp<BufferQueue> bq = new BufferQueue(); in TEST_F()
/frameworks/av/services/camera/libcameraservice/camera3/
DCamera3ZslStream.h48 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };

12