Home
last modified time | relevance | path

Searched refs:bufferId (Results 1 – 25 of 194) sorted by relevance

12345678

/aosp12/frameworks/av/media/codec2/hidl/1.0/utils/
H A DInputBufferManager.cpp82 TrackedBuffer *bufferId = in _registerFrameData() local
84 mTrackedBufferCache.emplace(bufferId); in _registerFrameData()
85 bufferIds.emplace(bufferId); in _registerFrameData()
89 reinterpret_cast<void*>(bufferId)); in _registerFrameData()
147 mTrackedBufferCache.erase(bufferId); in _unregisterFrameData()
148 delete bufferId; in _unregisterFrameData()
209 delete bufferId; in _unregisterFrameData()
288 auto findBufferId = bufferIds.find(bufferId); in _onBufferDestroyed()
308 deathNotifications.indices[bufferId->frameIndex].emplace_back(bufferId->bufferIndex); in _onBufferDestroyed()
312 mTrackedBufferCache.erase(bufferId); in _onBufferDestroyed()
[all …]
/aosp12/frameworks/av/media/bufferpool/1.0/
H A DAccessorImpl.cpp76 mBufferId = message.bufferId; in TransactionStatus()
269 auto iter = mBuffers.find(bufferId); in handleOwnBuffer()
280 auto iter = mBuffers.find(bufferId); in handleReleaseBuffer()
285 mFreeBuffers.insert(bufferId); in handleReleaseBuffer()
372 message.bufferId, deleted); in handleTransferResult()
376 message.bufferId); in handleTransferResult()
435 mFreeBuffers.insert(bufferId); in handleClose()
474 BufferId bufferId = *bufferIt; in getFreeBuffer() local
498 BufferId bufferId = mSeq++; in addNewBuffer() local
507 bufferId, std::move(buffer))); in addNewBuffer()
[all …]
H A DBufferPoolClient.cpp70 void postBufferRelease(BufferId bufferId);
73 BufferId bufferId, ConnectionId receiver,
308 BufferId bufferId; in allocate() local
340 postBufferRelease(bufferId); in allocate()
445 mReleasing.mReleasingIds.push_back(bufferId); in postBufferRelease()
452 BufferId bufferId, ConnectionId receiver, in postSend() argument
506 transactionId, bufferId, in postReceiveResult()
525 transactionId, bufferId, in trySyncFromRemote()
596 params, bufferId, &allocHandle); in allocateBufferHandle()
602 *handle ? *bufferId : 0 , *handle); in allocateBufferHandle()
[all …]
H A DConnection.cpp27 Return<void> Connection::fetch(uint64_t transactionId, uint32_t bufferId, fetch_cb _hidl_cb) { in fetch() argument
30 if (bufferId != SYNC_BUFFERID) { in fetch()
33 mConnectionId, transactionId, bufferId, &handle); in fetch()
36 buffer.id = bufferId; in fetch()
72 const std::vector<uint8_t> &params, BufferId *bufferId, in allocate() argument
75 return mAccessor->allocate(mConnectionId, params, bufferId, handle); in allocate()
/aosp12/frameworks/av/media/bufferpool/2.0/
H A DBufferPoolClient.cpp76 void postBufferRelease(BufferId bufferId);
79 BufferId bufferId, ConnectionId receiver,
363 BufferId bufferId; in allocate() local
395 postBufferRelease(bufferId); in allocate()
500 mReleasing.mReleasingIds.push_back(bufferId); in postBufferRelease()
507 BufferId bufferId, ConnectionId receiver, in postSend() argument
566 transactionId, bufferId, in postReceiveResult()
585 transactionId, bufferId, in trySyncFromRemote()
744 params, bufferId, &allocHandle); in allocateBufferHandle()
750 *handle ? *bufferId : 0 , *handle); in allocateBufferHandle()
[all …]
H A DAccessorImpl.cpp88 mBufferId = message.bufferId; in TransactionStatus()
361 BufferId bufferId, in onBufferInvalidated() argument
364 if (it->isInvalidated(bufferId)) { in onBufferInvalidated()
447 auto iter = mBuffers.find(bufferId); in handleOwnBuffer()
458 auto iter = mBuffers.find(bufferId); in handleReleaseBuffer()
464 mFreeBuffers.insert(bufferId); in handleReleaseBuffer()
564 message.bufferId, deleted); in handleTransferResult()
568 message.bufferId); in handleTransferResult()
684 BufferId bufferId = *bufferIt; in getFreeBuffer() local
708 BufferId bufferId = mSeq++; in addNewBuffer() local
[all …]
H A DConnection.cpp27 Return<void> Connection::fetch(uint64_t transactionId, uint32_t bufferId, fetch_cb _hidl_cb) { in fetch() argument
30 if (bufferId != SYNC_BUFFERID) { in fetch()
33 mConnectionId, transactionId, bufferId, &handle); in fetch()
36 buffer.id = bufferId; in fetch()
79 const std::vector<uint8_t> &params, BufferId *bufferId, in allocate() argument
82 return mAccessor->allocate(mConnectionId, params, bufferId, handle); in allocate()
H A DBufferStatus.cpp45 bool isBufferInRange(BufferId from, BufferId to, BufferId bufferId) { in isBufferInRange() argument
47 return from <= bufferId && bufferId < to; in isBufferInRange()
49 return from <= bufferId || bufferId < to; in isBufferInRange()
140 message.bufferId = id; in postBufferRelease()
164 message.bufferId = invalidateId; in postBufferInvalidateAck()
179 TransactionId transactionId, BufferId bufferId, in postBufferStatusMessage() argument
190 release.bufferId = id; in postBufferStatusMessage()
203 message.bufferId = bufferId; in postBufferStatusMessage()
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/src/
H A DClientCompositionRequestCache.cpp65 return lhs.bufferId == rhs.bufferId && lhs.frameNumber == rhs.frameNumber && in layerSettingsAreEqual()
90 uint64_t bufferId, const renderengine::DisplaySettings& display, in exists() argument
93 if (cachedBufferId == bufferId) { in exists()
100 void ClientCompositionRequestCache::add(uint64_t bufferId, in add() argument
105 if (cachedBufferId == bufferId) { in add()
115 mCache.emplace_back(bufferId, std::move(request)); in add()
118 void ClientCompositionRequestCache::remove(uint64_t bufferId) { in remove() argument
120 if (it->first == bufferId) { in remove()
/aosp12/frameworks/av/media/libmediatranscoding/transcoder/include/media/
H A DMediaSample.h80 uint8_t* buffer, size_t dataOffset, uint32_t bufferId, in createWithReleaseCallback()
82 MediaSample* sample = new MediaSample(buffer, dataOffset, bufferId, releaseCallback); in createWithReleaseCallback()
102 uint32_t bufferId = 0xBAADF00D; member
110 MediaSample(uint8_t* buffer, size_t dataOffset, uint32_t bufferId, in MediaSample()
114 bufferId(bufferId), in MediaSample()
/aosp12/hardware/interfaces/camera/device/1.0/
H A DICameraDevicePreviewCallback.hal32 * @return bufferId A unique ID for the returned buffer.
33 * @return buffer A handle to the buffer to write into. Must be non-null if the bufferId has not
34 * been seen by HAL before. Must be null if the bufferId is seen before. HAL must keep track
35 * of the bufferId to actual buffer handle mapping.
38 dequeueBuffer() generates (Status status, uint64_t bufferId, handle buffer, uint32_t stride);
43 * @param bufferId The bufferId of the preview buffer
46 enqueueBuffer(uint64_t bufferId) generates (Status status);
53 * @param bufferId The bufferId of the preview buffer
56 cancelBuffer(uint64_t bufferId) generates (Status status);
/aosp12/frameworks/native/services/surfaceflinger/
H A DBufferQueueLayer.cpp380 void BufferQueueLayer::onFrameDequeued(const uint64_t bufferId) { in onFrameDequeued() argument
387 void BufferQueueLayer::onFrameDetached(const uint64_t bufferId) { in onFrameDetached() argument
394 void BufferQueueLayer::onFrameCancelled(const uint64_t bufferId) { in onFrameCancelled() argument
402 const uint64_t bufferId = item.mGraphicBuffer->getId(); in onFrameAvailable() local
405 mFlinger->mFrameTracer->traceFence(layerId, bufferId, item.mFrameNumber, in onFrameAvailable()
478 const uint64_t bufferId = item.mGraphicBuffer->getId(); in onFrameReplaced() local
481 mFlinger->mFrameTracer->traceFence(layerId, bufferId, item.mFrameNumber, in onFrameReplaced()
597 void BufferQueueLayer::ContentsChangedListener::onFrameDequeued(const uint64_t bufferId) { in onFrameDequeued() argument
600 mBufferQueueLayer->onFrameDequeued(bufferId); in onFrameDequeued()
607 mBufferQueueLayer->onFrameDetached(bufferId); in onFrameDetached()
[all …]
H A DBufferQueueLayer.h82 void onFrameDequeued(const uint64_t bufferId) override;
83 void onFrameDetached(const uint64_t bufferId) override;
84 void onFrameCancelled(const uint64_t bufferId) override;
113 void onFrameDequeued(const uint64_t bufferId);
114 void onFrameDetached(const uint64_t bufferId);
115 void onFrameCancelled(const uint64_t bufferId);
/aosp12/hardware/interfaces/automotive/evs/1.1/default/
H A DEvsCamera.cpp174 returnBuffer(buffer.bufferId, buffer.memHandle); in doneWithFrame()
535 newBuffer.bufferId = idx; in generateFrames()
649 newBufDesc.bufferId = buff.bufferId; in fillTestFrame()
660 } else if (bufferId >= mBuffers.size()) { in returnBuffer()
662 bufferId, mBuffers.size()-1); in returnBuffer()
663 } else if (!mBuffers[bufferId].inUse) { in returnBuffer()
665 bufferId); in returnBuffer()
668 mBuffers[bufferId].inUse = false; in returnBuffer()
673 if (bufferId >= mFramesAllowed) { in returnBuffer()
677 rec.handle = mBuffers[bufferId].handle; in returnBuffer()
[all …]
/aosp12/frameworks/native/libs/gui/
H A DIConsumerListener.cpp50 void onFrameDequeued(const uint64_t bufferId) override { in onFrameDequeued() argument
52 bufferId); in onFrameDequeued()
55 void onFrameDetached(const uint64_t bufferId) override { in onFrameDetached() argument
57 bufferId); in onFrameDetached()
60 void onFrameCancelled(const uint64_t bufferId) override { in onFrameCancelled() argument
62 bufferId); in onFrameCancelled()
H A DBufferQueue.cpp46 void BufferQueue::ProxyConsumerListener::onFrameDequeued(const uint64_t bufferId) { in onFrameDequeued() argument
49 listener->onFrameDequeued(bufferId); in onFrameDequeued()
53 void BufferQueue::ProxyConsumerListener::onFrameCancelled(const uint64_t bufferId) { in onFrameCancelled() argument
56 listener->onFrameCancelled(bufferId); in onFrameCancelled()
60 void BufferQueue::ProxyConsumerListener::onFrameDetached(const uint64_t bufferId) { in onFrameDetached() argument
63 listener->onFrameDetached(bufferId); in onFrameDetached()
/aosp12/hardware/interfaces/automotive/evs/1.0/default/
H A DEvsCamera.cpp182 } else if (buffer.bufferId >= mBuffers.size()) { in doneWithFrame()
184 buffer.bufferId, mBuffers.size()-1); in doneWithFrame()
185 } else if (!mBuffers[buffer.bufferId].inUse) { in doneWithFrame()
187 buffer.bufferId); in doneWithFrame()
190 mBuffers[buffer.bufferId].inUse = false; in doneWithFrame()
195 if (buffer.bufferId >= mFramesAllowed) { in doneWithFrame()
199 rec.handle = mBuffers[buffer.bufferId].handle; in doneWithFrame()
200 mBuffers[buffer.bufferId].handle = nullptr; in doneWithFrame()
429 buff.bufferId = idx; in generateFrames()
438 ALOGD("Delivered %p as id %d", buff.memHandle.getNativeHandle(), buff.bufferId); in generateFrames()
/aosp12/packages/services/Car/cpp/evs/support_library/
H A DStreamHandler.cpp123 || (buffer.bufferId != mOriginalBuffers[mHeldBuffer].bufferId)) { in doneWithFrame()
126 mOriginalBuffers[mHeldBuffer].bufferId, buffer.bufferId); in doneWithFrame()
140 buffer.memHandle.getNativeHandle(), buffer.bufferId); in deliverFrame()
301 output.bufferId = input.bufferId; in processFrame()
396 mAnalyzeBuffer.bufferId = input.bufferId; in copyAndAnalyzeFrame()
/aosp12/frameworks/native/services/surfaceflinger/tests/unittests/
H A DTransactionFrameTracerTest.cpp109 uint64_t bufferId = buffer->getBuffer()->getId(); in BLASTTransactionSendsFrameTracerEvents() local
115 traceTimestamp(layerId, bufferId, frameNumber, dequeueTime, in BLASTTransactionSendsFrameTracerEvents()
118 traceTimestamp(layerId, bufferId, frameNumber, postTime, in BLASTTransactionSendsFrameTracerEvents()
128 traceFence(layerId, bufferId, frameNumber, _, in BLASTTransactionSendsFrameTracerEvents()
131 traceTimestamp(layerId, bufferId, frameNumber, latchTime, in BLASTTransactionSendsFrameTracerEvents()
139 traceFence(layerId, bufferId, frameNumber, presentFence, in BLASTTransactionSendsFrameTracerEvents()
/aosp12/frameworks/av/media/codec2/sfplugin/
H A DOmx2IGraphicBufferSource.cpp53 BnStatus onInputBufferAdded(int32_t bufferId) override { in onInputBufferAdded()
54 return mBase->onInputBufferAdded(bufferId); in onInputBufferAdded()
57 int32_t bufferId, in onInputBufferEmptied()
59 return mBase->onInputBufferEmptied(bufferId, fenceParcel.get()); in onInputBufferEmptied()
67 int32_t bufferId, uint32_t flags, in emptyBuffer()
70 return mBase->emptyBuffer(bufferId, buffer, flags, timestamp, fenceFd); in emptyBuffer()
/aosp12/packages/services/Car/cpp/computepipe/tests/runner/stream_manager/
H A DPixelStreamManagerTest.cpp96 int bufferId = 10; in TEST() local
99 PixelMemHandle memHandle(bufferId, streamId, AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN); in TEST()
101 EXPECT_EQ(memHandle.getBufferId(), bufferId); in TEST()
124 int bufferId = 10; in TEST() local
127 PixelMemHandle memHandle(bufferId, streamId, AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN); in TEST()
129 EXPECT_EQ(memHandle.getBufferId(), bufferId); in TEST()
149 int bufferId = 10; in TEST() local
152 PixelMemHandle memHandle(bufferId, streamId, AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN); in TEST()
154 EXPECT_EQ(memHandle.getBufferId(), bufferId); in TEST()
174 int bufferId = 10; in TEST() local
[all …]
/aosp12/packages/services/Car/cpp/evs/manager/1.1/emul/
H A DEvsEmulatedCamera.cpp275 doneWithFrame_impl(buffer.bufferId, buffer.memHandle); in doneWithFrame()
353 doneWithFrame_impl(buffer.bufferId, buffer.buffer.nativeHandle); in doneWithFrame_1_1()
526 EvsResult EvsEmulatedCamera::doneWithFrame_impl(const uint32_t bufferId, in doneWithFrame_impl() argument
536 } else if (bufferId >= mBuffers.size()) { in doneWithFrame_impl()
539 } else if (!mBuffers[bufferId].inUse) { in doneWithFrame_impl()
544 mBuffers[bufferId].inUse = false; in doneWithFrame_impl()
549 if (bufferId >= mFramesAllowed) { in doneWithFrame_impl()
553 rec.handle = mBuffers[bufferId].handle; in doneWithFrame_impl()
554 mBuffers[bufferId].handle = nullptr; in doneWithFrame_impl()
744 bufDesc_1_1.bufferId = idx; in forwardFrame()
[all …]
/aosp12/frameworks/av/services/camera/libcameraservice/device3/
H A DBufferUtils.cpp111 uint64_t bufferId = BUFFER_ID_NO_BUFFER; in removeOneBufferCache() local
126 bufferId = it->second; in removeOneBufferCache()
131 return bufferId; in removeOneBufferCache()
229 uint64_t bufferId, buffer_handle_t* buf, int32_t streamId) { in pushInflightRequestBuffer() argument
231 auto pair = mRequestedBufferMap.insert({bufferId, {streamId, buf}}); in pushInflightRequestBuffer()
234 __FUNCTION__, bufferId); in pushInflightRequestBuffer()
242 uint64_t bufferId, in popInflightRequestBuffer() argument
250 auto it = mRequestedBufferMap.find(bufferId); in popInflightRequestBuffer()
253 __FUNCTION__, bufferId); in popInflightRequestBuffer()
/aosp12/frameworks/av/media/libstagefright/omx/
H A DOmxGraphicBufferSource.cpp44 int32_t bufferId, const sp<GraphicBuffer> &buffer, in submitBuffer() argument
47 bufferId, OMX_BUFFERFLAG_ENDOFFRAME, buffer, timestamp, fenceFd); in submitBuffer()
50 status_t submitEos(int32_t bufferId) override { in submitEos() argument
51 return mOmxNode->emptyBuffer(bufferId, OMX_BUFFERFLAG_ENDOFFRAME | OMX_BUFFERFLAG_EOS); in submitEos()
/aosp12/frameworks/native/libs/gui/include/gui/
H A DITransactionCompletedListener.h60 uint64_t bufferId; variable
63 ReleaseCallbackId(uint64_t bufferId, uint64_t framenumber) in ReleaseCallbackId() argument
64 : bufferId(bufferId), framenumber(framenumber) {} in ReleaseCallbackId()
69 return bufferId == rhs.bufferId && framenumber == rhs.framenumber;
75 return "bufferId:" + std::to_string(bufferId) + in to_string()
82 return std::hash<uint64_t>()(key.bufferId); in operator()

12345678