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 …]
DBufferQueueConsumer.cpp116 const BufferItem& bufferItem(mCore->mQueue[1]); in acquireBuffer() local
120 if (maxFrameNumber && bufferItem.mFrameNumber > maxFrameNumber) { in acquireBuffer()
133 nsecs_t desiredPresent = bufferItem.mTimestamp; in acquireBuffer()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3StreamSplitter.cpp344 const BufferItem& bufferItem, size_t surfaceId) { in outputBufferLocked() argument
348 bufferItem.mTimestamp, bufferItem.mIsAutoTimestamp, in outputBufferLocked()
349 bufferItem.mDataSpace, bufferItem.mCrop, in outputBufferLocked()
350 static_cast<int32_t>(bufferItem.mScalingMode), in outputBufferLocked()
351 bufferItem.mTransform, bufferItem.mFence); in outputBufferLocked()
355 uint64_t bufferId = bufferItem.mGraphicBuffer->getId(); in outputBufferLocked()
382 decrementBufRefCountLocked(bufferItem.mGraphicBuffer->getId(), surfaceId); in outputBufferLocked()
485 BufferItem bufferItem; in onFrameAvailable() local
486 status_t res = mConsumer->acquireBuffer(&bufferItem, /* presentWhen */ 0); in onFrameAvailable()
494 if (bufferItem.mGraphicBuffer != nullptr) { in onFrameAvailable()
[all …]
DCamera3InputStream.cpp70 BufferItem bufferItem; in getInputBufferLocked() local
72 res = mConsumer->acquireBuffer(&bufferItem, /*waitForFence*/false); in getInputBufferLocked()
79 anb = bufferItem.mGraphicBuffer->getNativeBuffer(); in getInputBufferLocked()
81 fenceFd = bufferItem.mFence->dup(); in getInputBufferLocked()
89 mBuffersInFlight.push_back(bufferItem); in getInputBufferLocked()
92 mLastTimestamp = bufferItem.mTimestamp; in getInputBufferLocked()
112 BufferItem bufferItem; in returnBufferCheckedLocked() local
124 bufferItem = tmp; in returnBufferCheckedLocked()
155 res = mConsumer->releaseBuffer(bufferItem, releaseFence); in returnBufferCheckedLocked()
DCamera3StreamSplitter.h212 const BufferItem& bufferItem, size_t surfaceId);
/frameworks/base/media/jni/
Dandroid_media_Utils.cpp378 status_t lockImageFromBuffer(BufferItem* bufferItem, uint32_t inUsage, in lockImageFromBuffer() argument
381 if (bufferItem == nullptr || outputImage == nullptr) { in lockImageFromBuffer()
386 status_t res = lockImageFromBuffer(bufferItem->mGraphicBuffer, inUsage, bufferItem->mCrop, in lockImageFromBuffer()
393 outputImage->crop = bufferItem->mCrop; in lockImageFromBuffer()
394 outputImage->transform = bufferItem->mTransform; in lockImageFromBuffer()
395 outputImage->scalingMode = bufferItem->mScalingMode; in lockImageFromBuffer()
396 outputImage->timestamp = bufferItem->mTimestamp; in lockImageFromBuffer()
397 outputImage->dataSpace = bufferItem->mDataSpace; in lockImageFromBuffer()
398 outputImage->frameNumber = bufferItem->mFrameNumber; in lockImageFromBuffer()
Dandroid_media_Utils.h44 status_t lockImageFromBuffer(BufferItem* bufferItem, uint32_t inUsage,
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaSync.h251 void renderOneBufferItem_l(const BufferItem &bufferItem);
/frameworks/base/core/jni/
Dandroid_view_ThreadedRenderer.cpp968 BufferItem bufferItem; in android_view_ThreadedRenderer_createHardwareBitmapFromRenderNode() local
970 if ((err = consumer->acquireBuffer(&bufferItem, 0, true)) != OK) { in android_view_ThreadedRenderer_createHardwareBitmapFromRenderNode()
974 sp<GraphicBuffer> buffer = bufferItem.mGraphicBuffer; in android_view_ThreadedRenderer_createHardwareBitmapFromRenderNode()
976 consumer->releaseBuffer(bufferItem); in android_view_ThreadedRenderer_createHardwareBitmapFromRenderNode()
988 sk_sp<SkColorSpace> cs = uirenderer::DataSpaceToColorSpace(bufferItem.mDataSpace); in android_view_ThreadedRenderer_createHardwareBitmapFromRenderNode()