Home
last modified time | relevance | path

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

123

/frameworks/av/media/bufferpool/1.0/
DAccessorImpl.cpp75 mBufferId = message.bufferId; in TransactionStatus()
176 BufferId *bufferId, const native_handle_t** handle) { in allocate() argument
180 if (!mBufferPool.getFreeBuffer(mAllocator, params, bufferId, handle)) { in allocate()
187 status = mBufferPool.addNewBuffer(alloc, allocSize, params, bufferId, handle); in allocate()
190 status == ResultStatus::OK, *bufferId, *handle); in allocate()
194 mBufferPool.handleOwnBuffer(connectionId, *bufferId); in allocate()
202 BufferId bufferId, const native_handle_t** handle) { in fetch() argument
211 found->second->mBufferId == bufferId) { in fetch()
213 auto bufferIt = mBufferPool.mBuffers.find(bufferId); in fetch()
259 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()
DBufferStatus.cpp127 message.bufferId = id; in postBufferRelease()
143 TransactionId transactionId, BufferId bufferId, in postBufferStatusMessage() argument
154 release.bufferId = id; in postBufferStatusMessage()
167 message.bufferId = bufferId; in postBufferStatusMessage()
DAccessorImpl.h50 BufferId *bufferId,
55 BufferId bufferId,
189 bool handleOwnBuffer(ConnectionId connectionId, BufferId bufferId);
200 bool handleReleaseBuffer(ConnectionId connectionId, BufferId bufferId);
DAccessor.cpp147 BufferId *bufferId, const native_handle_t** handle) { in allocate() argument
149 return mImpl->allocate(connectionId, params, bufferId, handle); in allocate()
156 BufferId bufferId, const native_handle_t** handle) { in fetch() argument
158 return mImpl->fetch(connectionId, transactionId, bufferId, handle); in fetch()
DConnection.h44 Return<void> fetch(uint64_t transactionId, uint32_t bufferId, fetch_cb _hidl_cb) override;
60 BufferId *bufferId, const native_handle_t **handle);
/frameworks/av/media/bufferpool/2.0/
DAccessorImpl.cpp82 mBufferId = message.bufferId; in TransactionStatus()
193 BufferId *bufferId, const native_handle_t** handle) { in allocate() argument
197 if (!mBufferPool.getFreeBuffer(mAllocator, params, bufferId, handle)) { in allocate()
204 status = mBufferPool.addNewBuffer(alloc, allocSize, params, bufferId, handle); in allocate()
207 status == ResultStatus::OK, *bufferId, *handle); in allocate()
211 mBufferPool.handleOwnBuffer(connectionId, *bufferId); in allocate()
219 BufferId bufferId, const native_handle_t** handle) { in fetch() argument
228 found->second->mBufferId == bufferId) { in fetch()
230 auto bufferIt = mBufferPool.mBuffers.find(bufferId); in fetch()
339 BufferId bufferId, in onBufferInvalidated() argument
[all …]
DBufferPoolClient.cpp70 TransactionId transactionId, BufferId bufferId,
74 void postBufferRelease(BufferId bufferId);
77 BufferId bufferId, ConnectionId receiver,
82 BufferId bufferId, TransactionId transactionId,
86 BufferId bufferId, TransactionId transactionId, bool result, bool *needsSync);
99 const std::vector<uint8_t>& params, BufferId *bufferId,
103 TransactionId transactionId, BufferId bufferId,
357 BufferId bufferId; in allocate() local
360 ResultStatus status = allocateBufferHandle(params, &bufferId, &handle); in allocate()
366 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()
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()
DAccessorImpl.h56 BufferId *bufferId,
61 BufferId bufferId,
133 bool isInvalidated(uint32_t bufferId) { in isInvalidated()
134 return isBufferInRange(mFrom, mTo, bufferId) && --mLeft == 0; in isInvalidated()
153 BufferId bufferId,
265 bool handleOwnBuffer(ConnectionId connectionId, BufferId bufferId);
276 bool handleReleaseBuffer(ConnectionId connectionId, BufferId bufferId);
DConnection.h44 Return<void> fetch(uint64_t transactionId, uint32_t bufferId, fetch_cb _hidl_cb) override;
65 BufferId *bufferId, const native_handle_t **handle);
/frameworks/av/media/codec2/hidl/1.0/utils/
DInputBufferManager.cpp82 const TrackedBuffer &bufferId = in _registerFrameData() local
88 const_cast<void*>(reinterpret_cast<const void*>(&bufferId))); in _registerFrameData()
127 for (const TrackedBuffer& bufferId : bufferIds) { in _unregisterFrameData() local
128 std::shared_ptr<C2Buffer> buffer = bufferId.buffer.lock(); in _unregisterFrameData()
133 reinterpret_cast<const void*>(&bufferId))); in _unregisterFrameData()
139 << bufferId.listener.unsafe_get() in _unregisterFrameData()
141 << std::dec << bufferId.frameIndex in _unregisterFrameData()
142 << ", bufferIndex = " << bufferId.bufferIndex in _unregisterFrameData()
188 for (const TrackedBuffer& bufferId : bufferIds) { in _unregisterFrameData() local
189 std::shared_ptr<C2Buffer> buffer = bufferId.buffer.lock(); in _unregisterFrameData()
[all …]
/frameworks/av/media/libstagefright/omx/
DOmxGraphicBufferSource.cpp38 int32_t bufferId, const sp<GraphicBuffer> &buffer, in submitBuffer() argument
41 bufferId, OMX_BUFFERFLAG_ENDOFFRAME, buffer, timestamp, fenceFd); in submitBuffer()
44 status_t submitEos(int32_t bufferId) override { in submitEos() argument
45 return mOmxNode->emptyBuffer(bufferId, OMX_BUFFERFLAG_ENDOFFRAME | OMX_BUFFERFLAG_EOS); in submitEos()
/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/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/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()
DWGraphicBufferSource.cpp45 int32_t bufferId, uint32_t flags, in emptyBuffer()
51 bufferId, in emptyBuffer()
102 Return<void> onInputBufferAdded(uint32_t bufferId) override { in onInputBufferAdded()
103 mSource->onInputBufferAdded(static_cast<int32_t>(bufferId)); in onInputBufferAdded()
108 uint32_t bufferId, hidl_handle const& tFence) override { in onInputBufferEmptied()
110 static_cast<int32_t>(bufferId), in onInputBufferEmptied()
/frameworks/av/media/libstagefright/
DACodecBufferChannel.cpp63 IOMX::buffer_id bufferId) { in findBufferId() argument
66 [bufferId](const BufferInfo &info) { return bufferId == info.mBufferId; }); in findBufferId()
71 IOMX::buffer_id bufferId, in BufferInfo() argument
78 mBufferId(bufferId), in BufferInfo()
380 void ACodecBufferChannel::fillThisBuffer(IOMX::buffer_id bufferId) { in fillThisBuffer() argument
381 ALOGV("fillThisBuffer #%d", bufferId); in fillThisBuffer()
384 BufferInfoIterator it = findBufferId(array, bufferId); in fillThisBuffer()
387 ALOGE("fillThisBuffer: unrecognized buffer #%d", bufferId); in fillThisBuffer()
400 IOMX::buffer_id bufferId, in drainThisBuffer() argument
402 ALOGV("drainThisBuffer #%d", bufferId); in drainThisBuffer()
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DCryptoPlugin.cpp36 const hidl_memory& base, uint32_t bufferId) { in setSharedBufferBase() argument
41 mSharedBufferMap[bufferId] = hidlMemory; in setSharedBufferBase()
97 if (mSharedBufferMap.find(source.bufferId) == mSharedBufferMap.end()) { in decrypt_1_2()
105 if (mSharedBufferMap.find(dest.bufferId) == mSharedBufferMap.end()) { in decrypt_1_2()
116 sp<IMemory> sourceBase = mSharedBufferMap[source.bufferId]; in decrypt_1_2()
133 sp<IMemory> destBase = mSharedBufferMap[destBuffer.bufferId]; in decrypt_1_2()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3StreamSplitter.cpp353 uint64_t bufferId = bufferItem.mGraphicBuffer->getId(); in outputBufferLocked() local
354 const BufferTracker& tracker = *(mBuffers[bufferId]); in outputBufferLocked()
404 uint64_t bufferId = buffer->getId(); in notifyBufferReleased() local
405 std::unique_ptr<BufferTracker> tracker_ptr = std::move(mBuffers[bufferId]); in notifyBufferReleased()
406 mBuffers.erase(bufferId); in notifyBufferReleased()
419 uint64_t bufferId = gb->getId(); in attachBufferToOutputs() local
473 mBuffers[bufferId] = std::move(tracker); in attachBufferToOutputs()
491 uint64_t bufferId; in onFrameAvailable() local
502 bufferId = bufferItem.mGraphicBuffer->getId(); in onFrameAvailable()
504 if (mBuffers.find(bufferId) == mBuffers.end()) { in onFrameAvailable()
[all …]
/frameworks/av/media/libstagefright/bqhelper/include/media/stagefright/bqhelper/
DComponentWrapper.h30 int32_t bufferId, const sp<GraphicBuffer> &buffer = nullptr,
32 virtual status_t submitEos(int32_t bufferId) = 0;
/frameworks/wilhelm/src/android/
Dandroid_StreamPlayer.cpp129 size_t bufferId; in pullFromBuffQueue() local
200 bufferId = *mAvailableBuffers.begin(); in pullFromBuffQueue()
201 CHECK_LT(bufferId, mBuffers.size()); in pullFromBuffQueue()
202 sp<IMemory> mem = mBuffers.itemAt(bufferId); in pullFromBuffQueue()
214 receivedBuffer_l(bufferId, buffSize); in pullFromBuffQueue()
239 receivedBuffer_l(bufferId, consumed); in pullFromBuffQueue()
/frameworks/base/media/java/android/media/
DMediaSync.java131 @NonNull MediaSync sync, @NonNull ByteBuffer audioBuffer, int bufferId); in onAudioBufferConsumed() argument
177 public AudioBuffer(@NonNull ByteBuffer byteBuffer, int bufferId, in AudioBuffer() argument
180 mBufferIndex = bufferId; in AudioBuffer()
508 @NonNull ByteBuffer audioData, int bufferId, long presentationTimeUs) { in queueAudio() argument
515 mAudioBuffers.add(new AudioBuffer(audioData, bufferId, presentationTimeUs)); in queueAudio()

123