Home
last modified time | relevance | path

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

123

/frameworks/native/include/gui/
DBufferItemConsumer.h32 class BufferQueue; variable
45 typedef BufferQueue::BufferItem BufferItem;
47 enum { INVALID_BUFFER_SLOT = BufferQueue::INVALID_BUFFER_SLOT };
48 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };
56 BufferItemConsumer(const sp<BufferQueue>& bq, uint32_t consumerUsage,
57 int bufferCount = BufferQueue::MIN_UNDEQUEUED_BUFFERS,
DGLConsumer.h239 virtual status_t acquireBufferLocked(BufferQueue::BufferItem *item,
258 status_t updateAndReleaseLocked(const BufferQueue::BufferItem& item);
419 EglSlot mEglSlots[BufferQueue::NUM_BUFFER_SLOTS];
DCpuConsumer.h31 class BufferQueue; variable
125 mSlot(BufferQueue::INVALID_BUFFER_SLOT), in AcquiredBuffer()
DBufferQueue.h40 class BufferQueue : public BnGraphicBufferProducer,
82 BufferQueue(const sp<IGraphicBufferAlloc>& allocator = NULL);
83 virtual ~BufferQueue();
/frameworks/native/libs/gui/
DBufferQueue.cpp68 BufferQueue::BufferQueue(const sp<IGraphicBufferAlloc>& allocator) : in BufferQueue() function in android::BufferQueue
100 BufferQueue::~BufferQueue() { in ~BufferQueue()
104 status_t BufferQueue::setDefaultMaxBufferCountLocked(int count) { in setDefaultMaxBufferCountLocked()
115 void BufferQueue::setConsumerName(const String8& name) { in setConsumerName()
120 status_t BufferQueue::setDefaultBufferFormat(uint32_t defaultFormat) { in setDefaultBufferFormat()
126 status_t BufferQueue::setConsumerUsageBits(uint32_t usage) { in setConsumerUsageBits()
132 status_t BufferQueue::setTransformHint(uint32_t hint) { in setTransformHint()
139 status_t BufferQueue::setBufferCount(int bufferCount) { in setBufferCount()
194 int BufferQueue::query(int what, int* outValue) in query()
231 status_t BufferQueue::requestBuffer(int slot, sp<GraphicBuffer>* buf) { in requestBuffer()
[all …]
DConsumerBase.cpp65 sp<IConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener); in ConsumerBase()
126 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in onBuffersReleased()
145 for (int i =0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in abandonLocked()
177 status_t ConsumerBase::acquireBufferLocked(BufferQueue::BufferItem *item, in acquireBufferLocked()
246 if (err == BufferQueue::STALE_BUFFER_SLOT) { in releaseBufferLocked()
257 if (slot < 0 || slot >= BufferQueue::NUM_BUFFER_SLOTS) { in stillTracking()
DGLConsumer.cpp135 mCurrentTexture(BufferQueue::INVALID_BUFFER_SLOT), in GLConsumer()
176 BufferQueue::BufferItem item; in updateTexImage()
183 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in updateTexImage()
232 if (buf != BufferQueue::INVALID_BUFFER_SLOT) { in releaseTexImage()
255 mCurrentTexture = BufferQueue::INVALID_BUFFER_SLOT; in releaseTexImage()
301 status_t GLConsumer::acquireBufferLocked(BufferQueue::BufferItem *item, in acquireBufferLocked()
349 status_t GLConsumer::updateAndReleaseLocked(const BufferQueue::BufferItem& item) in updateAndReleaseLocked()
404 if (mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in updateAndReleaseLocked()
443 if (mCurrentTexture == BufferQueue::INVALID_BUFFER_SLOT) { in bindTextureImageLocked()
501 mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in setReleaseFence()
[all …]
DCpuConsumer.cpp80 BufferQueue::BufferItem b; in lockNextBuffer()
86 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in lockNextBuffer()
137 BufferQueue::INVALID_BUFFER_SLOT) { in lockNextBuffer()
212 ab.mSlot = BufferQueue::INVALID_BUFFER_SLOT; in releaseAcquiredBufferLocked()
/frameworks/av/media/libstagefright/omx/
DGraphicBufferSource.h49 class GraphicBufferSource : public BufferQueue::ConsumerListener {
173 status_t submitBuffer_l(const BufferQueue::BufferItem &item, int cbi);
179 void setLatestSubmittedBuffer_l(const BufferQueue::BufferItem &item);
181 int64_t getTimestamp(const BufferQueue::BufferItem &item);
198 sp<BufferQueue> mBufferQueue;
212 sp<GraphicBuffer> mBufferSlot[BufferQueue::NUM_BUFFER_SLOTS];
DGraphicBufferSource.cpp66 mBufferQueue = new BufferQueue(); in GraphicBufferSource()
83 wp<BufferQueue::ConsumerListener> listener = static_cast<BufferQueue::ConsumerListener*>(this); in GraphicBufferSource()
84 sp<BufferQueue::ProxyConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener); in GraphicBufferSource()
323 if (mOriginalTimeUs.size() > BufferQueue::NUM_BUFFER_SLOTS) { in codecBufferFilled()
339 BufferQueue::BufferItem item; in suspend()
342 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in suspend()
389 BufferQueue::BufferItem item; in fillCodecBuffer_l()
391 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in fillCodecBuffer_l()
461 BufferQueue::BufferItem item; in repeatLatestSubmittedBuffer_l()
492 const BufferQueue::BufferItem &item) { in setLatestSubmittedBuffer_l()
[all …]
/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);
137 return mBufferItem.mBuf == BufferQueue::INVALID_BUFFER_SLOT; in isEmpty()
/frameworks/native/libs/gui/tests/
DBufferQueue_test.cpp43 mBQ = new BufferQueue(); in SetUp()
55 sp<BufferQueue> mBQ;
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()
DSurface_test.cpp91 sp<BufferQueue> bq = new BufferQueue(); in TEST_F()
139 sp<BufferQueue> bq = new BufferQueue(); in TEST_F()
/frameworks/native/services/surfaceflinger/
DSurfaceFlingerConsumer.cpp48 BufferQueue::BufferItem item; in updateTexImage()
55 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in updateTexImage()
57 } else if (err == BufferQueue::PRESENT_LATER) { in updateTexImage()
103 BufferQueue::BufferItem *item, nsecs_t presentWhen) { in acquireBufferLocked()
DSurfaceFlingerConsumer.h30 SurfaceFlingerConsumer(const sp<BufferQueue>& bq, uint32_t tex) in SurfaceFlingerConsumer()
43 virtual status_t acquireBufferLocked(BufferQueue::BufferItem *item, nsecs_t presentWhen);
DSurfaceTextureLayer.h36 class SurfaceTextureLayer : public BufferQueue {
/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()
DVirtualDisplaySurface.h76 const sp<BufferQueue>& bq,
155 sp<GraphicBuffer> mProducerBuffers[BufferQueue::NUM_BUFFER_SLOTS];
/frameworks/rs/
DrsGrallocConsumer.cpp60 if (mAcquiredBuffer.mSlot != BufferQueue::INVALID_BUFFER_SLOT) { in lockNextBuffer()
67 BufferQueue::BufferItem b; in lockNextBuffer()
71 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in lockNextBuffer()
120 assert(mAcquiredBuffer.mSlot == BufferQueue::INVALID_BUFFER_SLOT); in lockNextBuffer()
184 mAcquiredBuffer.mSlot = BufferQueue::INVALID_BUFFER_SLOT; in releaseAcquiredBufferLocked()
/frameworks/av/media/libstagefright/
DSurfaceMediaSource.cpp41 mCurrentSlot(BufferQueue::INVALID_BUFFER_SLOT), in SurfaceMediaSource()
57 mBufferQueue = new BufferQueue(); in SurfaceMediaSource()
69 sp<BufferQueue::ProxyConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener); in SurfaceMediaSource()
288 BufferQueue::BufferItem item; in read()
294 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in read()
407 for (int id = 0; id < BufferQueue::NUM_BUFFER_SLOTS; id++) { in signalBufferReturned()
472 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in onBuffersReleased()
/frameworks/av/include/media/stagefright/
DSurfaceMediaSource.h114 sp<BufferQueue> getBufferQueue() const { return mBufferQueue; } in getBufferQueue()
147 sp<BufferQueue> mBufferQueue;
155 SlotData mSlots[BufferQueue::NUM_BUFFER_SLOTS];
/frameworks/base/core/jni/android/graphics/
DSurfaceTexture.cpp69 const sp<BufferQueue>& bq) in SurfaceTexture_setBufferQueue()
71 BufferQueue* const p = in SurfaceTexture_setBufferQueue()
72 (BufferQueue*)env->GetIntField(thiz, fields.bufferQueue); in SurfaceTexture_setBufferQueue()
102 return (BufferQueue*)env->GetIntField(thiz, fields.bufferQueue); in SurfaceTexture_getProducer()
232 sp<BufferQueue> bq = new BufferQueue(); in SurfaceTexture_init()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3InputStream.cpp202 mTotalBufferCount = BufferQueue::MIN_UNDEQUEUED_BUFFERS + in configureQueueLocked()
208 sp<BufferQueue> bq = new BufferQueue(); in configureQueueLocked()
/frameworks/av/media/libstagefright/wifi-display/source/
DPlaybackSession.h28 struct BufferQueue;
114 sp<BufferQueue> mBufferQueue;
/frameworks/base/media/jni/
Dandroid_media_ImageReader.cpp89 void setBufferQueue(const sp<BufferQueue>& bq) { mBufferQueue = bq; } in setBufferQueue()
90 BufferQueue* getBufferQueue() { return mBufferQueue.get(); } in getBufferQueue()
107 sp<BufferQueue> mBufferQueue;
225 static BufferQueue* ImageReader_getBufferQueue(JNIEnv* env, jobject thiz) in ImageReader_getBufferQueue()
616 sp<BufferQueue> bq = new BufferQueue(); in ImageReader_init()
796 BufferQueue* bq = ImageReader_getBufferQueue(env, thiz); in ImageReader_getSurface()

123