Lines Matching refs:clientBuffer
177 sp<MediaCodecBuffer> *clientBuffer) = 0;
443 if (mBuffers[i].clientBuffer == nullptr in assignSlot()
445 mBuffers[i].clientBuffer = buffer; in assignSlot()
468 sp<Codec2Buffer> clientBuffer; in releaseSlot() local
471 if (mBuffers[i].clientBuffer == buffer) { in releaseSlot()
472 clientBuffer = mBuffers[i].clientBuffer; in releaseSlot()
474 mBuffers[i].clientBuffer.clear(); in releaseSlot()
480 if (clientBuffer == nullptr) { in releaseSlot()
486 result = clientBuffer->asC2Buffer(); in releaseSlot()
522 sp<Codec2Buffer> clientBuffer; member
553 sp<Codec2Buffer> clientBuffer = impl.mBuffers[i].clientBuffer; in initialize() local
554 bool ownedByClient = (clientBuffer != nullptr); in initialize()
556 clientBuffer = allocate(); in initialize()
558 mBuffers.push_back({ clientBuffer, impl.mBuffers[i].compBuffer, ownedByClient }); in initialize()
588 if (match(mBuffers[i].clientBuffer)) {
590 *buffer = mBuffers[i].clientBuffer;
618 sp<Codec2Buffer> clientBuffer; in returnBuffer() local
621 if (mBuffers[i].clientBuffer == buffer) { in returnBuffer()
625 clientBuffer = mBuffers[i].clientBuffer; in returnBuffer()
633 if (clientBuffer == nullptr) { in returnBuffer()
640 result = clientBuffer->asC2Buffer(); in returnBuffer()
679 array->push(entry.clientBuffer); in getArray()
705 const sp<Codec2Buffer> clientBuffer; member
1095 sp<MediaCodecBuffer> *clientBuffer) final { in registerBuffer() argument
1100 [buffer](const sp<Codec2Buffer> &clientBuffer) { in registerBuffer() argument
1101 return clientBuffer->canCopy(buffer); in registerBuffer()
1116 *clientBuffer = c2Buffer; in registerBuffer()
1124 sp<MediaCodecBuffer> *clientBuffer) final { in registerCsd() argument
1129 [csd](const sp<Codec2Buffer> &clientBuffer) { in registerCsd() argument
1130 return clientBuffer->base() != nullptr in registerCsd()
1131 && clientBuffer->capacity() >= csd->flexCount(); in registerCsd()
1139 *clientBuffer = c2Buffer; in registerCsd()
1203 sp<MediaCodecBuffer> *clientBuffer) override { in registerBuffer() argument
1207 *clientBuffer = newBuffer; in registerBuffer()
1215 sp<MediaCodecBuffer> *clientBuffer) final { in registerCsd() argument
1219 *clientBuffer = newBuffer; in registerCsd()
1297 sp<Codec2Buffer> clientBuffer = ConstLinearBlockBuffer::Allocate(mFormat, buffer); in wrap() local
1298 submit(clientBuffer); in wrap()
1299 return clientBuffer; in wrap()