/frameworks/native/libs/gui/ |
D | CpuConsumer.cpp | 118 PixelFormat format = mSlots[slot].mGraphicBuffer->getPixelFormat(); in lockNextBuffer() 122 err = mSlots[slot].mGraphicBuffer->lockAsyncYCbCr( in lockNextBuffer() 128 err = mSlots[slot].mGraphicBuffer->lockYCbCr( in lockNextBuffer() 148 err = mSlots[slot].mGraphicBuffer->lockAsync( in lockNextBuffer() 154 err = mSlots[slot].mGraphicBuffer->lock( in lockNextBuffer() 178 ab.mGraphicBuffer = mSlots[slot].mGraphicBuffer; in lockNextBuffer() 182 nativeBuffer->width = mSlots[slot].mGraphicBuffer->getWidth(); in lockNextBuffer() 183 nativeBuffer->height = mSlots[slot].mGraphicBuffer->getHeight(); in lockNextBuffer() 188 mSlots[slot].mGraphicBuffer->getStride(); in lockNextBuffer() 227 err = mAcquiredBuffers[lockedIdx].mGraphicBuffer->unlockAsync(&fd); in releaseAcquiredBufferLocked() [all …]
|
D | BufferItem.cpp | 27 mGraphicBuffer(NULL), in BufferItem() 74 if (mGraphicBuffer != 0) { in getFlattenedSize() 75 size += mGraphicBuffer->getFlattenedSize(); in getFlattenedSize() 89 if (mGraphicBuffer != 0) { in getFdCount() 90 count += mGraphicBuffer->getFdCount(); in getFdCount() 119 if (mGraphicBuffer != 0) { in flatten() 120 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count); in flatten() 175 mGraphicBuffer = new GraphicBuffer(); in unflatten() 176 status_t err = mGraphicBuffer->unflatten(buffer, size, fds, count); in unflatten()
|
D | BufferItemConsumer.cpp | 85 item->mGraphicBuffer = mSlots[item->mSlot].mGraphicBuffer; in acquireBuffer() 96 err = addReleaseFenceLocked(item.mSlot, item.mGraphicBuffer, releaseFence); in releaseBuffer() 98 err = releaseBufferLocked(item.mSlot, 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() 153 status = (*output)->attachBuffer(&slot, bufferItem.mGraphicBuffer); in onFrameAvailable() 159 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable() 174 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable() 183 bufferItem.mGraphicBuffer->getId(), output->get()); in onFrameAvailable()
|
D | BufferQueueCore.cpp | 122 current->mSlot, current->mGraphicBuffer.get(), in dump() 139 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dump() 154 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dump() 162 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); in dump() 203 mSlots[slot].mGraphicBuffer.clear(); in clearBufferSlotLocked() 341 if (mSlots[slot].mGraphicBuffer != NULL) { in validateConsistencyLocked() 363 if (mSlots[slot].mGraphicBuffer != NULL) { in validateConsistencyLocked() 386 if (mSlots[slot].mGraphicBuffer == NULL) { in validateConsistencyLocked() 410 if (mSlots[slot].mGraphicBuffer == NULL && !mIsAllocating) { in validateConsistencyLocked()
|
D | ConsumerBase.cpp | 97 mSlots[slotIndex].mGraphicBuffer = 0; in freeBufferLocked() 286 if (item->mGraphicBuffer != NULL) { in acquireBufferLocked() 287 mSlots[item->mSlot].mGraphicBuffer = item->mGraphicBuffer; in acquireBufferLocked() 366 return (mSlots[slot].mGraphicBuffer != NULL && in stillTracking() 367 mSlots[slot].mGraphicBuffer->handle == graphicBuffer->handle); in stillTracking()
|
D | BufferQueueProducer.cpp | 84 *buf = mSlots[slot].mGraphicBuffer; in requestBuffer() 406 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer() 427 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer() 451 mSlots[found].mGraphicBuffer = NULL; in dequeueBuffer() 506 mSlots[*outSlot].mGraphicBuffer = graphicBuffer; in dequeueBuffer() 552 mSlots[*outSlot].mGraphicBuffer->handle, returnFlags); in dequeueBuffer() 653 *outBuffer = mSlots[found].mGraphicBuffer; in detachNextBuffer() 717 mSlots[*outSlot].mGraphicBuffer = buffer; in attachBuffer() 807 const sp<GraphicBuffer>& graphicBuffer(mSlots[slot].mGraphicBuffer); in queueBuffer() 829 item.mGraphicBuffer = mSlots[slot].mGraphicBuffer; in queueBuffer() [all …]
|
D | GLConsumer.cpp | 308 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); in releaseTexImage() 379 if (item->mGraphicBuffer != NULL) { in acquireBufferLocked() 381 mEglSlots[slot].mEglImage = new EglImage(item->mGraphicBuffer); in acquireBufferLocked() 410 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked() 418 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked() 432 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked() 445 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, in updateAndReleaseLocked() 454 slot, mSlots[slot].mGraphicBuffer->handle); in updateAndReleaseLocked() 1156 mGraphicBuffer(graphicBuffer), in EglImage() 1191 mEglImage = createImage(mEglDisplay, mGraphicBuffer, mCropRect); in createIfNeeded() [all …]
|
D | BufferQueueConsumer.cpp | 206 outBuffer->mGraphicBuffer = mSlots[slot].mGraphicBuffer; in acquireBuffer() 233 slot, outBuffer->mFrameNumber, outBuffer->mGraphicBuffer->handle); in acquireBuffer() 252 outBuffer->mGraphicBuffer = NULL; in acquireBuffer() 374 mSlots[*outSlot].mGraphicBuffer = buffer; in attachBuffer()
|
/frameworks/rs/ |
D | rsGrallocConsumer.cpp | 114 if (mSlots[slot].mGraphicBuffer->getPixelFormat() == in lockNextBuffer() 116 err = mSlots[slot].mGraphicBuffer->lockYCbCr( in lockNextBuffer() 128 err = mSlots[slot].mGraphicBuffer->lock( in lockNextBuffer() 145 mAcquiredBuffer[idx].mGraphicBuffer = mSlots[slot].mGraphicBuffer; in lockNextBuffer() 148 mAlloc[idx]->mHal.drvState.lod[0].stride = mSlots[slot].mGraphicBuffer->getStride() * in lockNextBuffer() 150 mAlloc[idx]->mHal.state.nativeBuffer = mAcquiredBuffer[idx].mGraphicBuffer->getNativeBuffer(); in lockNextBuffer() 154 mSlots[slot].mGraphicBuffer->getWidth()); in lockNextBuffer() 156 mSlots[slot].mGraphicBuffer->getHeight()); in lockNextBuffer() 176 if (mSlots[slot].mGraphicBuffer->getPixelFormat() == in lockNextBuffer() 197 } else if (mSlots[slot].mGraphicBuffer->getPixelFormat() == in lockNextBuffer() [all …]
|
D | rsGrallocConsumer.h | 69 sp<GraphicBuffer> mGraphicBuffer; member
|
/frameworks/av/media/libstagefright/ |
D | SurfaceMediaSource.cpp | 301 if (item.mGraphicBuffer != NULL) { in read() 302 mSlots[item.mSlot].mGraphicBuffer = item.mGraphicBuffer; in read() 343 if (item.mGraphicBuffer != NULL) { in read() 344 mSlots[item.mSlot].mGraphicBuffer = item.mGraphicBuffer; in read() 348 mCurrentBuffers.push_back(mSlots[mCurrentSlot].mGraphicBuffer); in read() 355 passMetadataBuffer_l(buffer, mSlots[mCurrentSlot].mGraphicBuffer->getNativeBuffer()); in read() 405 if (mSlots[id].mGraphicBuffer == NULL) { in signalBufferReturned() 409 if (bufferHandle == mSlots[id].mGraphicBuffer->handle) { in signalBufferReturned() 411 mSlots[id].mGraphicBuffer->handle); in signalBufferReturned() 470 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() 684 mOutput->setGenerationNumber(bufferItem.mGraphicBuffer->getGenerationNumber()); in renderOneBufferItem_l() 685 status_t status = mOutput->attachBuffer(&slot, bufferItem.mGraphicBuffer); in renderOneBufferItem_l() 694 returnBufferToInput_l(bufferItem.mGraphicBuffer, bufferItem.mFence); in renderOneBufferItem_l() 702 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/foundation/ |
D | MediaBuffer.cpp | 87 mGraphicBuffer(graphicBuffer), in MediaBuffer() 145 CHECK(mGraphicBuffer == NULL); in data() 150 CHECK(mGraphicBuffer == NULL); in size() 163 if ((mGraphicBuffer == NULL) && (offset + length > mSize)) { in set_range() 166 CHECK((mGraphicBuffer != NULL) || (offset + length <= mSize)); in set_range() 173 return mGraphicBuffer; in graphicBuffer() 213 CHECK(mGraphicBuffer == NULL); in clone()
|
/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/av/media/libstagefright/omx/ |
D | GraphicBufferSource.cpp | 79 err = consumer->attachBuffer(&bi.mSlot, bi.mGraphicBuffer); in onFrameAvailable() 353 if (codecBuffer.mGraphicBuffer == NULL) { in codecBufferEmptied() 376 if (grallocMeta.pHandle != codecBuffer.mGraphicBuffer->handle) { in codecBufferEmptied() 379 grallocMeta.pHandle, codecBuffer.mGraphicBuffer->handle); in codecBufferEmptied() 385 if (nativeMeta.pBuffer != codecBuffer.mGraphicBuffer->getNativeBuffer()) { in codecBufferEmptied() 388 nativeMeta.pBuffer, codecBuffer.mGraphicBuffer->getNativeBuffer()); in codecBufferEmptied() 400 mBufferSlot[id]->handle == codecBuffer.mGraphicBuffer->handle) { in codecBufferEmptied() 416 codecBuffer.mGraphicBuffer = NULL; in codecBufferEmptied() 492 item.mGraphicBuffer, item.mFence); in suspend() 614 if (item.mGraphicBuffer != NULL) { in fillCodecBuffer_l() [all …]
|
/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/include/gui/ |
D | GLConsumer.h | 316 const sp<GraphicBuffer>& graphicBuffer() { return mGraphicBuffer; } in graphicBuffer() 318 return mGraphicBuffer == NULL ? NULL : mGraphicBuffer->handle; in graphicBufferHandle() 335 sp<GraphicBuffer> mGraphicBuffer; variable
|
D | BufferSlot.h | 177 : mGraphicBuffer(nullptr), in BufferSlot() 190 sp<GraphicBuffer> mGraphicBuffer; member
|
/frameworks/native/libs/gui/tests/ |
D | StreamSplitter_test.cpp | 106 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 109 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F() 179 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 182 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F()
|
D | BufferQueue_test.cpp | 160 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 163 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F() 363 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 366 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F() 401 ASSERT_EQ(OK, item.mGraphicBuffer->lock( in TEST_F() 405 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F() 411 ASSERT_EQ(OK, mConsumer->attachBuffer(&newSlot, item.mGraphicBuffer)); in TEST_F() 460 ASSERT_EQ(OK, mProducer->attachBuffer(&newSlot, item.mGraphicBuffer)); in TEST_F() 465 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F() 468 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F()
|
/frameworks/av/media/libstagefright/filters/ |
D | GraphicBufferListener.cpp | 121 if (item.mGraphicBuffer != NULL) { in getBufferItem() 123 mBufferSlot[item.mSlot] = item.mGraphicBuffer; in getBufferItem()
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlingerConsumer.cpp | 77 if (rejecter && rejecter->reject(mSlots[slot].mGraphicBuffer, item)) { in updateTexImage() 78 releaseBufferLocked(slot, mSlots[slot].mGraphicBuffer, EGL_NO_SYNC_KHR); in updateTexImage()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3InputStream.cpp | 76 anb = bufferItem.mGraphicBuffer->getNativeBuffer(); in getInputBufferLocked() 114 ANativeWindowBuffer *anb = tmp.mGraphicBuffer->getNativeBuffer(); in returnBufferCheckedLocked()
|