/frameworks/rs/ |
D | rsGrallocConsumer.cpp | 98 if (mSlots[buf].mGraphicBuffer->getPixelFormat() == in lockNextBuffer() 100 err = mSlots[buf].mGraphicBuffer->lockYCbCr( in lockNextBuffer() 112 err = mSlots[buf].mGraphicBuffer->lock( in lockNextBuffer() 129 mAcquiredBuffer.mGraphicBuffer = mSlots[buf].mGraphicBuffer; in lockNextBuffer() 132 mAlloc->mHal.drvState.lod[0].stride = mSlots[buf].mGraphicBuffer->getStride() * in lockNextBuffer() 134 mAlloc->mHal.state.nativeBuffer = mAcquiredBuffer.mGraphicBuffer->getNativeBuffer(); in lockNextBuffer() 138 mSlots[buf].mGraphicBuffer->getWidth()); in lockNextBuffer() 140 mSlots[buf].mGraphicBuffer->getHeight()); in lockNextBuffer() 172 err = mAcquiredBuffer.mGraphicBuffer->unlock(); in releaseAcquiredBufferLocked() 182 if (CC_LIKELY(mAcquiredBuffer.mGraphicBuffer == in releaseAcquiredBufferLocked() [all …]
|
D | rsGrallocConsumer.h | 63 sp<GraphicBuffer> mGraphicBuffer; member
|
/frameworks/native/libs/gui/ |
D | CpuConsumer.cpp | 127 PixelFormat format = mSlots[buf].mGraphicBuffer->getPixelFormat(); in lockNextBuffer() 131 err = mSlots[buf].mGraphicBuffer->lockAsyncYCbCr( in lockNextBuffer() 137 err = mSlots[buf].mGraphicBuffer->lockYCbCr( in lockNextBuffer() 157 err = mSlots[buf].mGraphicBuffer->lockAsync( in lockNextBuffer() 163 err = mSlots[buf].mGraphicBuffer->lock( in lockNextBuffer() 187 ab.mGraphicBuffer = mSlots[buf].mGraphicBuffer; in lockNextBuffer() 191 nativeBuffer->width = mSlots[buf].mGraphicBuffer->getWidth(); in lockNextBuffer() 192 nativeBuffer->height = mSlots[buf].mGraphicBuffer->getHeight(); in lockNextBuffer() 197 mSlots[buf].mGraphicBuffer->getStride(); in lockNextBuffer() 236 err = mAcquiredBuffers[lockedIdx].mGraphicBuffer->unlockAsync(&fd); in releaseAcquiredBufferLocked() [all …]
|
D | BufferItem.cpp | 43 bufferItem.mGraphicBuffer = mGraphicBuffer; in operator IGraphicBufferConsumer::BufferItem() 74 if (mGraphicBuffer != 0) { in getFlattenedSize() 75 c += mGraphicBuffer->getFlattenedSize(); in getFlattenedSize() 87 if (mGraphicBuffer != 0) { in getFdCount() 88 c += mGraphicBuffer->getFdCount(); in getFdCount() 111 if (mGraphicBuffer != 0) { in flatten() 112 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count); in flatten() 153 mGraphicBuffer = new GraphicBuffer(); in unflatten() 154 status_t err = mGraphicBuffer->unflatten(buffer, size, fds, count); in unflatten()
|
D | BufferQueueCore.cpp | 90 current->mSlot, current->mGraphicBuffer.get(), in dump() 109 slot.mGraphicBuffer != NULL) { in dump() 117 const sp<GraphicBuffer>& buffer(slot.mGraphicBuffer); in dump() 192 mSlots[slot].mGraphicBuffer.clear(); in freeBufferLocked() 221 (item->mGraphicBuffer.get() ? item->mGraphicBuffer->handle : 0), in stillTracking() 223 (slot.mGraphicBuffer.get() ? slot.mGraphicBuffer->handle : 0)); in stillTracking() 227 return (slot.mGraphicBuffer != NULL) && in stillTracking() 228 (item->mGraphicBuffer->handle == slot.mGraphicBuffer->handle); in stillTracking()
|
D | StreamSplitter.cpp | 132 bufferItem.mGraphicBuffer->getId()); in onFrameAvailable() 139 mBuffers.add(bufferItem.mGraphicBuffer->getId(), in onFrameAvailable() 140 new BufferTracker(bufferItem.mGraphicBuffer)); in onFrameAvailable() 152 status = (*output)->attachBuffer(&slot, bufferItem.mGraphicBuffer); in onFrameAvailable() 158 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable() 173 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable() 182 bufferItem.mGraphicBuffer->getId(), output->get()); in onFrameAvailable()
|
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 | ConsumerBase.cpp | 96 mSlots[slotIndex].mGraphicBuffer = 0; in freeBufferLocked() 189 if (item->mGraphicBuffer != NULL) { in acquireBufferLocked() 190 mSlots[item->mBuf].mGraphicBuffer = item->mGraphicBuffer; in acquireBufferLocked() 265 return (mSlots[slot].mGraphicBuffer != NULL && in stillTracking() 266 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() 310 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer() 318 mSlots[found].mGraphicBuffer = NULL; in dequeueBuffer() 359 mSlots[*outSlot].mGraphicBuffer = graphicBuffer; in dequeueBuffer() 385 mSlots[*outSlot].mGraphicBuffer->handle, returnFlags); in dequeueBuffer() 445 mSlots[s].mGraphicBuffer != NULL) { in detachNextBuffer() 459 *outBuffer = mSlots[found].mGraphicBuffer; in detachNextBuffer() 503 mSlots[*outSlot].mGraphicBuffer = buffer; in attachBuffer() 588 const sp<GraphicBuffer>& graphicBuffer(mSlots[slot].mGraphicBuffer); in queueBuffer() [all …]
|
D | IGraphicBufferConsumer.cpp | 66 if (mGraphicBuffer != 0) { in getFlattenedSize() 67 c += mGraphicBuffer->getFlattenedSize(); in getFlattenedSize() 79 if (mGraphicBuffer != 0) { in getFdCount() 80 c += mGraphicBuffer->getFdCount(); in getFdCount() 113 if (mGraphicBuffer != 0) { in flatten() 114 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count); in flatten() 155 mGraphicBuffer = new GraphicBuffer(); in unflatten() 156 status_t err = mGraphicBuffer->unflatten(buffer, size, fds, count); in unflatten()
|
D | GLConsumer.cpp | 275 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in releaseTexImage() 344 if (item->mGraphicBuffer != NULL) { in acquireBufferLocked() 346 mEglSlots[slot].mEglImage = new EglImage(item->mGraphicBuffer); in acquireBufferLocked() 374 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, in updateAndReleaseLocked() 382 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, in updateAndReleaseLocked() 396 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, in updateAndReleaseLocked() 408 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, in updateAndReleaseLocked() 416 buf, mSlots[buf].mGraphicBuffer->handle); in updateAndReleaseLocked() 1058 mGraphicBuffer(graphicBuffer), in EglImage() 1092 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 | 309 if (item.mGraphicBuffer != NULL) { in read() 310 mSlots[item.mBuf].mGraphicBuffer = item.mGraphicBuffer; in read() 351 if (item.mGraphicBuffer != NULL) { in read() 352 mSlots[item.mBuf].mGraphicBuffer = item.mGraphicBuffer; in read() 356 mCurrentBuffers.push_back(mSlots[mCurrentSlot].mGraphicBuffer); in read() 363 passMetadataBuffer(buffer, mSlots[mCurrentSlot].mGraphicBuffer->handle); in read() 413 if (mSlots[id].mGraphicBuffer == NULL) { in signalBufferReturned() 417 if (bufferHandle == mSlots[id].mGraphicBuffer->handle) { in signalBufferReturned() 419 mSlots[id].mGraphicBuffer->handle); in signalBufferReturned() 478 mSlots[i].mGraphicBuffer = 0; in onBuffersReleased()
|
/frameworks/av/media/libstagefright/omx/ |
D | GraphicBufferSource.cpp | 243 if (codecBuffer.mGraphicBuffer == NULL) { in codecBufferEmptied() 263 if (bufferHandle != codecBuffer.mGraphicBuffer->handle) { in codecBufferEmptied() 266 bufferHandle, codecBuffer.mGraphicBuffer->handle); in codecBufferEmptied() 272 if (buffer != codecBuffer.mGraphicBuffer.get()) { in codecBufferEmptied() 275 buffer, codecBuffer.mGraphicBuffer.get()); in codecBufferEmptied() 286 mBufferSlot[id]->handle == codecBuffer.mGraphicBuffer->handle) { in codecBufferEmptied() 302 codecBuffer.mGraphicBuffer = NULL; in codecBufferEmptied() 435 if (item.mGraphicBuffer != NULL) { in fillCodecBuffer_l() 437 mBufferSlot[item.mBuf] = item.mGraphicBuffer; in fillCodecBuffer_l() 652 codecBuffer.mGraphicBuffer = mBufferSlot[item.mBuf]; in submitBuffer_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/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() 255 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 258 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F() 292 ASSERT_EQ(OK, item.mGraphicBuffer->lock( in TEST_F() 296 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F() 302 ASSERT_EQ(OK, mConsumer->attachBuffer(&newSlot, item.mGraphicBuffer)); in TEST_F() 350 ASSERT_EQ(OK, mProducer->attachBuffer(&newSlot, item.mGraphicBuffer)); in TEST_F() 355 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 358 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F()
|
D | StreamSplitter_test.cpp | 122 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 125 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F() 189 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 192 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F()
|
/frameworks/native/include/gui/ |
D | GLConsumer.h | 298 const sp<GraphicBuffer>& graphicBuffer() { return mGraphicBuffer; } in graphicBuffer() 300 return mGraphicBuffer == NULL ? NULL : mGraphicBuffer->handle; in graphicBufferHandle() 317 sp<GraphicBuffer> mGraphicBuffer; variable
|
D | BufferSlot.h | 47 sp<GraphicBuffer> mGraphicBuffer; member
|
D | BufferItem.h | 55 sp<GraphicBuffer> mGraphicBuffer; variable
|
D | CpuConsumer.h | 125 sp<GraphicBuffer> mGraphicBuffer; member
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlingerConsumer.cpp | 73 if (rejecter && rejecter->reject(mSlots[buf].mGraphicBuffer, item)) { in updateTexImage() 74 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, EGL_NO_SYNC_KHR); in updateTexImage()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3InputStream.cpp | 75 anb = bufferItem.mGraphicBuffer->getNativeBuffer(); in getInputBufferLocked() 113 ANativeWindowBuffer *anb = tmp.mGraphicBuffer->getNativeBuffer(); in returnBufferCheckedLocked()
|
D | Camera3ZslStream.cpp | 170 anb = bufferItem->getBufferItem().mGraphicBuffer->getNativeBuffer(); in getInputBufferLocked() 215 tmp->getBufferItem().mGraphicBuffer->getNativeBuffer(); in returnBufferCheckedLocked()
|
/frameworks/av/include/media/stagefright/ |
D | MediaBuffer.h | 107 sp<GraphicBuffer> mGraphicBuffer; variable
|