Home
last modified time | relevance | path

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

123456

/frameworks/av/media/codec2/hal/hidl/1.0/utils/
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()
128 for (TrackedBuffer* bufferId : bufferIds) { in _unregisterFrameData()
129 std::shared_ptr<C2Buffer> buffer = bufferId->buffer.lock(); in _unregisterFrameData()
133 reinterpret_cast<void*>(bufferId)); in _unregisterFrameData()
139 << bufferId->listener.unsafe_get() in _unregisterFrameData()
141 << std::dec << bufferId->frameIndex in _unregisterFrameData()
142 << ", bufferIndex = " << bufferId->bufferIndex in _unregisterFrameData()
[all …]
/frameworks/av/media/codec2/hal/aidl/
DInputBufferManager.cpp81 TrackedBuffer *bufferId = in _registerFrameData() local
83 mTrackedBufferCache.emplace(bufferId); in _registerFrameData()
84 bufferIds.emplace(bufferId); in _registerFrameData()
88 reinterpret_cast<void*>(bufferId)); in _registerFrameData()
125 for (TrackedBuffer* bufferId : bufferIds) { in _unregisterFrameData()
126 std::shared_ptr<C2Buffer> buffer = bufferId->buffer.lock(); in _unregisterFrameData()
130 reinterpret_cast<void*>(bufferId)); in _unregisterFrameData()
134 << "(frameIndex = " << bufferId->frameIndex in _unregisterFrameData()
135 << ", bufferIndex = " << bufferId->bufferIndex in _unregisterFrameData()
140 mTrackedBufferCache.erase(bufferId); in _unregisterFrameData()
[all …]
/frameworks/av/media/module/bufferpool/1.0/
DAccessorImpl.cpp76 mBufferId = message.bufferId; in TransactionStatus()
182 BufferId *bufferId, const native_handle_t** handle) { in allocate() argument
186 if (!mBufferPool.getFreeBuffer(mAllocator, params, bufferId, handle)) { in allocate()
193 status = mBufferPool.addNewBuffer(alloc, allocSize, params, bufferId, handle); in allocate()
196 status == ResultStatus::OK, *bufferId, *handle); in allocate()
200 mBufferPool.handleOwnBuffer(connectionId, *bufferId); in allocate()
208 BufferId bufferId, const native_handle_t** handle) { in fetch() argument
217 found->second->mBufferId == bufferId) { in fetch()
219 auto bufferIt = mBufferPool.mBuffers.find(bufferId); in fetch()
265 ConnectionId connectionId, BufferId bufferId) { in handleOwnBuffer() argument
[all …]
DBufferPoolClient.cpp66 TransactionId transactionId, BufferId bufferId,
70 void postBufferRelease(BufferId bufferId);
73 BufferId bufferId, ConnectionId receiver,
78 BufferId bufferId, TransactionId transactionId,
82 BufferId bufferId, TransactionId transactionId, bool result, bool *needsSync);
91 const std::vector<uint8_t>& params, BufferId *bufferId,
95 TransactionId transactionId, BufferId bufferId,
308 BufferId bufferId; in allocate() local
311 ResultStatus status = allocateBufferHandle(params, &bufferId, &handle); in allocate()
317 auto cacheIt = mCache.mBuffers.find(bufferId); in allocate()
[all …]
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()
/frameworks/av/services/camera/virtualcamera/
DVirtualCameraStream.cc111 std::forward_as_tuple(buffer.bufferId), in importBuffer()
118 const int bufferId) { in getHardwareBuffer() argument
120 return getHardwareBufferLocked(bufferId); in getHardwareBuffer()
124 const EGLDisplay eglDisplay, const int bufferId) { in getEglFrameBuffer() argument
125 const FramebufferMapKey key(bufferId, eglDisplay); in getEglFrameBuffer()
135 getHardwareBufferLocked(bufferId); in getEglFrameBuffer()
148 const int bufferId) { in getHardwareBufferLocked() argument
149 auto it = mBuffers.find(bufferId); in getHardwareBufferLocked()
153 bool VirtualCameraStream::removeBuffer(int bufferId) { in removeBuffer() argument
156 return mBuffers.erase(bufferId) == 1; in removeBuffer()
DVirtualCameraSessionContext.cc65 if (stream.getHardwareBuffer(buffer.bufferId) != nullptr) { in importBuffersFromCaptureRequest()
72 buffer.bufferId, buffer.streamId); in importBuffersFromCaptureRequest()
87 __func__, bufferCache.bufferId, bufferCache.streamId); in removeBufferCaches()
90 if (it->second->removeBuffer(bufferCache.bufferId)) { in removeBufferCaches()
93 __func__, bufferCache.bufferId, bufferCache.streamId); in removeBufferCaches()
96 __func__, bufferCache.bufferId, bufferCache.streamId); in removeBufferCaches()
137 const int streamId, const int bufferId) const { in fetchHardwareBuffer()
146 return stream.getHardwareBuffer(bufferId); in fetchHardwareBuffer()
151 const EGLDisplay eglDisplay, const int streamId, const int bufferId) { in fetchOrCreateEglFramebuffer() argument
160 return stream.getEglFrameBuffer(eglDisplay, bufferId); in fetchOrCreateEglFramebuffer()
DVirtualCameraStream.h52 std::shared_ptr<AHardwareBuffer> getHardwareBuffer(int bufferId)
56 int bufferId)
61 bool removeBuffer(int bufferId) EXCLUDES(mLock);
67 std::shared_ptr<AHardwareBuffer> getHardwareBufferLocked(int bufferId)
/frameworks/av/media/module/bufferpool/2.0/
DBufferPoolClient.cpp72 TransactionId transactionId, BufferId bufferId,
76 void postBufferRelease(BufferId bufferId);
79 BufferId bufferId, ConnectionId receiver,
84 BufferId bufferId, TransactionId transactionId,
88 BufferId bufferId, TransactionId transactionId, bool result, bool *needsSync);
101 const std::vector<uint8_t>& params, BufferId *bufferId,
105 TransactionId transactionId, BufferId bufferId,
363 BufferId bufferId; in allocate() local
366 ResultStatus status = allocateBufferHandle(params, &bufferId, &handle); in allocate()
372 auto cacheIt = mCache.mBuffers.find(bufferId); in allocate()
[all …]
DAccessorImpl.cpp90 mBufferId = message.bufferId; in TransactionStatus()
229 BufferId *bufferId, const native_handle_t** handle) { in allocate() argument
233 if (!mBufferPool.getFreeBuffer(mAllocator, params, bufferId, handle)) { in allocate()
240 status = mBufferPool.addNewBuffer(alloc, allocSize, params, bufferId, handle); in allocate()
243 status == ResultStatus::OK, *bufferId, *handle); in allocate()
247 mBufferPool.handleOwnBuffer(connectionId, *bufferId); in allocate()
256 BufferId bufferId, const native_handle_t** handle) { in fetch() argument
265 found->second->mBufferId == bufferId) { in fetch()
267 auto bufferIt = mBufferPool.mBuffers.find(bufferId); in fetch()
377 BufferId bufferId, in onBufferInvalidated() argument
[all …]
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()
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()
/frameworks/av/media/module/libmediatranscoding/transcoder/include/media/
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()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DClientCompositionRequestCache.cpp63 return lhs.bufferId == rhs.bufferId && lhs.frameNumber == rhs.frameNumber && in layerSettingsAreEqual()
88 uint64_t bufferId, const renderengine::DisplaySettings& display, in exists() argument
91 if (cachedBufferId == bufferId) { in exists()
98 void ClientCompositionRequestCache::add(uint64_t bufferId, in add() argument
103 if (cachedBufferId == bufferId) { in add()
113 mCache.emplace_back(bufferId, std::move(request)); in add()
116 void ClientCompositionRequestCache::remove(uint64_t bufferId) { in remove() argument
118 if (it->first == bufferId) { in remove()
/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionFrameTracerTest.cpp76 uint64_t bufferId = 42; in BLASTTransactionSendsFrameTracerEvents() local
82 traceTimestamp(layerId, bufferId, frameNumber, dequeueTime, in BLASTTransactionSendsFrameTracerEvents()
85 traceTimestamp(layerId, bufferId, frameNumber, postTime, in BLASTTransactionSendsFrameTracerEvents()
93 renderengine::mock::FakeExternalTexture>(1U /*width*/, 1U /*height*/, bufferId, in BLASTTransactionSendsFrameTracerEvents()
102 traceFence(layerId, bufferId, frameNumber, _, in BLASTTransactionSendsFrameTracerEvents()
105 traceTimestamp(layerId, bufferId, frameNumber, latchTime, in BLASTTransactionSendsFrameTracerEvents()
113 traceFence(layerId, bufferId, frameNumber, presentFence, in BLASTTransactionSendsFrameTracerEvents()
/frameworks/native/libs/gui/
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()
DBufferQueue.cpp41 void BufferQueue::ProxyConsumerListener::onFrameDequeued(const uint64_t bufferId) { in onFrameDequeued() argument
44 listener->onFrameDequeued(bufferId); in onFrameDequeued()
48 void BufferQueue::ProxyConsumerListener::onFrameCancelled(const uint64_t bufferId) { in onFrameCancelled() argument
51 listener->onFrameCancelled(bufferId); in onFrameCancelled()
55 void BufferQueue::ProxyConsumerListener::onFrameDetached(const uint64_t bufferId) { in onFrameDetached() argument
58 listener->onFrameDetached(bufferId); in onFrameDetached()
/frameworks/av/media/codec2/sfplugin/
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()
/frameworks/av/media/module/aidlpersistentsurface/
DAidlGraphicBufferSource.cpp39 int32_t bufferId, const sp<GraphicBuffer> &buffer, in submitBuffer() argument
42 bufferId, BUFFERFLAG_ENDOFFRAME, buffer, timestamp, fenceFd); in submitBuffer()
45 status_t submitEos(int32_t bufferId) override { in submitEos() argument
47 bufferId, BUFFERFLAG_ENDOFFRAME | BUFFERFLAG_EOS); in submitEos()
/frameworks/av/media/libstagefright/omx/1.0/
DWOmxBufferSource.cpp47 int32_t bufferId) { in onInputBufferAdded() argument
49 static_cast<uint32_t>(bufferId))); in onInputBufferAdded()
53 int32_t bufferId, OMXFenceParcelable const& fenceParcel) { in onInputBufferEmptied() argument
63 static_cast<uint32_t>(bufferId), fence)); in onInputBufferEmptied()
/frameworks/av/media/libmedia/omx/1.0/
DWOmxBufferSource.cpp47 int32_t bufferId) { in onInputBufferAdded() argument
49 static_cast<uint32_t>(bufferId))); in onInputBufferAdded()
53 int32_t bufferId, OMXFenceParcelable const& fenceParcel) { in onInputBufferEmptied() argument
63 static_cast<uint32_t>(bufferId), fence)); in onInputBufferEmptied()
/frameworks/av/media/module/aidlpersistentsurface/wrapper/
DWAidlGraphicBufferSource.cpp51 int32_t bufferId, uint32_t flags, in submitBuffer()
62 bufferId, in submitBuffer()
70 bufferId, in submitBuffer()
115 ::ndk::ScopedAStatus onInputBufferAdded(int32_t bufferId) override { in onInputBufferAdded() argument
116 mSource->onInputBufferAdded(bufferId); in onInputBufferAdded()
121 int32_t bufferId, const ::ndk::ScopedFileDescriptor& fence) override { in onInputBufferEmptied() argument
122 mSource->onInputBufferEmptied(bufferId, ::dup(fence.get())); in onInputBufferEmptied()
/frameworks/av/media/libstagefright/omx/
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()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DClientCompositionRequestCache.h44 bool exists(uint64_t bufferId, const renderengine::DisplaySettings& display,
46 void add(uint64_t bufferId, const renderengine::DisplaySettings& display,
48 void remove(uint64_t bufferId);
/frameworks/av/services/camera/libcameraservice/device3/
DBufferUtils.cpp101 uint64_t bufferId = BUFFER_ID_NO_BUFFER; in removeOneBufferCache() local
116 bufferId = it->second; in removeOneBufferCache()
121 return bufferId; in removeOneBufferCache()
219 uint64_t bufferId, buffer_handle_t* buf, int32_t streamId) { in pushInflightRequestBuffer() argument
221 auto pair = mRequestedBufferMap.insert({bufferId, {streamId, buf}}); in pushInflightRequestBuffer()
224 __FUNCTION__, bufferId); in pushInflightRequestBuffer()
232 uint64_t bufferId, in popInflightRequestBuffer() argument
240 auto it = mRequestedBufferMap.find(bufferId); in popInflightRequestBuffer()
243 __FUNCTION__, bufferId); in popInflightRequestBuffer()

123456