Home
last modified time | relevance | path

Searched refs:bufferItem (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/media/libstagefright/
DMediaSync.cpp352 BufferItem *bufferItem = &*mBufferItems.begin(); in flush() local
353 returnBufferToInput_l(bufferItem->mGraphicBuffer, bufferItem->mFence); in flush()
542 BufferItem *bufferItem = &*mBufferItems.begin(); in onDrainVideo_l() local
543 int64_t itemMediaUs = bufferItem->mTimestamp / 1000; in onDrainVideo_l()
553 (long long)bufferItem->mTimestamp / 1000, (long long)itemRealUs); in onDrainVideo_l()
554 bufferItem->mTimestamp = itemRealUs * 1000; in onDrainVideo_l()
555 bufferItem->mIsAutoTimestamp = false; in onDrainVideo_l()
559 renderOneBufferItem_l(*bufferItem); in onDrainVideo_l()
563 bufferItem->mGraphicBuffer, bufferItem->mFence); in onDrainVideo_l()
568 renderOneBufferItem_l(*bufferItem); in onDrainVideo_l()
[all …]
/frameworks/native/libs/gui/
DStreamSplitter.cpp129 BufferItem bufferItem; in onFrameAvailable() local
130 status_t status = mInput->acquireBuffer(&bufferItem, /* presentWhen */ 0); in onFrameAvailable()
135 bufferItem.mGraphicBuffer->getId()); in onFrameAvailable()
137 status = mInput->detachBuffer(bufferItem.mSlot); in onFrameAvailable()
142 mBuffers.add(bufferItem.mGraphicBuffer->getId(), in onFrameAvailable()
143 new BufferTracker(bufferItem.mGraphicBuffer)); in onFrameAvailable()
146 bufferItem.mTimestamp, bufferItem.mIsAutoTimestamp, in onFrameAvailable()
147 bufferItem.mDataSpace, bufferItem.mCrop, in onFrameAvailable()
148 static_cast<int32_t>(bufferItem.mScalingMode), in onFrameAvailable()
149 bufferItem.mTransform, bufferItem.mFence); in onFrameAvailable()
[all …]
DBLASTBufferQueue.cpp553 BufferItem bufferItem; in acquireNextBufferLocked() local
556 mBufferItemConsumer->acquireBuffer(&bufferItem, 0 /* expectedPresent */, false); in acquireNextBufferLocked()
565 auto buffer = bufferItem.mGraphicBuffer; in acquireNextBufferLocked()
567 BBQ_TRACE("frame=%" PRIu64, bufferItem.mFrameNumber); in acquireNextBufferLocked()
570 mBufferItemConsumer->releaseBuffer(bufferItem, Fence::NO_FENCE); in acquireNextBufferLocked()
575 if (rejectBuffer(bufferItem)) { in acquireNextBufferLocked()
579 buffer->getWidth(), buffer->getHeight(), bufferItem.mTransform); in acquireNextBufferLocked()
580 mBufferItemConsumer->releaseBuffer(bufferItem, Fence::NO_FENCE); in acquireNextBufferLocked()
585 mLastAcquiredFrameNumber = bufferItem.mFrameNumber; in acquireNextBufferLocked()
587 mSubmitted[releaseCallbackId] = bufferItem; in acquireNextBufferLocked()
[all …]
DBufferQueueConsumer.cpp143 const BufferItem& bufferItem(mCore->mQueue[1]); in acquireBuffer() local
147 if (maxFrameNumber && bufferItem.mFrameNumber > maxFrameNumber) { in acquireBuffer()
160 nsecs_t desiredPresent = bufferItem.mTimestamp; in acquireBuffer()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3StreamSplitter.cpp357 const BufferItem& bufferItem, size_t surfaceId) { in outputBufferLocked() argument
361 bufferItem.mTimestamp, bufferItem.mIsAutoTimestamp, in outputBufferLocked()
362 bufferItem.mDataSpace, bufferItem.mCrop, in outputBufferLocked()
363 static_cast<int32_t>(bufferItem.mScalingMode), in outputBufferLocked()
364 bufferItem.mTransform, bufferItem.mFence); in outputBufferLocked()
368 uint64_t bufferId = bufferItem.mGraphicBuffer->getId(); in outputBufferLocked()
375 bufferItem.mGraphicBuffer->getNativeBuffer()->handle, anw, mDynamicRangeProfile); in outputBufferLocked()
403 decrementBufRefCountLocked(bufferItem.mGraphicBuffer->getId(), surfaceId); in outputBufferLocked()
506 BufferItem bufferItem; in onFrameAvailable() local
507 status_t res = mConsumer->acquireBuffer(&bufferItem, /* presentWhen */ 0); in onFrameAvailable()
[all …]
DCamera3InputStream.cpp76 BufferItem bufferItem; in getInputBufferLocked() local
78 res = mConsumer->acquireBuffer(&bufferItem, /*waitForFence*/false); in getInputBufferLocked()
86 size->width = bufferItem.mGraphicBuffer->getWidth(); in getInputBufferLocked()
87 size->height = bufferItem.mGraphicBuffer->getHeight(); in getInputBufferLocked()
89 anb = bufferItem.mGraphicBuffer->getNativeBuffer(); in getInputBufferLocked()
91 fenceFd = bufferItem.mFence->dup(); in getInputBufferLocked()
98 mBuffersInFlight.push_back(bufferItem); in getInputBufferLocked()
101 mLastTimestamp = bufferItem.mTimestamp; in getInputBufferLocked()
121 BufferItem bufferItem; in returnBufferCheckedLocked() local
133 bufferItem = tmp; in returnBufferCheckedLocked()
[all …]
DCamera3StreamSplitter.h224 const BufferItem& bufferItem, size_t surfaceId);
/frameworks/base/media/jni/
Dandroid_media_Utils.cpp609 status_t lockImageFromBuffer(BufferItem* bufferItem, uint32_t inUsage, in lockImageFromBuffer() argument
612 if (bufferItem == nullptr || outputImage == nullptr) { in lockImageFromBuffer()
617 status_t res = lockImageFromBuffer(bufferItem->mGraphicBuffer, inUsage, bufferItem->mCrop, in lockImageFromBuffer()
624 outputImage->crop = bufferItem->mCrop; in lockImageFromBuffer()
625 outputImage->transform = bufferItem->mTransform; in lockImageFromBuffer()
626 outputImage->scalingMode = bufferItem->mScalingMode; in lockImageFromBuffer()
627 outputImage->timestamp = bufferItem->mTimestamp; in lockImageFromBuffer()
628 outputImage->dataSpace = bufferItem->mDataSpace; in lockImageFromBuffer()
629 outputImage->frameNumber = bufferItem->mFrameNumber; in lockImageFromBuffer()
Dandroid_media_Utils.h46 status_t lockImageFromBuffer(BufferItem* bufferItem, uint32_t inUsage,
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaSync.h251 void renderOneBufferItem_l(const BufferItem &bufferItem);