Home
last modified time | relevance | path

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

123

/frameworks/native/libs/gui/
DBufferQueue.cpp28 BufferQueue::ProxyConsumerListener::ProxyConsumerListener( in ProxyConsumerListener()
32 BufferQueue::ProxyConsumerListener::~ProxyConsumerListener() {} in ~ProxyConsumerListener()
34 void BufferQueue::ProxyConsumerListener::onFrameAvailable( in onFrameAvailable()
42 void BufferQueue::ProxyConsumerListener::onFrameReplaced( in onFrameReplaced()
50 void BufferQueue::ProxyConsumerListener::onBuffersReleased() { in onBuffersReleased()
57 void BufferQueue::ProxyConsumerListener::onSidebandStreamChanged() { in onSidebandStreamChanged()
64 void BufferQueue::createBufferQueue(sp<IGraphicBufferProducer>* outProducer, in createBufferQueue()
DConsumerBase.cpp68 sp<IConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener); in ConsumerBase()
144 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in onBuffersReleased()
166 for (int i =0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in abandonLocked()
314 if (slot < 0 || slot >= BufferQueue::NUM_BUFFER_SLOTS) { in stillTracking()
DGLConsumer.cpp146 mCurrentTexture(BufferQueue::INVALID_BUFFER_SLOT), in GLConsumer()
173 mCurrentTexture(BufferQueue::INVALID_BUFFER_SLOT), in GLConsumer()
221 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in updateTexImage()
270 if (buf != BufferQueue::INVALID_BUFFER_SLOT) { in releaseTexImage()
297 mCurrentTexture = BufferQueue::INVALID_BUFFER_SLOT; in releaseTexImage()
432 if (mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in updateAndReleaseLocked()
471 if (mCurrentTexture == BufferQueue::INVALID_BUFFER_SLOT && in bindTextureImageLocked()
543 mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in setReleaseFence()
654 if (mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in syncForReleaseLocked()
1009 mCurrentTexture = BufferQueue::INVALID_BUFFER_SLOT; in freeBufferLocked()
DCpuConsumer.cpp101 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in lockNextBuffer()
165 BufferQueue::INVALID_BUFFER_SLOT) { in lockNextBuffer()
249 ab.mSlot = BufferQueue::INVALID_BUFFER_SLOT; in releaseAcquiredBufferLocked()
DAndroid.mk45 BufferQueue.cpp \
/frameworks/av/media/libstagefright/filters/
DGraphicBufferListener.cpp36 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in init()
48 wp<BufferQueue::ConsumerListener> listener = in init()
49 static_cast<BufferQueue::ConsumerListener*>(this); in init()
50 sp<BufferQueue::ProxyConsumerListener> proxy = in init()
51 new BufferQueue::ProxyConsumerListener(listener); in init()
101 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in getBufferItem()
131 if (item.mBuf < 0 || item.mBuf >= BufferQueue::NUM_BUFFER_SLOTS) { in getBuffer()
143 if (item.mBuf < 0 || item.mBuf >= BufferQueue::NUM_BUFFER_SLOTS) { in releaseBuffer()
DGraphicBufferListener.h26 struct GraphicBufferListener : public BufferQueue::ConsumerListener {
65 sp<GraphicBuffer> mBufferSlot[BufferQueue::NUM_BUFFER_SLOTS];
/frameworks/native/include/gui/
DBufferItemConsumer.h32 class BufferQueue; variable
46 enum { INVALID_BUFFER_SLOT = BufferQueue::INVALID_BUFFER_SLOT };
47 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };
DBufferQueue.h32 class BufferQueue {
83 BufferQueue(); // Create through createBufferQueue
DCpuConsumer.h31 class BufferQueue; variable
118 mSlot(BufferQueue::INVALID_BUFFER_SLOT), in AcquiredBuffer()
DBufferQueueProducer.h30 friend class BufferQueue; // Needed to access binderDied
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp92 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in nextBuffer()
108 if (mCurrentBufferSlot != BufferQueue::INVALID_BUFFER_SLOT && in nextBuffer()
144 mCurrentBufferSlot = BufferQueue::INVALID_BUFFER_SLOT; in freeBufferLocked()
151 mCurrentBufferSlot != BufferQueue::INVALID_BUFFER_SLOT) { in onFrameCommitted()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.h58 enum { INVALID_BUFFER_SLOT = BufferQueue::INVALID_BUFFER_SLOT };
59 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };
136 return mBufferItem.mBuf == BufferQueue::INVALID_BUFFER_SLOT; in isEmpty()
/frameworks/av/media/libstagefright/
DSurfaceMediaSource.cpp44 mCurrentSlot(BufferQueue::INVALID_BUFFER_SLOT), in SurfaceMediaSource()
60 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in SurfaceMediaSource()
72 sp<BufferQueue::ProxyConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener); in SurfaceMediaSource()
300 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in read()
413 for (int id = 0; id < BufferQueue::NUM_BUFFER_SLOTS; id++) { in signalBufferReturned()
478 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in onBuffersReleased()
/frameworks/native/libs/gui/tests/
DStreamSplitter_test.cpp86 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer, allocator); in TEST_F()
90 BufferQueue::createBufferQueue(&outputProducer, &outputConsumer, allocator); in TEST_F()
147 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer, allocator); in TEST_F()
152 BufferQueue::createBufferQueue(&outputProducers[output], in TEST_F()
214 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer); in TEST_F()
218 BufferQueue::createBufferQueue(&outputProducer, &outputConsumer); in TEST_F()
DSurface_test.cpp96 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
146 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
164 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
185 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
218 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
DIGraphicBufferProducer_test.cpp87 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in SetUp()
288 EXPECT_GE(BufferQueue::NUM_BUFFER_SLOTS, value); in TEST_F()
345 EXPECT_GT(BufferQueue::NUM_BUFFER_SLOTS, dequeuedSlot); in TEST_F()
387 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(BufferQueue::NUM_BUFFER_SLOTS, in TEST_F()
519 ASSERT_OK(mProducer->setBufferCount(BufferQueue::NUM_BUFFER_SLOTS)); in TEST_F()
522 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; ++i) { in TEST_F()
545 EXPECT_EQ(BAD_VALUE, mProducer->setBufferCount(BufferQueue::NUM_BUFFER_SLOTS + 1)) in TEST_F()
546 << "bufferCount: " << BufferQueue::NUM_BUFFER_SLOTS + 1; in TEST_F()
DSurfaceTextureGL.h41 BufferQueue::createBufferQueue(&producer, &mConsumer); in SetUp()
DBufferQueue_test.cpp65 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in createBufferQueue()
87 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
190 BufferQueue::MAX_MAX_ACQUIRED_BUFFERS+1)); in TEST_F()
206 BufferQueue::MAX_MAX_ACQUIRED_BUFFERS)); in TEST_F()
/frameworks/rs/
DrsGrallocConsumer.cpp66 if (mAcquiredBuffer.mSlot != BufferQueue::INVALID_BUFFER_SLOT) { in lockNextBuffer()
77 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in lockNextBuffer()
126 assert(mAcquiredBuffer.mSlot == BufferQueue::INVALID_BUFFER_SLOT); in lockNextBuffer()
190 mAcquiredBuffer.mSlot = BufferQueue::INVALID_BUFFER_SLOT; in releaseAcquiredBufferLocked()
DrsGrallocConsumer.h67 mSlot(BufferQueue::INVALID_BUFFER_SLOT), in AcquiredBuffer()
/frameworks/av/media/libstagefright/omx/
DGraphicBufferSource.cpp155 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in GraphicBufferSource()
177 wp<BufferQueue::ConsumerListener> listener = static_cast<BufferQueue::ConsumerListener*>(this); in GraphicBufferSource()
180 proxy = new BufferQueue::ProxyConsumerListener(listener); in GraphicBufferSource()
448 if (mOriginalTimeUs.size() > BufferQueue::NUM_BUFFER_SLOTS) { in codecBufferFilled()
467 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in suspend()
517 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in fillCodecBuffer_l()
915 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in onBuffersReleased()
DGraphicBufferSource.h51 class GraphicBufferSource : public BufferQueue::ConsumerListener {
277 sp<GraphicBuffer> mBufferSlot[BufferQueue::NUM_BUFFER_SLOTS];
/frameworks/native/services/surfaceflinger/
DSurfaceFlingerConsumer.cpp60 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in updateTexImage()
62 } else if (err == BufferQueue::PRESENT_LATER) { in updateTexImage()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3ZslStream.h48 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };

123