Home
last modified time | relevance | path

Searched refs:BufferItem (Results 1 – 25 of 89) sorted by relevance

1234

/frameworks/native/libs/gui/include/gui/
DBufferItem.h36 class BufferItem : public Flattenable<BufferItem> {
37 friend class Flattenable<BufferItem>;
47 BufferItem();
48 ~BufferItem();
49 BufferItem(const BufferItem&) = default;
50 BufferItem& operator=(const BufferItem&) = default;
DConsumerBase.h46 virtual void onFrameAvailable(const BufferItem& item) = 0;
47 virtual void onFrameReplaced(const BufferItem& /* item */) {} in onFrameReplaced()
142 virtual void onFrameAvailable(const BufferItem& item) override;
143 virtual void onFrameReplaced(const BufferItem& item) override;
190 virtual status_t acquireBufferLocked(BufferItem *item, nsecs_t presentWhen,
DIConsumerListener.h29 class BufferItem; variable
54 virtual void onFrameAvailable(const BufferItem& item) = 0; /* Asynchronous */
62 virtual void onFrameReplaced(const BufferItem& /* item */) {} /* Asynchronous */ in onFrameReplaced() argument
DBufferQueue.h34 enum { INVALID_BUFFER_SLOT = BufferItem::INVALID_BUFFER_SLOT };
62 void onFrameAvailable(const BufferItem& item) override;
63 void onFrameReplaced(const BufferItem& item) override;
DBufferItemConsumer.h76 status_t acquireBuffer(BufferItem* item, nsecs_t presentWhen,
85 status_t releaseBuffer(const BufferItem &item,
DIGraphicBufferConsumer.h33 class BufferItem; variable
80 virtual status_t acquireBuffer(BufferItem* buffer, nsecs_t presentWhen,
DBufferQueueCore.h64 enum { INVALID_BUFFER_SLOT = BufferItem::INVALID_BUFFER_SLOT };
78 typedef Vector<BufferItem> Fifo;
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.h121 const BufferItem& item) : in PinnedBufferItem()
137 BufferItem& getBufferItem() { return mBufferItem; } in getBufferItem()
138 const BufferItem& getBufferItem() const { return mBufferItem; } in getBufferItem()
142 BufferItem mBufferItem;
165 virtual void onFrameAvailable(const BufferItem& item);
167 void pinBufferLocked(const BufferItem& item);
168 void unpinBuffer(const BufferItem& item);
175 struct RingBufferItem : public BufferItem {
176 RingBufferItem() : BufferItem(), mPinCount(0) {} in RingBufferItem()
/frameworks/av/media/libstagefright/filters/
DGraphicBufferListener.h34 virtual void onFrameAvailable(const BufferItem& item);
44 BufferItem getBufferItem();
45 sp<GraphicBuffer> getBuffer(BufferItem item);
46 status_t releaseBuffer(BufferItem item);
DGraphicBufferListener.cpp66 void GraphicBufferListener::onFrameAvailable(const BufferItem& /* item */) { in onFrameAvailable() argument
89 BufferItem GraphicBufferListener::getBufferItem() { in getBufferItem()
90 BufferItem item; in getBufferItem()
130 sp<GraphicBuffer> GraphicBufferListener::getBuffer(BufferItem item) { in getBuffer()
143 status_t GraphicBufferListener::releaseBuffer(BufferItem item) { in releaseBuffer()
/frameworks/native/libs/gui/
DBufferItem.cpp41 BufferItem::BufferItem() : in BufferItem() function in android::BufferItem
62 BufferItem::~BufferItem() {} in ~BufferItem()
70 size_t BufferItem::getPodSize() const { in getPodSize()
92 size_t BufferItem::getFlattenedSize() const { in getFlattenedSize()
108 size_t BufferItem::getFdCount() const { in getFdCount()
125 status_t BufferItem::flatten( in flatten()
129 if (size < BufferItem::getFlattenedSize()) { in flatten()
193 status_t BufferItem::unflatten( in unflatten()
258 const char* BufferItem::scalingModeName(uint32_t scalingMode) { in scalingModeName()
DIConsumerListener.cpp47 void onFrameAvailable(const BufferItem& item) override { in onFrameAvailable()
52 void onFrameReplaced(const BufferItem& item) override { in onFrameReplaced()
DBufferItemConsumer.cpp58 status_t BufferItemConsumer::acquireBuffer(BufferItem *item, in acquireBuffer()
88 status_t BufferItemConsumer::releaseBuffer(const BufferItem &item, in releaseBuffer()
/frameworks/base/media/jni/
Dandroid_media_ImageReader.cpp96 virtual void onFrameAvailable(const BufferItem& item);
98 BufferItem* getBufferItem();
99 void returnBufferItem(BufferItem* buffer);
124 List<BufferItem*> mBuffers;
144 BufferItem* buffer = new BufferItem; in JNIImageReaderContext()
174 BufferItem* JNIImageReaderContext::getBufferItem() { in getBufferItem()
179 List<BufferItem*>::iterator it = mBuffers.begin(); in getBufferItem()
180 BufferItem* buffer = *it; in getBufferItem()
185 void JNIImageReaderContext::returnBufferItem(BufferItem* buffer) { in returnBufferItem()
204 for (List<BufferItem *>::iterator it = mBuffers.begin(); in ~JNIImageReaderContext()
[all …]
Dandroid_media_Utils.h134 status_t lockImageFromBuffer(BufferItem* bufferItem, uint32_t inUsage,
137 int getBufferWidth(BufferItem *buffer);
139 int getBufferHeight(BufferItem *buffer);
/frameworks/av/media/ndk/
DNdkImageReaderPriv.h82 BufferItem* getBufferItemLocked();
83 void returnBufferItemLocked(BufferItem* buffer);
91 static int getBufferWidth(BufferItem* buffer);
92 static int getBufferHeight(BufferItem* buffer);
114 List<BufferItem*> mBuffers;
129 void onFrameAvailable(const BufferItem& item) override;
DNdkImageReader.cpp101 AImageReader::FrameListener::onFrameAvailable(const BufferItem& /*item*/) { in onFrameAvailable() argument
313 BufferItem* buffer = new BufferItem; in init()
371 BufferItem* buffer = getBufferItemLocked(); in acquireImageLocked()
466 BufferItem*
473 BufferItem* buffer = *it; in getBufferItemLocked()
479 AImageReader::returnBufferItemLocked(BufferItem* buffer) { in returnBufferItemLocked()
485 BufferItem* buffer = image->mBuffer; in releaseImageLocked()
526 AImageReader::getBufferWidth(BufferItem* buffer) { in getBufferWidth()
537 AImageReader::getBufferHeight(BufferItem* buffer) { in getBufferHeight()
DNdkImagePriv.h35 AImage(AImageReader* reader, int32_t format, uint64_t usage, BufferItem* buffer,
78 BufferItem* mBuffer;
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaSync.h34 class BufferItem; variable
150 virtual void onFrameAvailable(const BufferItem &item);
208 List<BufferItem> mBufferItems;
251 void renderOneBufferItem_l(const BufferItem &bufferItem);
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3InputStream.cpp70 BufferItem bufferItem; in getInputBufferLocked()
111 BufferItem bufferItem; in returnBufferCheckedLocked()
114 Vector<BufferItem>::iterator it, end; in returnBufferCheckedLocked()
119 const BufferItem& tmp = *it; in returnBufferCheckedLocked()
DCamera3StreamSplitter.cpp325 const BufferItem& bufferItem, size_t surfaceId) { in outputBufferLocked()
414 if (slot != BufferItem::INVALID_BUFFER_SLOT) { in attachBufferToOutputs()
460 void Camera3StreamSplitter::onFrameAvailable(const BufferItem& /*item*/) { in onFrameAvailable() argument
465 BufferItem bufferItem; in onFrameAvailable()
599 int slot = BufferItem::INVALID_BUFFER_SLOT; in onBufferReleasedByOutput()
630 int slot = BufferItem::INVALID_BUFFER_SLOT; in onBufferReplacedLocked()
689 } else if (res != OK || (slot == BufferItem::INVALID_BUFFER_SLOT)) { in handleOutputDequeueStatusLocked()
720 return BufferItem::INVALID_BUFFER_SLOT; in getSlotForOutputLocked()
DCamera3StreamSplitter.h102 void onFrameAvailable(const BufferItem& item) override;
212 const BufferItem& bufferItem, size_t surfaceId);
239 std::unordered_map<uint64_t, BufferItem> mInputSlots;
/frameworks/native/services/surfaceflinger/
DBufferLayerConsumer.h63 virtual bool reject(const sp<GraphicBuffer>& buf, const BufferItem& item) = 0;
191 virtual status_t acquireBufferLocked(BufferItem* item, nsecs_t presentWhen,
210 status_t updateAndReleaseLocked(const BufferItem& item,
DBufferLayer.h143 void onFrameAvailable(const BufferItem& item) override;
144 void onFrameReplaced(const BufferItem& item) override;
/frameworks/native/libs/gui/tests/
DBufferQueue_test.cpp75 const BufferItem& item) { in testBufferItem()
162 BufferItem item; in TEST_F()
187 BufferItem item; in TEST_F()
238 BufferItem item; in TEST_F()
275 BufferItem item; in TEST_F()
365 BufferItem item; in TEST_F()
400 BufferItem item; in TEST_F()
461 BufferItem item; in TEST_F()
592 BufferItem item; in TEST_F()
634 BufferItem item; in TEST_F()
[all …]

1234