/frameworks/rs/ |
D | rsGrallocConsumer.cpp | 99 if (mSlots[buf].mGraphicBuffer->getPixelFormat() == in lockNextBuffer() 101 err = mSlots[buf].mGraphicBuffer->lockYCbCr( in lockNextBuffer() 113 err = mSlots[buf].mGraphicBuffer->lock( in lockNextBuffer() 130 mAcquiredBuffer.mGraphicBuffer = mSlots[buf].mGraphicBuffer; in lockNextBuffer() 133 mAlloc->mHal.drvState.lod[0].stride = mSlots[buf].mGraphicBuffer->getStride() * in lockNextBuffer() 135 mAlloc->mHal.state.nativeBuffer = mAcquiredBuffer.mGraphicBuffer->getNativeBuffer(); in lockNextBuffer() 139 mSlots[buf].mGraphicBuffer->getWidth()); in lockNextBuffer() 141 mSlots[buf].mGraphicBuffer->getHeight()); in lockNextBuffer() 173 err = mAcquiredBuffer.mGraphicBuffer->unlock(); in releaseAcquiredBufferLocked() 183 if (CC_LIKELY(mAcquiredBuffer.mGraphicBuffer == in releaseAcquiredBufferLocked() [all …]
|
D | rsGrallocConsumer.h | 63 sp<GraphicBuffer> mGraphicBuffer; member
|
/frameworks/native/libs/gui/ |
D | CpuConsumer.cpp | 114 PixelFormat format = mSlots[buf].mGraphicBuffer->getPixelFormat(); in lockNextBuffer() 118 err = mSlots[buf].mGraphicBuffer->lockAsyncYCbCr( in lockNextBuffer() 124 err = mSlots[buf].mGraphicBuffer->lockYCbCr( in lockNextBuffer() 144 err = mSlots[buf].mGraphicBuffer->lockAsync( in lockNextBuffer() 150 err = mSlots[buf].mGraphicBuffer->lock( in lockNextBuffer() 174 ab.mGraphicBuffer = mSlots[buf].mGraphicBuffer; in lockNextBuffer() 178 nativeBuffer->width = mSlots[buf].mGraphicBuffer->getWidth(); in lockNextBuffer() 179 nativeBuffer->height = mSlots[buf].mGraphicBuffer->getHeight(); in lockNextBuffer() 184 mSlots[buf].mGraphicBuffer->getStride(); in lockNextBuffer() 223 err = mAcquiredBuffers[lockedIdx].mGraphicBuffer->unlockAsync(&fd); in releaseAcquiredBufferLocked() [all …]
|
D | BufferQueueCore.cpp | 99 current->mSlot, current->mGraphicBuffer.get(), in dump() 118 slot.mGraphicBuffer != NULL) { in dump() 126 const sp<GraphicBuffer>& buffer(slot.mGraphicBuffer); in dump() 201 bool hadBuffer = mSlots[slot].mGraphicBuffer != NULL; in freeBufferLocked() 202 mSlots[slot].mGraphicBuffer.clear(); in freeBufferLocked() 240 (item->mGraphicBuffer.get() ? item->mGraphicBuffer->handle : 0), in stillTracking() 242 (slot.mGraphicBuffer.get() ? slot.mGraphicBuffer->handle : 0)); in stillTracking() 246 return (slot.mGraphicBuffer != NULL) && in stillTracking() 247 (item->mGraphicBuffer->handle == slot.mGraphicBuffer->handle); in stillTracking() 265 if (mSlots[slot].mGraphicBuffer == NULL) { in validateConsistencyLocked()
|
D | BufferItem.cpp | 68 if (mGraphicBuffer != 0) { in getFlattenedSize() 69 size += mGraphicBuffer->getFlattenedSize(); in getFlattenedSize() 83 if (mGraphicBuffer != 0) { in getFdCount() 84 count += mGraphicBuffer->getFdCount(); in getFdCount() 113 if (mGraphicBuffer != 0) { in flatten() 114 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count); in flatten() 169 mGraphicBuffer = new GraphicBuffer(); in unflatten() 170 status_t err = mGraphicBuffer->unflatten(buffer, size, fds, count); in unflatten()
|
D | BufferItemConsumer.cpp | 81 item->mGraphicBuffer = mSlots[item->mBuf].mGraphicBuffer; in acquireBuffer() 92 err = addReleaseFenceLocked(item.mBuf, item.mGraphicBuffer, releaseFence); in releaseBuffer() 94 err = releaseBufferLocked(item.mBuf, item.mGraphicBuffer, EGL_NO_DISPLAY, in releaseBuffer()
|
D | StreamSplitter.cpp | 133 bufferItem.mGraphicBuffer->getId()); in onFrameAvailable() 140 mBuffers.add(bufferItem.mGraphicBuffer->getId(), in onFrameAvailable() 141 new BufferTracker(bufferItem.mGraphicBuffer)); in onFrameAvailable() 154 status = (*output)->attachBuffer(&slot, bufferItem.mGraphicBuffer); in onFrameAvailable() 160 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable() 175 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable() 184 bufferItem.mGraphicBuffer->getId(), output->get()); in onFrameAvailable()
|
D | ConsumerBase.cpp | 97 mSlots[slotIndex].mGraphicBuffer = 0; in freeBufferLocked() 241 if (item->mGraphicBuffer != NULL) { in acquireBufferLocked() 242 mSlots[item->mBuf].mGraphicBuffer = item->mGraphicBuffer; in acquireBufferLocked() 317 return (mSlots[slot].mGraphicBuffer != NULL && in stillTracking() 318 mSlots[slot].mGraphicBuffer->handle == graphicBuffer->handle); in stillTracking()
|
D | BufferQueueProducer.cpp | 71 *buf = mSlots[slot].mGraphicBuffer; in requestBuffer() 158 if (mSlots[s].mGraphicBuffer != NULL) { in waitForFreeSlotThenRelock() 308 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer() 330 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer() 335 mSlots[found].mGraphicBuffer = NULL; in dequeueBuffer() 387 mSlots[*outSlot].mGraphicBuffer = graphicBuffer; in dequeueBuffer() 413 mSlots[*outSlot].mGraphicBuffer->handle, returnFlags); in dequeueBuffer() 479 *outBuffer = mSlots[found].mGraphicBuffer; in detachNextBuffer() 531 mSlots[*outSlot].mGraphicBuffer = buffer; in attachBuffer() 620 const sp<GraphicBuffer>& graphicBuffer(mSlots[slot].mGraphicBuffer); in queueBuffer() [all …]
|
D | GLConsumer.cpp | 286 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in releaseTexImage() 357 if (item->mGraphicBuffer != NULL) { in acquireBufferLocked() 359 mEglSlots[slot].mEglImage = new EglImage(item->mGraphicBuffer); in acquireBufferLocked() 387 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, in updateAndReleaseLocked() 395 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, in updateAndReleaseLocked() 409 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, in updateAndReleaseLocked() 421 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, in updateAndReleaseLocked() 429 buf, mSlots[buf].mGraphicBuffer->handle); in updateAndReleaseLocked() 1084 mGraphicBuffer(graphicBuffer), in EglImage() 1118 mEglImage = createImage(mEglDisplay, mGraphicBuffer, mCropRect); in createIfNeeded() [all …]
|
/frameworks/av/media/libstagefright/ |
D | MediaBuffer.cpp | 67 mGraphicBuffer(graphicBuffer), in MediaBuffer() 118 CHECK(mGraphicBuffer == NULL); in data() 123 CHECK(mGraphicBuffer == NULL); in size() 136 if ((mGraphicBuffer == NULL) && (offset + length > mSize)) { in set_range() 139 CHECK((mGraphicBuffer != NULL) || (offset + length <= mSize)); in set_range() 146 return mGraphicBuffer; in graphicBuffer() 190 CHECK(mGraphicBuffer == NULL); in clone()
|
D | SurfaceMediaSource.cpp | 310 if (item.mGraphicBuffer != NULL) { in read() 311 mSlots[item.mBuf].mGraphicBuffer = item.mGraphicBuffer; in read() 352 if (item.mGraphicBuffer != NULL) { in read() 353 mSlots[item.mBuf].mGraphicBuffer = item.mGraphicBuffer; in read() 357 mCurrentBuffers.push_back(mSlots[mCurrentSlot].mGraphicBuffer); in read() 364 passMetadataBuffer(buffer, mSlots[mCurrentSlot].mGraphicBuffer->handle); in read() 414 if (mSlots[id].mGraphicBuffer == NULL) { in signalBufferReturned() 418 if (bufferHandle == mSlots[id].mGraphicBuffer->handle) { in signalBufferReturned() 420 mSlots[id].mGraphicBuffer->handle); in signalBufferReturned() 479 mSlots[i].mGraphicBuffer = 0; in onBuffersReleased()
|
D | MediaSync.cpp | 350 returnBufferToInput_l(bufferItem->mGraphicBuffer, bufferItem->mFence); in flush() 576 bufferItem->mGraphicBuffer, bufferItem->mFence); in onDrainVideo_l() 636 ALOGV("acquired buffer %#llx from input", (long long)bufferItem.mGraphicBuffer->getId()); in onFrameAvailableFromInput() 648 if (mBuffersFromInput.indexOfKey(bufferItem.mGraphicBuffer->getId()) >= 0) { in onFrameAvailableFromInput() 655 mBuffersFromInput.add(bufferItem.mGraphicBuffer->getId(), bufferItem.mGraphicBuffer); in onFrameAvailableFromInput() 661 returnBufferToInput_l(bufferItem.mGraphicBuffer, bufferItem.mFence); in onFrameAvailableFromInput() 685 mOutput->setGenerationNumber(bufferItem.mGraphicBuffer->getGenerationNumber()); in renderOneBufferItem_l() 686 status_t status = mOutput->attachBuffer(&slot, bufferItem.mGraphicBuffer); in renderOneBufferItem_l() 695 returnBufferToInput_l(bufferItem.mGraphicBuffer, bufferItem.mFence); in renderOneBufferItem_l() 703 if (mBuffersSentToOutput.indexOfKey(bufferItem.mGraphicBuffer->getId()) >= 0) { in renderOneBufferItem_l() [all …]
|
D | FrameRenderTracker.cpp | 60 if (it->mGraphicBuffer->handle == buf->handle) { in updateInfoForDequeuedBuffer() 178 it->mGraphicBuffer == NULL ? NULL : it->mGraphicBuffer->handle, in dumpRenderQueue() 182 it->mGraphicBuffer->handle, (long long)it->mMediaTimeUs, in dumpRenderQueue() 186 it->mGraphicBuffer->handle, (long long)it->mMediaTimeUs, it->mIndex); in dumpRenderQueue()
|
/frameworks/av/media/libstagefright/omx/ |
D | GraphicBufferSource.cpp | 73 err = consumer->attachBuffer(&bi.mBuf, bi.mGraphicBuffer); in onFrameAvailable() 341 if (codecBuffer.mGraphicBuffer == NULL) { in codecBufferEmptied() 364 if (grallocMeta.pHandle != codecBuffer.mGraphicBuffer->handle) { in codecBufferEmptied() 367 grallocMeta.pHandle, codecBuffer.mGraphicBuffer->handle); in codecBufferEmptied() 373 if (nativeMeta.pBuffer != codecBuffer.mGraphicBuffer->getNativeBuffer()) { in codecBufferEmptied() 376 nativeMeta.pBuffer, codecBuffer.mGraphicBuffer->getNativeBuffer()); in codecBufferEmptied() 388 mBufferSlot[id]->handle == codecBuffer.mGraphicBuffer->handle) { in codecBufferEmptied() 404 codecBuffer.mGraphicBuffer = NULL; in codecBufferEmptied() 480 item.mGraphicBuffer, item.mFence); in suspend() 532 if (item.mGraphicBuffer != NULL) { in fillCodecBuffer_l() [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.mBuf, item.mGraphicBuffer, in releaseOldestBufferLocked() 321 item.mGraphicBuffer = mSlots[item.mBuf].mGraphicBuffer; in onFrameAvailable() 337 if (item.mGraphicBuffer == find.mGraphicBuffer) { in unpinBuffer() 339 item.mGraphicBuffer, item.mFence); in unpinBuffer()
|
/frameworks/av/include/media/stagefright/ |
D | FrameRenderTracker.h | 65 mGraphicBuffer(graphicBuffer), in Info() 74 mGraphicBuffer(NULL), in Info() 82 sp<GraphicBuffer> mGraphicBuffer; member
|
/frameworks/native/libs/gui/tests/ |
D | BufferQueue_test.cpp | 135 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 138 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F() 257 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 260 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F() 295 ASSERT_EQ(OK, item.mGraphicBuffer->lock( in TEST_F() 299 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F() 305 ASSERT_EQ(OK, mConsumer->attachBuffer(&newSlot, item.mGraphicBuffer)); in TEST_F() 354 ASSERT_EQ(OK, mProducer->attachBuffer(&newSlot, item.mGraphicBuffer)); in TEST_F() 359 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 362 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F()
|
D | StreamSplitter_test.cpp | 126 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 129 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F() 194 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 197 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F()
|
/frameworks/native/include/gui/ |
D | GLConsumer.h | 299 const sp<GraphicBuffer>& graphicBuffer() { return mGraphicBuffer; } in graphicBuffer() 301 return mGraphicBuffer == NULL ? NULL : mGraphicBuffer->handle; in graphicBufferHandle() 318 sp<GraphicBuffer> mGraphicBuffer; variable
|
D | BufferSlot.h | 47 sp<GraphicBuffer> mGraphicBuffer; member
|
D | BufferItem.h | 55 sp<GraphicBuffer> mGraphicBuffer; variable
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlingerConsumer.cpp | 76 if (rejecter && rejecter->reject(mSlots[buf].mGraphicBuffer, item)) { in updateTexImage() 77 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, EGL_NO_SYNC_KHR); in updateTexImage()
|
/frameworks/av/media/libstagefright/filters/ |
D | GraphicBufferListener.cpp | 121 if (item.mGraphicBuffer != NULL) { in getBufferItem() 123 mBufferSlot[item.mBuf] = item.mGraphicBuffer; in getBufferItem()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3InputStream.cpp | 76 anb = bufferItem.mGraphicBuffer->getNativeBuffer(); in getInputBufferLocked() 114 ANativeWindowBuffer *anb = tmp.mGraphicBuffer->getNativeBuffer(); in returnBufferCheckedLocked()
|