/frameworks/native/libs/gui/ |
D | CpuConsumer.cpp | 93 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 …]
|
D | BufferItemConsumer.cpp | 83 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()
|
D | BufferItem.cpp | 42 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()
|
D | StreamSplitter.cpp | 135 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()
|
D | BufferQueueCore.cpp | 183 current->mGraphicBuffer.get()); in dumpState() 193 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dumpState() 210 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dumpState() 219 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dumpState() 260 mSlots[slot].mGraphicBuffer.clear(); in clearBufferSlotLocked() 411 if (mSlots[slot].mGraphicBuffer != nullptr) { in validateConsistencyLocked() 433 if (mSlots[slot].mGraphicBuffer != nullptr) { in validateConsistencyLocked() 456 if (mSlots[slot].mGraphicBuffer == nullptr) { in validateConsistencyLocked() 480 if (mSlots[slot].mGraphicBuffer == nullptr && !mIsAllocating) { in validateConsistencyLocked()
|
D | ConsumerBase.cpp | 99 mSlots[slotIndex].mGraphicBuffer = nullptr; in freeBufferLocked() 397 if (item->mGraphicBuffer != nullptr) { in acquireBufferLocked() 398 if (mSlots[item->mSlot].mGraphicBuffer != nullptr) { in acquireBufferLocked() 401 mSlots[item->mSlot].mGraphicBuffer = item->mGraphicBuffer; in acquireBufferLocked() 513 return (mSlots[slot].mGraphicBuffer != nullptr && in stillTracking() 514 mSlots[slot].mGraphicBuffer->handle == graphicBuffer->handle); in stillTracking()
|
D | BufferQueueProducer.cpp | 116 *buf = mSlots[slot].mGraphicBuffer; in requestBuffer() 453 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer() 473 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer() 497 mSlots[found].mGraphicBuffer = nullptr; in dequeueBuffer() 541 mCore->mConsumerListener->onFrameDequeued(mSlots[*outSlot].mGraphicBuffer->getId()); in dequeueBuffer() 559 mSlots[*outSlot].mGraphicBuffer = graphicBuffer; in dequeueBuffer() 562 mSlots[*outSlot].mGraphicBuffer->getId()); in dequeueBuffer() 609 mSlots[*outSlot].mGraphicBuffer->handle, returnFlags); in dequeueBuffer() 658 auto gb = mSlots[slot].mGraphicBuffer; in detachBuffer() 721 *outBuffer = mSlots[found].mGraphicBuffer; in detachNextBuffer() [all …]
|
D | GLConsumer.cpp | 262 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in releaseTexImage() 335 if (item->mGraphicBuffer != nullptr) { in acquireBufferLocked() 337 mEglSlots[slot].mEglImage = new EglImage(item->mGraphicBuffer); in acquireBufferLocked() 366 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked() 374 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked() 388 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked() 401 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked() 410 slot, mSlots[slot].mGraphicBuffer->handle); in updateAndReleaseLocked() 937 mGraphicBuffer(graphicBuffer), in EglImage() 970 mEglImage = createImage(mEglDisplay, mGraphicBuffer); in createIfNeeded() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | RenderSurface.cpp | 160 return mGraphicBuffer; in dequeueBuffer() 163 ALOGW_IF(mGraphicBuffer != nullptr, "Clobbering a non-null pointer to a buffer [%p].", in dequeueBuffer() 164 mGraphicBuffer->getNativeBuffer()->handle); in dequeueBuffer() 165 mGraphicBuffer = GraphicBuffer::from(buffer); in dequeueBuffer() 169 return mGraphicBuffer; in dequeueBuffer() 179 if (mGraphicBuffer == nullptr) { in queueBuffer() 191 if (mGraphicBuffer == nullptr) { in queueBuffer() 196 mGraphicBuffer->getNativeBuffer(), dup(readyFence)); in queueBuffer() 206 mGraphicBuffer->getNativeBuffer(), dup(readyFence)); in queueBuffer() 210 mGraphicBuffer = nullptr; in queueBuffer() [all …]
|
/frameworks/native/libs/nativedisplay/surfacetexture/ |
D | ImageConsumer.cpp | 47 return st.mSlots[slot].mGraphicBuffer; in dequeueBuffer() 58 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueBuffer() 73 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueBuffer() 81 st.mSlots[st.mCurrentTexture].mGraphicBuffer, in dequeueBuffer() 85 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueBuffer() 94 st.mSlots[st.mCurrentTexture].mGraphicBuffer, display, in dequeueBuffer() 118 return st.mSlots[slot].mGraphicBuffer; in dequeueBuffer()
|
D | EGLConsumer.cpp | 153 err = st.releaseBufferLocked(buf, st.mSlots[buf].mGraphicBuffer, mEglDisplay, in releaseTexImage() 219 if (item->mGraphicBuffer != nullptr || mEglSlots[slot].mEglImage.get() == nullptr) { in onAcquireBufferLocked() 220 mEglSlots[slot].mEglImage = new EglImage(st.mSlots[slot].mGraphicBuffer); in onAcquireBufferLocked() 237 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked() 244 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked() 257 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in updateAndReleaseLocked() 269 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, mEglDisplay, in updateAndReleaseLocked() 278 slot, st.mSlots[slot].mGraphicBuffer->handle); in updateAndReleaseLocked() 437 mEglSlots[slot].mEglImage = new EglImage(st.mSlots[slot].mGraphicBuffer); in attachToContext() 604 : mGraphicBuffer(graphicBuffer), mEglImage(EGL_NO_IMAGE_KHR), mEglDisplay(EGL_NO_DISPLAY) {} in EglImage() [all …]
|
/frameworks/av/media/libmedia/ |
D | OMXBuffer.cpp | 56 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/ |
D | BufferLayerConsumer.cpp | 146 if (rejecter && rejecter->reject(mSlots[slot].mGraphicBuffer, item)) { in updateTexImage() 147 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer); in updateTexImage() 223 if (item->mGraphicBuffer != nullptr) { in acquireBufferLocked() 226 mImages[item->mSlot]->graphicBuffer()->getId() != item->mGraphicBuffer->getId()) { in acquireBufferLocked() 227 mImages[item->mSlot] = std::make_shared<Image>(item->mGraphicBuffer, mRE); in acquireBufferLocked() 244 slot, mSlots[slot].mGraphicBuffer->handle); in updateAndReleaseLocked() 484 if (item.mGraphicBuffer != nullptr && item.mSlot != BufferQueue::INVALID_BUFFER_SLOT) { in onBufferAvailable() 488 oldImage->graphicBuffer()->getId() != item.mGraphicBuffer->getId()) { in onBufferAvailable() 489 mImages[item.mSlot] = std::make_shared<Image>(item.mGraphicBuffer, mRE); in onBufferAvailable() 532 : mGraphicBuffer(graphicBuffer), mRE(engine) { in Image() [all …]
|
/frameworks/av/services/camera/libcameraservice/gui/ |
D | RingBufferConsumer.cpp | 172 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/native/libs/nativedisplay/include/surfacetexture/ |
D | EGLConsumer.h | 182 const sp<GraphicBuffer>& graphicBuffer() { return mGraphicBuffer; } in graphicBuffer() 184 return mGraphicBuffer == nullptr ? nullptr : mGraphicBuffer->handle; in graphicBufferHandle() 200 sp<GraphicBuffer> mGraphicBuffer; variable
|
/frameworks/av/media/libstagefright/ |
D | MediaSync.cpp | 353 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 …]
|
D | FrameCaptureLayer.cpp | 72 bi.mGraphicBuffer->getPixelFormat() == HAL_PIXEL_FORMAT_RGBA_1010102); in isHdrY410() 93 layerSettings->source.buffer.buffer = mBufferItem.mGraphicBuffer; in getLayerSettings() 118 textureMatrix, mBufferItem.mGraphicBuffer, in getLayerSettings() 237 if (bi->mGraphicBuffer != nullptr) { in acquireBuffer() 238 mSlotToBufferMap[bi->mSlot] = bi->mGraphicBuffer; in acquireBuffer() 240 bi->mGraphicBuffer = mSlotToBufferMap[bi->mSlot]; in acquireBuffer() 243 if (bi->mGraphicBuffer == nullptr) { in acquireBuffer()
|
D | FrameRenderTracker.cpp | 60 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/ |
D | FrameRenderTracker.h | 65 mGraphicBuffer(graphicBuffer), in RenderedFrameInfo() 74 mGraphicBuffer(NULL), in RenderedFrameInfo() 82 sp<GraphicBuffer> mGraphicBuffer; member
|
/frameworks/base/libs/hostgraphics/gui/ |
D | BufferItem.h | 39 BufferItem() : mGraphicBuffer(nullptr), mFence(Fence::NO_FENCE) {} in BufferItem() 42 sp<GraphicBuffer> mGraphicBuffer; variable
|
/frameworks/native/libs/ui/tests/ |
D | GraphicBufferOverBinder_test.cpp | 45 mGraphicBuffer = new GraphicBuffer(kTestWidth, kTestHeight, kTestFormat, kTestLayerCount, in GraphicBufferOverBinderTestService() 55 return reply->write(*mGraphicBuffer); in onTransact() 63 sp<GraphicBuffer> mGraphicBuffer; member in android::GraphicBufferOverBinderTestService
|
/frameworks/native/libs/gui/include/gui/ |
D | GLConsumer.h | 315 const sp<GraphicBuffer>& graphicBuffer() { return mGraphicBuffer; } in graphicBuffer() 317 return mGraphicBuffer == nullptr ? nullptr : mGraphicBuffer->handle; in graphicBufferHandle() 334 sp<GraphicBuffer> mGraphicBuffer; variable
|
D | BufferSlot.h | 177 : mGraphicBuffer(nullptr), in BufferSlot() 190 sp<GraphicBuffer> mGraphicBuffer; member
|
D | CpuConsumer.h | 126 sp<GraphicBuffer> mGraphicBuffer; member 136 mGraphicBuffer.clear(); in reset()
|
/frameworks/av/media/codec2/sfplugin/ |
D | C2OMXNode.cpp | 346 && 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()
|