Home
last modified time | relevance | path

Searched refs:mBuffers (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/base/core/java/android/util/proto/
DEncodedBuffer.java40 private final ArrayList<byte[]> mBuffers = new ArrayList<byte[]>(); field in EncodedBuffer
110 mBuffers.add(mWriteBuffer); in EncodedBuffer()
125 mWriteBuffer = mBuffers.get(0); in startEditing()
138 mReadBuffer = mBuffers.get(0); in rewindRead()
190 mReadBuffer = mBuffers.get(mReadBufIndex); in skipRead()
209 mReadBuffer = mBuffers.get(mReadBufIndex); in readRawByte()
260 mBuffers.add(mWriteBuffer); in nextWriteBuffer()
263 mWriteBuffer = mBuffers.get(mWriteBufIndex); in nextWriteBuffer()
463 mWriteBuffer = mBuffers.get(mWriteBufIndex);
470 byte[] readBuffer = mBuffers.get(readBufIndex);
[all …]
/frameworks/av/media/libstagefright/mpeg2ts/
DAnotherPacketSource.cpp98 List<sp<ABuffer> >::iterator it = mBuffers.begin(); in getFormat()
99 while (it != mBuffers.end()) { in getFormat()
119 while (mEOSResult == OK && mBuffers.empty()) { in dequeueAccessUnit()
123 if (!mBuffers.empty()) { in dequeueAccessUnit()
124 *buffer = *mBuffers.begin(); in dequeueAccessUnit()
125 mBuffers.erase(mBuffers.begin()); in dequeueAccessUnit()
162 mBuffers.push_front(buffer); in requeueAccessUnit()
170 while (mEOSResult == OK && mBuffers.empty()) { in read()
174 if (!mBuffers.empty()) { in read()
176 const sp<ABuffer> buffer = *mBuffers.begin(); in read()
[all …]
/frameworks/av/media/libstagefright/foundation/
DMediaBufferGroup.cpp43 std::list<MediaBufferBase *> mBuffers; member
105 for (MediaBufferBase *buffer : mInternal->mBuffers) { in ~MediaBufferGroup()
135 for (auto it = mInternal->mBuffers.begin(); in add_buffer()
137 && mInternal->mBuffers.size() >= mInternal->mGrowthLimit in add_buffer()
138 && it != mInternal->mBuffers.end();) { in add_buffer()
142 it = mInternal->mBuffers.erase(it); in add_buffer()
149 mInternal->mBuffers.emplace_back(buffer); in add_buffer()
153 if (mInternal->mBuffers.size() < mInternal->mGrowthLimit) { in has_buffers()
156 for (MediaBufferBase *buffer : mInternal->mBuffers) { in has_buffers()
171 auto free = mInternal->mBuffers.end(); in acquire_buffer()
[all …]
/frameworks/av/media/codec2/sfplugin/
DCCodecBuffers.cpp223 for (size_t i = 0; i < mBuffers.size(); ++i) { in assignSlot()
224 if (mBuffers[i].clientBuffer == nullptr in assignSlot()
225 && mBuffers[i].compBuffer.expired()) { in assignSlot()
226 mBuffers[i].clientBuffer = buffer; in assignSlot()
230 mBuffers.push_back({ buffer, std::weak_ptr<C2Buffer>() }); in assignSlot()
231 return mBuffers.size() - 1; in assignSlot()
239 size_t index = mBuffers.size(); in releaseSlot()
240 for (size_t i = 0; i < mBuffers.size(); ++i) { in releaseSlot()
241 if (mBuffers[i].clientBuffer == buffer) { in releaseSlot()
242 clientBuffer = mBuffers[i].clientBuffer; in releaseSlot()
[all …]
/frameworks/native/opengl/libagl/
DBufferObjectManager.cpp45 GLsizei n = mBuffers.size(); in ~EGLBufferObjectManager()
47 buffer_t* bo = mBuffers.valueAt(i); in ~EGLBufferObjectManager()
56 int32_t i = mBuffers.indexOfKey(buffer); in bind()
58 return mBuffers.valueAt(i); in bind()
65 mBuffers.add(buffer, bo); in bind()
91 int32_t index = mBuffers.indexOfKey(t); in deleteBuffers()
93 buffer_t* bo = mBuffers.valueAt(index); in deleteBuffers()
95 mBuffers.removeItemsAt(index); in deleteBuffers()
/frameworks/native/services/surfaceflinger/
DClientCache.cpp39 auto it = mBuffers.find(processToken); in getBuffer()
40 if (it == mBuffers.end()) { in getBuffer()
75 auto it = mBuffers.find(processToken); in add()
76 if (it == mBuffers.end()) { in add()
89 mBuffers.emplace(processToken, std::unordered_map<uint64_t, ClientCacheBuffer>()); in add()
123 mBuffers[processToken].erase(id); in erase()
177 auto itr = mBuffers.find(processToken); in removeProcess()
178 if (itr == mBuffers.end()) { in removeProcess()
192 mBuffers.erase(itr); in removeProcess()
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DBufferPool.java28 private final ByteBuffer[] mBuffers; field in BufferPool
35 mBuffers = new ByteBuffer[maxBuffers]; in BufferPool()
43 return grow(mBuffers[mAvailable], needed); in acquire()
46 if (mAllocated < mBuffers.length) { in acquire()
62 mBuffers[mAvailable++] = buffer; in release()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DCamera2Heap.h34 mBuffers = new sp<MemoryBase>[mNumBufs]; in mBufSize()
36 mBuffers[i] = new MemoryBase(mHeap, in mBufSize()
43 delete [] mBuffers; in ~Camera2Heap()
49 sp<MemoryBase> *mBuffers; variable
DJpegCompressor.cpp51 mBuffers = buffers; in start()
78 mAuxBuffer = mBuffers[0]; // input in threadLoop()
79 mJpegBuffer = mBuffers[1]; // output in threadLoop()
151 if (mBuffers.size() && mIsBusy) { in isStreamInUse()
152 for (size_t i = 0; i < mBuffers.size(); i++) { in isStreamInUse()
/frameworks/native/libs/gui/
DStreamSplitter.cpp61 mOutstandingBuffers(0), mInput(inputQueue), mOutputs(), mBuffers() {} in StreamSplitter()
70 if (mBuffers.size() > 0) { in ~StreamSplitter()
71 ALOGE("%zu buffers still being tracked", mBuffers.size()); in ~StreamSplitter()
142 mBuffers.add(bufferItem.mGraphicBuffer->getId(), in onFrameAvailable()
161 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable()
176 mBuffers.editValueFor(bufferItem.mGraphicBuffer->getId())-> in onFrameAvailable()
210 const sp<BufferTracker>& tracker = mBuffers.editValueFor(buffer->getId()); in onBufferReleasedByOutput()
227 mBuffers.removeItem(buffer->getId()); in onBufferReleasedByOutput()
246 mBuffers.removeItem(buffer->getId()); in onBufferReleasedByOutput()
/frameworks/av/media/bufferpool/2.0/
DAccessorImpl.cpp231 auto bufferIt = mBufferPool.mBuffers.find(bufferId); in fetch()
232 if (bufferIt != mBufferPool.mBuffers.end()) { in fetch()
426 auto iter = mBuffers.find(bufferId); in handleOwnBuffer()
437 auto iter = mBuffers.find(bufferId); in handleReleaseBuffer()
447 mBuffers.erase(iter); in handleReleaseBuffer()
466 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferTo()
467 if (bufferIter == mBuffers.end() || in handleTransferTo()
504 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferFrom()
523 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferResult()
536 mBuffers.erase(bufferIter); in handleTransferResult()
[all …]
DBufferPoolClient.cpp124 std::map<BufferId, std::unique_ptr<ClientBuffer>> mBuffers; member
366 auto cacheIt = mCache.mBuffers.find(bufferId); in allocate()
367 if (cacheIt != mCache.mBuffers.end()) { in allocate()
369 mCache.mBuffers.erase(cacheIt); in allocate()
374 auto result = mCache.mBuffers.insert(std::make_pair( in allocate()
414 auto cacheIt = mCache.mBuffers.find(bufferId); in receive()
415 if (cacheIt != mCache.mBuffers.end()) { in receive()
446 auto result = mCache.mBuffers.insert( in receive()
607 auto found = mCache.mBuffers.find(id); in syncReleased()
608 if (found != mCache.mBuffers.end()) { in syncReleased()
[all …]
/frameworks/av/media/bufferpool/1.0/
DAccessorImpl.cpp214 auto bufferIt = mBufferPool.mBuffers.find(bufferId); in fetch()
215 if (bufferIt != mBufferPool.mBuffers.end()) { in fetch()
264 auto iter = mBuffers.find(bufferId); in handleOwnBuffer()
275 auto iter = mBuffers.find(bufferId); in handleReleaseBuffer()
297 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferTo()
298 if (bufferIter == mBuffers.end() || in handleTransferTo()
335 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferFrom()
354 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferResult()
424 auto bufferIter = mBuffers.find(bufferId); in handleClose()
447 auto bufferIter = mBuffers.find(bufferId); in handleClose()
[all …]
DBufferPoolClient.cpp115 std::map<BufferId, std::unique_ptr<ClientBuffer>> mBuffers; member
317 auto cacheIt = mCache.mBuffers.find(bufferId); in allocate()
318 if (cacheIt != mCache.mBuffers.end()) { in allocate()
320 mCache.mBuffers.erase(cacheIt); in allocate()
325 auto result = mCache.mBuffers.insert(std::make_pair( in allocate()
365 auto cacheIt = mCache.mBuffers.find(bufferId); in receive()
366 if (cacheIt != mCache.mBuffers.end()) { in receive()
397 auto result = mCache.mBuffers.insert( in receive()
551 auto found = mCache.mBuffers.find(id); in syncReleased()
552 if (found != mCache.mBuffers.end()) { in syncReleased()
[all …]
/frameworks/av/media/libstagefright/filters/
DMediaFilter.cpp216 CHECK(mBuffers[portIndex].isEmpty()); in allocateBuffersOnPort()
239 mBuffers[portIndex].push_back(info); in allocateBuffersOnPort()
243 &mBuffers[portIndex].editItemAt(i)); in allocateBuffersOnPort()
247 std::vector<ACodecBufferChannel::BufferAndId> array(mBuffers[portIndex].size()); in allocateBuffersOnPort()
248 for (size_t i = 0; i < mBuffers[portIndex].size(); ++i) { in allocateBuffersOnPort()
249 array[i] = {mBuffers[portIndex][i].mData, mBuffers[portIndex][i].mBufferID}; in allocateBuffersOnPort()
263 for (size_t i = 0; i < mBuffers[portIndex].size(); ++i) { in findBufferByID()
264 BufferInfo *info = &mBuffers[portIndex].editItemAt(i); in findBufferByID()
323 for (size_t i = 0; i < mBuffers[kPortIndexInput].size(); ++i) { in requestFillEmptyInput()
324 BufferInfo *info = &mBuffers[kPortIndexInput].editItemAt(i); in requestFillEmptyInput()
[all …]
/frameworks/av/media/libstagefright/omx/
DSimpleSoftOMXComponent.cpp263 CHECK_LT(port->mBuffers.size(), port->mDef.nBufferCountActual); in useBuffer()
265 port->mBuffers.push(); in useBuffer()
268 &port->mBuffers.editItemAt(port->mBuffers.size() - 1); in useBuffer()
273 if (port->mBuffers.size() == port->mDef.nBufferCountActual) { in useBuffer()
319 for (size_t i = 0; i < port->mBuffers.size(); ++i) { in freeBuffer()
320 BufferInfo *buffer = &port->mBuffers.editItemAt(i); in freeBuffer()
336 port->mBuffers.removeAt(i); in freeBuffer()
413 for (size_t j = 0; j < port->mBuffers.size(); ++j) { in onMessageReceived()
414 BufferInfo *buffer = &port->mBuffers.editItemAt(j); in onMessageReceived()
544 for (size_t i = 0; i < port->mBuffers.size(); ++i) { in onPortEnable()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DHwcBufferCache.cpp24 std::fill(std::begin(mBuffers), std::end(mBuffers), wp<GraphicBuffer>(nullptr)); in HwcBufferCache()
37 auto& currentBuffer = mBuffers[*outSlot]; in getHwcBuffer()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3StreamSplitter.cpp57 if (mBuffers.size() > 0) { in connect()
58 SP_LOGE("%s: still has %zu pending buffers", __FUNCTION__, mBuffers.size()); in connect()
146 if (mBuffers.size() > 0) { in disconnect()
147 SP_LOGW("%zu buffers still being tracked", mBuffers.size()); in disconnect()
148 mBuffers.clear(); in disconnect()
356 const BufferTracker& tracker = *(mBuffers[bufferId]); in outputBufferLocked()
407 std::unique_ptr<BufferTracker> tracker_ptr = std::move(mBuffers[bufferId]); in notifyBufferReleased()
408 mBuffers.erase(bufferId); in notifyBufferReleased()
475 mBuffers[bufferId] = std::move(tracker); in attachBufferToOutputs()
506 if (mBuffers.find(bufferId) == mBuffers.end()) { in onFrameAvailable()
[all …]
/frameworks/base/core/jni/
Dcom_android_internal_os_FuseAppLoop.cpp49 std::map<uint64_t, std::unique_ptr<LocalBytes>> mBuffers; member in android::__anondd2e1b1b0111::Callback
71 mBuffers.insert(std::make_pair(inode, std::unique_ptr<LocalBytes>( in OnOpen()
80 mBuffers.erase(inode); in OnRelease()
87 auto it = mBuffers.find(inode); in OnRead()
88 CHECK(it != mBuffers.end()); in OnRead()
97 auto it = mBuffers.find(inode); in OnWrite()
98 CHECK(it != mBuffers.end()); in OnWrite()
/frameworks/av/media/codec2/hidl/1.0/utils/
DClientBlockHelper.cpp157 sp<GraphicBuffer> mBuffers[BufferQueueDefs::NUM_BUFFER_SLOTS]; // find a better way member in android::hardware::media::c2::V1_0::utils::OutputBufferQueue::Impl
182 if (mBqId == 0 || !mBuffers[i]) { in configure()
192 mBuffers[i]->setGenerationNumber(generation); in configure()
193 status_t result = igbp->attachBuffer(&bqSlot, mBuffers[i]); in configure()
205 buffers[bqSlot] = mBuffers[i]; in configure()
210 mBuffers[i] = buffers[i]; in configure()
247 mBuffers[oldSlot] = createGraphicBuffer(block); in registerBuffer()
248 mBuffers[oldSlot]->setGenerationNumber(mGeneration); in registerBuffer()
/frameworks/base/libs/protoutil/src/
DEncodedBuffer.cpp90 :mBuffers() in EncodedBuffer()
99 for (size_t i=0; i<mBuffers.size(); i++) { in ~EncodedBuffer()
100 uint8_t* buf = mBuffers[i]; in ~EncodedBuffer()
108 return mBuffers[p.index()] + p.offset(); in at()
135 if (mWp.index() > mBuffers.size()) return NULL; in writeBuffer()
137 if (mWp.index() == mBuffers.size()) { in writeBuffer()
142 mBuffers.push_back(buf); in writeBuffer()
/frameworks/av/cmds/stagefright/
Dstream.cpp67 Vector<sp<IMemory> > mBuffers; member
92 mBuffers = buffers; in setBuffers()
96 CHECK_LT(index, mBuffers.size()); in onBufferAvailable()
117 sp<IMemory> mem = mBuffers.itemAt(index); in onBufferAvailable()
146 Vector<sp<IMemory> > mBuffers; member
209 mBuffers = buffers; in setBuffers()
234 sp<IMemory> mem = mBuffers.itemAt(mCurrentBufferIndex); in writeData()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerStreamListener.cpp44 mBuffers.push(mem); in NuPlayerStreamListener()
46 mSource->setBuffers(mBuffers); in NuPlayerStreamListener()
147 if (entry->mIndex >= mBuffers.size()) { in read()
151 sp<IMemory> mem = mBuffers.editItemAt(entry->mIndex); in read()
/frameworks/wilhelm/src/android/
Dandroid_StreamPlayer.cpp72 mBuffers = buffers; in setBuffers()
85 CHECK_LT(index, mBuffers.size()); in onBufferAvailable()
87 sp<IMemory> mem = mBuffers.itemAt(index); in onBufferAvailable()
118 mBuffers.clear(); in disconnect()
201 CHECK_LT(bufferId, mBuffers.size()); in pullFromBuffQueue()
202 sp<IMemory> mem = mBuffers.itemAt(bufferId); in pullFromBuffQueue()
/frameworks/native/libs/gui/tests/
DBufferItemConsumer_test.cpp85 ret = mProducer->requestBuffer(slot, &mBuffers[slot]); in DequeueBuffer()
115 buffer.mGraphicBuffer = mBuffers[slot]; in ReleaseBuffer()
128 sp<GraphicBuffer> mBuffers[BufferQueueDefs::NUM_BUFFER_SLOTS]; member in android::BufferItemConsumerTest

123