Searched refs:BufferQueue (Results 1 - 25 of 58) sorted by relevance

123

/frameworks/native/libs/gui/
H A DBufferQueue.cpp17 #define LOG_TAG "BufferQueue"
21 #include <gui/BufferQueue.h>
28 BufferQueue::ProxyConsumerListener::ProxyConsumerListener(
32 BufferQueue::ProxyConsumerListener::~ProxyConsumerListener() {}
34 void BufferQueue::ProxyConsumerListener::onFrameAvailable(
42 void BufferQueue::ProxyConsumerListener::onBuffersReleased() {
49 void BufferQueue::ProxyConsumerListener::onSidebandStreamChanged() {
56 void BufferQueue::createBufferQueue(sp<IGraphicBufferProducer>* outProducer,
60 "BufferQueue: outProducer must not be NULL");
62 "BufferQueue
[all...]
H A DConsumerBase.cpp67 sp<IConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener);
71 CB_LOGE("ConsumerBase: error connecting to BufferQueue: %s (%d)",
128 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) {
150 for (int i =0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) {
153 // disconnect from the BufferQueue
182 status_t ConsumerBase::acquireBufferLocked(BufferQueue::BufferItem *item,
262 if (slot < 0 || slot >= BufferQueue::NUM_BUFFER_SLOTS) {
H A DAndroid.mk10 BufferQueue.cpp \
H A DCpuConsumer.cpp108 BufferQueue::BufferItem b;
114 if (err == BufferQueue::NO_BUFFER_AVAILABLE) {
178 BufferQueue::INVALID_BUFFER_SLOT) {
251 // release the buffer if it hasn't already been freed by the BufferQueue.
262 ab.mSlot = BufferQueue::INVALID_BUFFER_SLOT;
/frameworks/native/include/gui/
H A DBufferItemConsumer.h32 class BufferQueue;
35 * BufferItemConsumer is a BufferQueue consumer endpoint that allows clients
36 * access to the whole BufferItem entry from BufferQueue. Multiple buffers may
45 typedef BufferQueue::BufferItem BufferItem;
48 enum { INVALID_BUFFER_SLOT = BufferQueue::INVALID_BUFFER_SLOT };
49 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };
95 // setDefaultBufferFormat allows the BufferQueue to create
H A DBufferQueue.h31 class BufferQueue { class in namespace:android
33 // BufferQueue will keep track of at most this value of buffers.
57 // BufferQueue object and the consumer object. The reason this can't be a weak
58 // reference in the BufferQueue class is because we're planning to expose the
59 // consumer side of a BufferQueue as a binder interface, which doesn't support
74 // BufferQueue manages a pool of gralloc memory slots to be used by
82 BufferQueue(); // Create through createBufferQueue
H A DCpuConsumer.h31 class BufferQueue;
34 * CpuConsumer is a BufferQueue consumer endpoint that allows direct CPU
35 * access to the underlying gralloc buffers provided by BufferQueue. Multiple
88 // setDefaultBufferFormat allows CpuConsumer's BufferQueue to create buffers
129 mSlot(BufferQueue::INVALID_BUFFER_SLOT),
H A DGLConsumer.h24 #include <gui/BufferQueue.h>
40 * GLConsumer consumes buffers of graphics data from a BufferQueue,
152 // the BufferQueue associated with this consumer.
198 // These functions call the corresponding BufferQueue implementation
243 virtual status_t acquireBufferLocked(BufferQueue::BufferItem *item,
262 status_t updateAndReleaseLocked(const BufferQueue::BufferItem& item);
358 // BufferQueue instance; these will be OR:d with any additional flags passed
380 // mCurrentFence is the fence received from BufferQueue in updateTexImage.
424 // GLConsumer maintains about a BufferQueue buffer slot.
450 // mEGLSlots stores the buffers that have been allocated by the BufferQueue
[all...]
H A DConsumerBase.h20 #include <gui/BufferQueue.h>
34 // ConsumerBase is a base class for BufferQueue consumer end-points. It
35 // handles common tasks like management of the connection to the BufferQueue
104 // BufferQueue. The onFrameAvailable and onBuffersReleased methods should
124 // abandonLocked puts the BufferQueue into the abandoned state, causing
149 // acquireBufferLocked fetches the next buffer from the BufferQueue and
160 // control to the BufferQueue.
163 // must take place when a buffer is released back to the BufferQueue. If
184 // ConsumerBase maintains about a BufferQueue buffer slot.
200 // mSlots stores the buffers that have been allocated by the BufferQueue
[all...]
/frameworks/av/media/libstagefright/omx/
H A DGraphicBufferSource.h22 #include <gui/BufferQueue.h>
34 * This class is used to feed OMX codecs from a Surface via BufferQueue.
39 * - Availability of a new frame of data from the BufferQueue (notified
49 class GraphicBufferSource : public BufferQueue::ConsumerListener {
62 // Returns the handle to the producer side of the BufferQueue. Buffers
70 // sitting in the BufferQueue, this will send them to the codec.
101 // in the BufferQueue) will be discarded until the suspension is lifted.
134 // BufferQueue::ConsumerListener interface, called when a new frame of
142 // BufferQueue::ConsumerListener interface, called when the client has
147 // BufferQueue
[all...]
H A DGraphicBufferSource.cpp77 BufferQueue::createBufferQueue(&mProducer, &mConsumer);
93 wp<BufferQueue::ConsumerListener> listener = static_cast<BufferQueue::ConsumerListener*>(this);
94 sp<BufferQueue::ProxyConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener);
98 ALOGE("Error connecting to BufferQueue: %s (%d)",
281 // Find matching entry in our cached copy of the BufferQueue slots.
282 // If we find a match, release that slot. If we don't, the BufferQueue
346 if (mOriginalTimeUs.size() > BufferQueue::NUM_BUFFER_SLOTS) {
362 BufferQueue
[all...]
/frameworks/av/services/camera/libcameraservice/gui/
H A DRingBufferConsumer.h42 * that during its duration it will not be released back into the BufferQueue).
57 typedef BufferQueue::BufferItem BufferItem;
59 enum { INVALID_BUFFER_SLOT = BufferQueue::INVALID_BUFFER_SLOT };
60 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };
79 // setDefaultBufferFormat allows the BufferQueue to create
84 // setConsumerUsage allows the BufferQueue consumer usage to be
137 return mBufferItem.mBuf == BufferQueue::INVALID_BUFFER_SLOT;
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlingerConsumer.cpp50 BufferQueue::BufferItem item;
57 if (err == BufferQueue::NO_BUFFER_AVAILABLE) {
59 } else if (err == BufferQueue::PRESENT_LATER) {
105 BufferQueue::BufferItem *item, nsecs_t presentWhen) {
H A DSurfaceFlingerConsumer.h50 virtual status_t acquireBufferLocked(BufferQueue::BufferItem *item, nsecs_t presentWhen);
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DFramebufferSurface.cpp89 BufferQueue::BufferItem item;
91 if (err == BufferQueue::NO_BUFFER_AVAILABLE) {
99 // If the BufferQueue has freed and reallocated a buffer in mCurrentSlot
107 if (mCurrentBufferSlot != BufferQueue::INVALID_BUFFER_SLOT &&
143 mCurrentBufferSlot = BufferQueue::INVALID_BUFFER_SLOT;
150 mCurrentBufferSlot != BufferQueue::INVALID_BUFFER_SLOT) {
/frameworks/av/cmds/screenrecord/
H A DEglWindow.h20 #include <gui/BufferQueue.h>
H A DFrameOutput.h23 #include <gui/BufferQueue.h>
/frameworks/rs/
H A DrsGrallocConsumer.h36 * CpuConsumer is a BufferQueue consumer endpoint that allows direct CPU
37 * access to the underlying gralloc buffers provided by BufferQueue. Multiple
67 mSlot(BufferQueue::INVALID_BUFFER_SLOT),
H A DrsGrallocConsumer.cpp65 if (mAcquiredBuffer.mSlot != BufferQueue::INVALID_BUFFER_SLOT) {
72 BufferQueue::BufferItem b;
76 if (err == BufferQueue::NO_BUFFER_AVAILABLE) {
125 assert(mAcquiredBuffer.mSlot == BufferQueue::INVALID_BUFFER_SLOT);
179 // release the buffer if it hasn't already been freed by the BufferQueue.
189 mAcquiredBuffer.mSlot = BufferQueue::INVALID_BUFFER_SLOT;
/frameworks/av/media/libstagefright/
H A DSurfaceMediaSource.cpp43 mCurrentSlot(BufferQueue::INVALID_BUFFER_SLOT),
59 BufferQueue::createBufferQueue(&mProducer, &mConsumer);
71 sp<BufferQueue::ProxyConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener);
75 ALOGE("SurfaceMediaSource: error connecting to BufferQueue: %s (%d)",
293 BufferQueue::BufferItem item;
299 if (err == BufferQueue::NO_BUFFER_AVAILABLE) {
412 for (int id = 0; id < BufferQueue::NUM_BUFFER_SLOTS; id++) {
450 // Part of the BufferQueue::ConsumerListener
468 // the prodcuer is disconnecting from the BufferQueue
[all...]
/frameworks/native/libs/gui/tests/
H A DStreamSplitter_test.cpp20 #include <gui/BufferQueue.h>
83 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer, allocator);
87 BufferQueue::createBufferQueue(&outputProducer, &outputConsumer, allocator);
143 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer, allocator);
148 BufferQueue::createBufferQueue(&outputProducers[output],
209 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer);
213 BufferQueue::createBufferQueue(&outputProducer, &outputConsumer);
H A DIGraphicBufferProducer_test.cpp27 #include <gui/BufferQueue.h>
86 BufferQueue::createBufferQueue(&mProducer, &mConsumer);
282 EXPECT_GE(BufferQueue::NUM_BUFFER_SLOTS, value);
321 // but not by BufferQueue::query
339 EXPECT_GT(BufferQueue::NUM_BUFFER_SLOTS, dequeuedSlot);
381 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(BufferQueue::NUM_BUFFER_SLOTS,
513 ASSERT_OK(mProducer->setBufferCount(BufferQueue::NUM_BUFFER_SLOTS));
516 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; ++i) {
539 EXPECT_EQ(BAD_VALUE, mProducer->setBufferCount(BufferQueue::NUM_BUFFER_SLOTS + 1))
540 << "bufferCount: " << BufferQueue
[all...]
H A DSurfaceTextureGL.h41 BufferQueue::createBufferQueue(&producer, &mConsumer);
/frameworks/av/include/media/stagefright/
H A DSurfaceMediaSource.h21 #include <gui/BufferQueue.h>
38 // enforce this as in BufferQueue, dequeue can be used by Surface
124 // Implementation of the BufferQueue::ConsumerListener interface. These
126 // BufferQueue.
129 // Used as a hook to BufferQueue::disconnect()
149 // A BufferQueue, represented by these interfaces, is the exchange point
160 SlotData mSlots[BufferQueue::NUM_BUFFER_SLOTS];
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3ZslStream.h48 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };

Completed in 8208 milliseconds

123