Lines Matching refs:clientBuffer
224 if (mBuffers[i].clientBuffer == nullptr in assignSlot()
226 mBuffers[i].clientBuffer = buffer; in assignSlot()
238 sp<Codec2Buffer> clientBuffer; in releaseSlot() local
241 if (mBuffers[i].clientBuffer == buffer) { in releaseSlot()
242 clientBuffer = mBuffers[i].clientBuffer; in releaseSlot()
244 mBuffers[i].clientBuffer.clear(); in releaseSlot()
250 if (clientBuffer == nullptr) { in releaseSlot()
256 result = clientBuffer->asC2Buffer(); in releaseSlot()
289 return (entry.clientBuffer != nullptr); in numClientBuffers()
310 sp<Codec2Buffer> clientBuffer = impl.mBuffers[i].clientBuffer; in initialize() local
311 bool ownedByClient = (clientBuffer != nullptr); in initialize()
313 clientBuffer = allocate(); in initialize()
315 mBuffers.push_back({ clientBuffer, impl.mBuffers[i].compBuffer, ownedByClient }); in initialize()
332 if (match(mBuffers[i].clientBuffer)) { in grabBuffer()
334 *buffer = mBuffers[i].clientBuffer; in grabBuffer()
351 sp<Codec2Buffer> clientBuffer; in returnBuffer() local
354 if (mBuffers[i].clientBuffer == buffer) { in returnBuffer()
359 clientBuffer = mBuffers[i].clientBuffer; in returnBuffer()
367 if (clientBuffer == nullptr) { in returnBuffer()
374 result = clientBuffer->asC2Buffer(); in returnBuffer()
408 array->push(entry.clientBuffer); in getArray()
807 sp<MediaCodecBuffer> *clientBuffer) { in registerBuffer() argument
812 [buffer](const sp<Codec2Buffer> &clientBuffer) { in registerBuffer() argument
813 return clientBuffer->canCopy(buffer); in registerBuffer()
829 *clientBuffer = c2Buffer; in registerBuffer()
837 sp<MediaCodecBuffer> *clientBuffer) { in registerCsd() argument
842 [csd](const sp<Codec2Buffer> &clientBuffer) { in registerCsd() argument
843 return clientBuffer->base() != nullptr in registerCsd()
844 && clientBuffer->capacity() >= csd->flexCount(); in registerCsd()
852 *clientBuffer = c2Buffer; in registerCsd()
929 sp<MediaCodecBuffer> *clientBuffer) { in registerBuffer() argument
937 *clientBuffer = newBuffer; in registerBuffer()
945 sp<MediaCodecBuffer> *clientBuffer) { in registerCsd() argument
949 *clientBuffer = newBuffer; in registerCsd()
1004 sp<Codec2Buffer> clientBuffer = ConstLinearBlockBuffer::Allocate(mFormat, buffer); in wrap() local
1005 if (clientBuffer == nullptr) { in wrap()
1009 submit(clientBuffer); in wrap()
1010 return clientBuffer; in wrap()