Home
last modified time | relevance | path

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

123

/frameworks/native/libs/gui/
DCpuConsumer.cpp93 PixelFormat format = item.mGraphicBuffer->getPixelFormat(); in lockBufferItem()
97 status_t err = item.mGraphicBuffer->lockAsyncYCbCr(GraphicBuffer::USAGE_SW_READ_OFTEN, in lockBufferItem()
121 status_t err = item.mGraphicBuffer->lockAsync(GraphicBuffer::USAGE_SW_READ_OFTEN, in lockBufferItem()
129 outBuffer->stride = item.mGraphicBuffer->getStride(); in lockBufferItem()
136 outBuffer->width = item.mGraphicBuffer->getWidth(); in lockBufferItem()
137 outBuffer->height = item.mGraphicBuffer->getHeight(); in lockBufferItem()
175 if (b.mGraphicBuffer == nullptr) { in lockNextBuffer()
176 b.mGraphicBuffer = mSlots[b.mSlot].mGraphicBuffer; in lockNextBuffer()
190 ab.mGraphicBuffer = b.mGraphicBuffer; in lockNextBuffer()
212 status_t err = ab.mGraphicBuffer->unlockAsync(&fenceFd); in unlockBuffer()
[all …]
DBufferItemConsumer.cpp83 item->mGraphicBuffer = mSlots[item->mSlot].mGraphicBuffer; in acquireBuffer()
94 err = addReleaseFenceLocked(item.mSlot, item.mGraphicBuffer, releaseFence); in releaseBuffer()
99 err = releaseBufferLocked(item.mSlot, item.mGraphicBuffer, EGL_NO_DISPLAY, in releaseBuffer()
110 if (listener != nullptr && mSlots[slotIndex].mGraphicBuffer != nullptr) { in freeBufferLocked()
113 listener->onBufferFreed(mSlots[slotIndex].mGraphicBuffer); in freeBufferLocked()
DBufferItem.cpp42 mGraphicBuffer(nullptr), in BufferItem()
94 if (mGraphicBuffer != nullptr) { in getFlattenedSize()
95 size += mGraphicBuffer->getFlattenedSize(); in getFlattenedSize()
110 if (mGraphicBuffer != nullptr) { in getFdCount()
111 count += mGraphicBuffer->getFdCount(); in getFdCount()
140 if (mGraphicBuffer != nullptr) { in flatten()
141 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count); in flatten()
204 mGraphicBuffer = new GraphicBuffer(); in unflatten()
205 status_t err = mGraphicBuffer->unflatten(buffer, size, fds, count); in unflatten()
DStreamSplitter.cpp135 bufferItem.mGraphicBuffer->getId()); in onFrameAvailable()
142 mBuffers.add(bufferItem.mGraphicBuffer->getId(), in onFrameAvailable()
143 new BufferTracker(bufferItem.mGraphicBuffer)); in onFrameAvailable()
155 status = (*output)->attachBuffer(&slot, bufferItem.mGraphicBuffer); in onFrameAvailable()
161 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable()
176 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable()
185 bufferItem.mGraphicBuffer->getId(), output->get()); in onFrameAvailable()
DBufferQueueCore.cpp135 current->mGraphicBuffer.get()); in dumpState()
145 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dumpState()
162 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dumpState()
171 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dumpState()
212 mSlots[slot].mGraphicBuffer.clear(); in clearBufferSlotLocked()
363 if (mSlots[slot].mGraphicBuffer != nullptr) { in validateConsistencyLocked()
385 if (mSlots[slot].mGraphicBuffer != nullptr) { in validateConsistencyLocked()
408 if (mSlots[slot].mGraphicBuffer == nullptr) { in validateConsistencyLocked()
432 if (mSlots[slot].mGraphicBuffer == nullptr && !mIsAllocating) { in validateConsistencyLocked()
DConsumerBase.cpp99 mSlots[slotIndex].mGraphicBuffer = nullptr; in freeBufferLocked()
355 if (item->mGraphicBuffer != nullptr) { in acquireBufferLocked()
356 if (mSlots[item->mSlot].mGraphicBuffer != nullptr) { in acquireBufferLocked()
359 mSlots[item->mSlot].mGraphicBuffer = item->mGraphicBuffer; in acquireBufferLocked()
471 return (mSlots[slot].mGraphicBuffer != nullptr && in stillTracking()
472 mSlots[slot].mGraphicBuffer->handle == graphicBuffer->handle); in stillTracking()
DGLConsumer.cpp263 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in releaseTexImage()
336 if (item->mGraphicBuffer != nullptr) { in acquireBufferLocked()
338 mEglSlots[slot].mEglImage = new EglImage(item->mGraphicBuffer); in acquireBufferLocked()
367 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked()
375 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked()
389 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked()
402 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked()
411 slot, mSlots[slot].mGraphicBuffer->handle); in updateAndReleaseLocked()
938 mGraphicBuffer(graphicBuffer), in EglImage()
971 mEglImage = createImage(mEglDisplay, mGraphicBuffer); in createIfNeeded()
[all …]
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestBuffer.cpp401 mGraphicBuffer = new GraphicBuffer(mBufferArea.width, mBufferArea.height, in generateBuffer()
405 int ret = mGraphicBuffer->initCheck(); in generateBuffer()
409 if (!mGraphicBuffer->handle) { in generateBuffer()
415 mGraphicBuffer->lock(static_cast<uint32_t>(BufferUsage::CPU_WRITE_OFTEN), in generateBuffer()
418 uint32_t stride = mGraphicBuffer->getStride(); in generateBuffer()
453 mGraphicBuffer->unlock(); in generateBuffer()
455 mHandle = mGraphicBuffer->handle; in generateBuffer()
698 mGraphicBuffer = new GraphicBuffer(bufferArea.width, bufferArea.height, in get()
702 int ret = mGraphicBuffer->initCheck(); in get()
706 if (!mGraphicBuffer->handle) in get()
[all …]
DHwc2TestBuffer.h44 android::sp<android::GraphicBuffer> mGraphicBuffer; variable
67 android::sp<android::GraphicBuffer> mGraphicBuffer;
83 return mGraphicBuffer; in graphicBuffer()
87 android::sp<android::GraphicBuffer> mGraphicBuffer;
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DRenderSurface.cpp153 return mGraphicBuffer; in dequeueBuffer()
156 ALOGW_IF(mGraphicBuffer != nullptr, "Clobbering a non-null pointer to a buffer [%p].", in dequeueBuffer()
157 mGraphicBuffer->getNativeBuffer()->handle); in dequeueBuffer()
158 mGraphicBuffer = GraphicBuffer::from(buffer); in dequeueBuffer()
162 return mGraphicBuffer; in dequeueBuffer()
173 if (mGraphicBuffer == nullptr) { in queueBuffer()
185 if (mGraphicBuffer == nullptr) { in queueBuffer()
190 mGraphicBuffer->getNativeBuffer(), dup(readyFence)); in queueBuffer()
200 mGraphicBuffer->getNativeBuffer(), dup(readyFence)); in queueBuffer()
204 mGraphicBuffer = nullptr; in queueBuffer()
[all …]
/frameworks/av/media/libmedia/
DOMXBuffer.cpp56 mGraphicBuffer(gbuf) { in OMXBuffer()
93 if (mGraphicBuffer == NULL) { in writeToParcel()
100 return parcel->write(*mGraphicBuffer); in writeToParcel()
151 mGraphicBuffer = buffer; in readFromParcel()
153 mGraphicBuffer = nullptr; in readFromParcel()
180 mGraphicBuffer = std::move(source.mGraphicBuffer); in operator =()
/frameworks/native/services/surfaceflinger/
DBufferLayerConsumer.cpp142 if (rejecter && rejecter->reject(mSlots[slot].mGraphicBuffer, item)) { in updateTexImage()
143 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer); in updateTexImage()
219 if (item->mGraphicBuffer != nullptr) { in acquireBufferLocked()
222 mImages[item->mSlot]->graphicBuffer()->getId() != item->mGraphicBuffer->getId()) { in acquireBufferLocked()
223 mImages[item->mSlot] = std::make_shared<Image>(item->mGraphicBuffer, mRE); in acquireBufferLocked()
240 slot, mSlots[slot].mGraphicBuffer->handle); in updateAndReleaseLocked()
491 if (item.mGraphicBuffer != nullptr && item.mSlot != BufferQueue::INVALID_BUFFER_SLOT) { in onBufferAvailable()
495 oldImage->graphicBuffer()->getId() != item.mGraphicBuffer->getId()) { in onBufferAvailable()
496 mImages[item.mSlot] = std::make_shared<Image>(item.mGraphicBuffer, mRE); in onBufferAvailable()
535 : mGraphicBuffer(graphicBuffer), mRE(engine) { in Image()
[all …]
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp172 if (item.mGraphicBuffer == find.mGraphicBuffer) { in pinBufferLocked()
233 item.mGraphicBuffer, item.mFence); in releaseOldestBufferLocked()
247 err = releaseBufferLocked(item.mSlot, item.mGraphicBuffer, in releaseOldestBufferLocked()
319 item.mGraphicBuffer = mSlots[item.mSlot].mGraphicBuffer; in onFrameAvailable()
335 if (item.mGraphicBuffer == find.mGraphicBuffer) { in unpinBuffer()
337 item.mGraphicBuffer, item.mFence); in unpinBuffer()
/frameworks/base/libs/hwui/surfacetexture/
DImageConsumer.cpp44 if (item->mGraphicBuffer != nullptr) { in onAcquireBufferLocked()
212 mImageSlots[slot].createIfNeeded(st.mSlots[slot].mGraphicBuffer, in dequeueImage()
231 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueImage()
254 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueImage()
261 st.mCurrentTexture, st.mSlots[st.mCurrentTexture].mGraphicBuffer, releaseFence); in dequeueImage()
264 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueImage()
272 st.mCurrentTexture, st.mSlots[st.mCurrentTexture].mGraphicBuffer, display, in dequeueImage()
294 mImageSlots[slot].createIfNeeded(st.mSlots[slot].mGraphicBuffer, item.mDataSpace, true, in dequeueImage()
DEGLConsumer.h184 const sp<GraphicBuffer>& graphicBuffer() { return mGraphicBuffer; } in graphicBuffer()
186 return mGraphicBuffer == nullptr ? nullptr : mGraphicBuffer->handle; in graphicBufferHandle()
202 sp<GraphicBuffer> mGraphicBuffer; variable
DEGLConsumer.cpp152 err = st.releaseBufferLocked(buf, st.mSlots[buf].mGraphicBuffer, mEglDisplay, in releaseTexImage()
217 if (item->mGraphicBuffer != nullptr || mEglSlots[slot].mEglImage.get() == nullptr) { in onAcquireBufferLocked()
218 mEglSlots[slot].mEglImage = new EglImage(st.mSlots[slot].mGraphicBuffer); in onAcquireBufferLocked()
236 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
243 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
256 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked()
268 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, in updateAndReleaseLocked()
277 slot, st.mSlots[slot].mGraphicBuffer->handle); in updateAndReleaseLocked()
434 mEglSlots[slot].mEglImage = new EglImage(st.mSlots[slot].mGraphicBuffer); in attachToContext()
605 : mGraphicBuffer(graphicBuffer), mEglImage(EGL_NO_IMAGE_KHR), mEglDisplay(EGL_NO_DISPLAY) {} in EglImage()
[all …]
/frameworks/av/media/libstagefright/
DMediaSync.cpp353 returnBufferToInput_l(bufferItem->mGraphicBuffer, bufferItem->mFence); in flush()
563 bufferItem->mGraphicBuffer, bufferItem->mFence); in onDrainVideo_l()
623 ALOGV("acquired buffer %#llx from input", (long long)bufferItem.mGraphicBuffer->getId()); in onFrameAvailableFromInput()
635 if (mBuffersFromInput.indexOfKey(bufferItem.mGraphicBuffer->getId()) >= 0) { in onFrameAvailableFromInput()
642 mBuffersFromInput.add(bufferItem.mGraphicBuffer->getId(), bufferItem.mGraphicBuffer); in onFrameAvailableFromInput()
648 returnBufferToInput_l(bufferItem.mGraphicBuffer, bufferItem.mFence); in onFrameAvailableFromInput()
671 mOutput->setGenerationNumber(bufferItem.mGraphicBuffer->getGenerationNumber()); in renderOneBufferItem_l()
672 status_t status = mOutput->attachBuffer(&slot, bufferItem.mGraphicBuffer); in renderOneBufferItem_l()
681 returnBufferToInput_l(bufferItem.mGraphicBuffer, bufferItem.mFence); in renderOneBufferItem_l()
689 if (mBuffersSentToOutput.indexOfKey(bufferItem.mGraphicBuffer->getId()) >= 0) { in renderOneBufferItem_l()
[all …]
DFrameRenderTracker.cpp60 if (it->mGraphicBuffer->handle == buf->handle) { in updateInfoForDequeuedBuffer()
180 it->mGraphicBuffer == NULL ? NULL : it->mGraphicBuffer->handle, in dumpRenderQueue()
184 it->mGraphicBuffer->handle, (long long)it->mMediaTimeUs, in dumpRenderQueue()
188 it->mGraphicBuffer->handle, (long long)it->mMediaTimeUs, it->mIndex); in dumpRenderQueue()
/frameworks/av/media/libstagefright/include/media/stagefright/
DFrameRenderTracker.h65 mGraphicBuffer(graphicBuffer), in RenderedFrameInfo()
74 mGraphicBuffer(NULL), in RenderedFrameInfo()
82 sp<GraphicBuffer> mGraphicBuffer; member
/frameworks/native/libs/gui/include/gui/
DGLConsumer.h315 const sp<GraphicBuffer>& graphicBuffer() { return mGraphicBuffer; } in graphicBuffer()
317 return mGraphicBuffer == nullptr ? nullptr : mGraphicBuffer->handle; in graphicBufferHandle()
334 sp<GraphicBuffer> mGraphicBuffer; variable
DBufferSlot.h177 : mGraphicBuffer(nullptr), in BufferSlot()
190 sp<GraphicBuffer> mGraphicBuffer; member
DCpuConsumer.h126 sp<GraphicBuffer> mGraphicBuffer; member
136 mGraphicBuffer.clear(); in reset()
/frameworks/av/media/codec2/sfplugin/
DC2OMXNode.cpp346 && omxBuf.mGraphicBuffer != nullptr) { in emptyBuffer()
349 omxBuf.mGraphicBuffer->handle, in emptyBuffer()
350 omxBuf.mGraphicBuffer->width, in emptyBuffer()
351 omxBuf.mGraphicBuffer->height, in emptyBuffer()
352 omxBuf.mGraphicBuffer->format, in emptyBuffer()
353 omxBuf.mGraphicBuffer->usage, in emptyBuffer()
354 omxBuf.mGraphicBuffer->stride); in emptyBuffer()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3StreamSplitter.cpp355 uint64_t bufferId = bufferItem.mGraphicBuffer->getId(); in outputBufferLocked()
382 decrementBufRefCountLocked(bufferItem.mGraphicBuffer->getId(), surfaceId); in outputBufferLocked()
494 if (bufferItem.mGraphicBuffer != nullptr) { in onFrameAvailable()
497 bufferItem.mGraphicBuffer = mInputSlots[bufferItem.mSlot].mGraphicBuffer; in onFrameAvailable()
504 bufferId = bufferItem.mGraphicBuffer->getId(); in onFrameAvailable()
515 bufferItem.mGraphicBuffer->getId(), bufferItem.mSlot); in onFrameAvailable()
525 __FUNCTION__, bufferItem.mGraphicBuffer->getId(), tracker.requestedSurfaces().size()); in onFrameAvailable()
571 if (inputSlot->second.mGraphicBuffer->getId() == bufferId) { in decrementBufRefCountLocked()
/frameworks/native/libs/gui/tests/
DStreamSplitter_test.cpp108 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
111 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F()
181 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
184 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F()

123