Home
last modified time | relevance | path

Searched refs:BufferQueue (Results 1 – 25 of 53) 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::onBuffersReleased() { in onBuffersReleased()
49 void BufferQueue::ProxyConsumerListener::onSidebandStreamChanged() { in onSidebandStreamChanged()
56 void BufferQueue::createBufferQueue(sp<IGraphicBufferProducer>* outProducer, in createBufferQueue()
DConsumerBase.cpp67 sp<IConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener); in ConsumerBase()
128 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in onBuffersReleased()
150 for (int i =0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in abandonLocked()
182 status_t ConsumerBase::acquireBufferLocked(BufferQueue::BufferItem *item, in acquireBufferLocked()
262 if (slot < 0 || slot >= BufferQueue::NUM_BUFFER_SLOTS) { in stillTracking()
DGLConsumer.cpp135 mCurrentTexture(BufferQueue::INVALID_BUFFER_SLOT), in GLConsumer()
162 mCurrentTexture(BufferQueue::INVALID_BUFFER_SLOT), in GLConsumer()
203 BufferQueue::BufferItem item; in updateTexImage()
210 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in updateTexImage()
259 if (buf != BufferQueue::INVALID_BUFFER_SLOT) { in releaseTexImage()
286 mCurrentTexture = BufferQueue::INVALID_BUFFER_SLOT; in releaseTexImage()
334 status_t GLConsumer::acquireBufferLocked(BufferQueue::BufferItem *item, in acquireBufferLocked()
365 status_t GLConsumer::updateAndReleaseLocked(const BufferQueue::BufferItem& item) in updateAndReleaseLocked()
419 if (mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in updateAndReleaseLocked()
458 if (mCurrentTexture == BufferQueue::INVALID_BUFFER_SLOT && in bindTextureImageLocked()
[all …]
DCpuConsumer.cpp108 BufferQueue::BufferItem b; in lockNextBuffer()
114 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in lockNextBuffer()
178 BufferQueue::INVALID_BUFFER_SLOT) { in lockNextBuffer()
262 ab.mSlot = BufferQueue::INVALID_BUFFER_SLOT; in releaseAcquiredBufferLocked()
DAndroid.mk10 BufferQueue.cpp \
/frameworks/native/include/gui/
DBufferItemConsumer.h32 class BufferQueue; variable
45 typedef BufferQueue::BufferItem BufferItem;
48 enum { INVALID_BUFFER_SLOT = BufferQueue::INVALID_BUFFER_SLOT };
49 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };
DBufferQueue.h31 class BufferQueue {
82 BufferQueue(); // Create through createBufferQueue
DCpuConsumer.h31 class BufferQueue; variable
129 mSlot(BufferQueue::INVALID_BUFFER_SLOT), in AcquiredBuffer()
DGLConsumer.h243 virtual status_t acquireBufferLocked(BufferQueue::BufferItem *item,
262 status_t updateAndReleaseLocked(const BufferQueue::BufferItem& item);
457 EglSlot mEglSlots[BufferQueue::NUM_BUFFER_SLOTS];
DConsumerBase.h207 Slot mSlots[BufferQueue::NUM_BUFFER_SLOTS];
/frameworks/av/media/libstagefright/omx/
DGraphicBufferSource.h49 class GraphicBufferSource : public BufferQueue::ConsumerListener {
190 status_t submitBuffer_l(const BufferQueue::BufferItem &item, int cbi);
196 void setLatestSubmittedBuffer_l(const BufferQueue::BufferItem &item);
198 int64_t getTimestamp(const BufferQueue::BufferItem &item);
232 sp<GraphicBuffer> mBufferSlot[BufferQueue::NUM_BUFFER_SLOTS];
DGraphicBufferSource.cpp77 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in GraphicBufferSource()
93 wp<BufferQueue::ConsumerListener> listener = static_cast<BufferQueue::ConsumerListener*>(this); in GraphicBufferSource()
94 sp<BufferQueue::ProxyConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener); in GraphicBufferSource()
346 if (mOriginalTimeUs.size() > BufferQueue::NUM_BUFFER_SLOTS) { in codecBufferFilled()
362 BufferQueue::BufferItem item; in suspend()
365 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in suspend()
412 BufferQueue::BufferItem item; in fillCodecBuffer_l()
414 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in fillCodecBuffer_l()
495 BufferQueue::BufferItem item; in repeatLatestSubmittedBuffer_l()
526 const BufferQueue::BufferItem &item) { in setLatestSubmittedBuffer_l()
[all …]
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp89 BufferQueue::BufferItem item; in nextBuffer()
91 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in nextBuffer()
107 if (mCurrentBufferSlot != BufferQueue::INVALID_BUFFER_SLOT && in nextBuffer()
143 mCurrentBufferSlot = BufferQueue::INVALID_BUFFER_SLOT; in freeBufferLocked()
150 mCurrentBufferSlot != BufferQueue::INVALID_BUFFER_SLOT) { in onFrameCommitted()
/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 };
137 return mBufferItem.mBuf == BufferQueue::INVALID_BUFFER_SLOT; in isEmpty()
/frameworks/native/services/surfaceflinger/
DSurfaceFlingerConsumer.cpp50 BufferQueue::BufferItem item; in updateTexImage()
57 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in updateTexImage()
59 } else if (err == BufferQueue::PRESENT_LATER) { in updateTexImage()
105 BufferQueue::BufferItem *item, nsecs_t presentWhen) { in acquireBufferLocked()
DSurfaceFlingerConsumer.h50 virtual status_t acquireBufferLocked(BufferQueue::BufferItem *item, nsecs_t presentWhen);
/frameworks/av/media/libstagefright/
DSurfaceMediaSource.cpp43 mCurrentSlot(BufferQueue::INVALID_BUFFER_SLOT), in SurfaceMediaSource()
59 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in SurfaceMediaSource()
71 sp<BufferQueue::ProxyConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener); in SurfaceMediaSource()
293 BufferQueue::BufferItem item; in read()
299 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in read()
412 for (int id = 0; id < BufferQueue::NUM_BUFFER_SLOTS; id++) { in signalBufferReturned()
477 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in onBuffersReleased()
/frameworks/rs/
DrsGrallocConsumer.cpp65 if (mAcquiredBuffer.mSlot != BufferQueue::INVALID_BUFFER_SLOT) { in lockNextBuffer()
72 BufferQueue::BufferItem b; in lockNextBuffer()
76 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in lockNextBuffer()
125 assert(mAcquiredBuffer.mSlot == BufferQueue::INVALID_BUFFER_SLOT); in lockNextBuffer()
189 mAcquiredBuffer.mSlot = BufferQueue::INVALID_BUFFER_SLOT; in releaseAcquiredBufferLocked()
DrsGrallocConsumer.h67 mSlot(BufferQueue::INVALID_BUFFER_SLOT), in AcquiredBuffer()
/frameworks/native/libs/gui/tests/
DStreamSplitter_test.cpp83 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer, allocator); in TEST_F()
87 BufferQueue::createBufferQueue(&outputProducer, &outputConsumer, allocator); in TEST_F()
143 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer, allocator); in TEST_F()
148 BufferQueue::createBufferQueue(&outputProducers[output], in TEST_F()
209 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer); in TEST_F()
213 BufferQueue::createBufferQueue(&outputProducer, &outputConsumer); in TEST_F()
DIGraphicBufferProducer_test.cpp86 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in SetUp()
282 EXPECT_GE(BufferQueue::NUM_BUFFER_SLOTS, value); in TEST_F()
339 EXPECT_GT(BufferQueue::NUM_BUFFER_SLOTS, dequeuedSlot); in TEST_F()
381 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(BufferQueue::NUM_BUFFER_SLOTS, in TEST_F()
513 ASSERT_OK(mProducer->setBufferCount(BufferQueue::NUM_BUFFER_SLOTS)); in TEST_F()
516 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; ++i) { in TEST_F()
539 EXPECT_EQ(BAD_VALUE, mProducer->setBufferCount(BufferQueue::NUM_BUFFER_SLOTS + 1)) in TEST_F()
540 << "bufferCount: " << BufferQueue::NUM_BUFFER_SLOTS + 1; in TEST_F()
DBufferQueue_test.cpp62 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in createBufferQueue()
88 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
155 BufferQueue::BufferItem item; in TEST_F()
189 BufferQueue::MAX_MAX_ACQUIRED_BUFFERS+1)); in TEST_F()
205 BufferQueue::MAX_MAX_ACQUIRED_BUFFERS)); in TEST_F()
DSurface_test.cpp94 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
144 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
DSurfaceTextureGL.h41 BufferQueue::createBufferQueue(&producer, &mConsumer); in SetUp()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3ZslStream.h48 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };

123