Lines Matching refs:buffers
150 input->buffers.reset(new DummyInputBuffers("")); in CCodecBufferChannel()
219 work->input.buffers.clear(); in queueInputBufferInternal()
228 if (!input->buffers->releaseBuffer(buffer, &c2buffer, false)) { in queueInputBufferInternal()
233 copy = input->buffers->cloneAndReleaseBuffer(buffer); in queueInputBufferInternal()
239 bool released = input->buffers->releaseBuffer(buffer, nullptr, true); in queueInputBufferInternal()
248 work->input.buffers.push_back(c2buffer); in queueInputBufferInternal()
277 work->input.buffers.clear(); in queueInputBufferInternal()
300 released = input->buffers->releaseBuffer(buffer, nullptr, true); in queueInputBufferInternal()
626 if (!output->buffers || in feedInputBufferIfAvailableInternal()
627 output->buffers->hasPending() || in feedInputBufferIfAvailableInternal()
628 output->buffers->numClientBuffers() >= output->numSlots) { in feedInputBufferIfAvailableInternal()
638 if (input->buffers->numClientBuffers() >= input->numSlots) { in feedInputBufferIfAvailableInternal()
641 if (!input->buffers->requestNewBuffer(&index, &inBuffer)) { in feedInputBufferIfAvailableInternal()
658 if (output->buffers) { in renderOutputBuffer()
659 released = output->buffers->releaseBuffer(buffer, &c2Buffer); in renderOutputBuffer()
833 if (input->buffers && input->buffers->releaseBuffer(buffer, nullptr, true)) { in discardBuffer()
839 if (output->buffers && output->buffers->releaseBuffer(buffer, nullptr)) { in discardBuffer()
856 if (!input->buffers->isArrayMode()) { in getInputBufferArray()
857 input->buffers = input->buffers->toArrayMode(input->numSlots); in getInputBufferArray()
860 input->buffers->getArray(array); in getInputBufferArray()
867 if (!output->buffers->isArrayMode()) { in getOutputBufferArray()
868 output->buffers = output->buffers->toArrayMode(output->numSlots); in getOutputBufferArray()
871 output->buffers->getArray(array); in getOutputBufferArray()
1003 input->buffers.reset(new SlotInputBuffers(mName)); in start()
1006 input->buffers.reset(new DummyInputBuffers(mName)); in start()
1008 input->buffers.reset(new GraphicMetadataInputBuffers(mName)); in start()
1013 input->buffers.reset(new GraphicInputBuffers(mName)); in start()
1036 input->buffers.reset(new EncryptedLinearInputBuffers( in start()
1041 input->buffers.reset(new LinearInputBuffers(mName)); in start()
1044 input->buffers->setFormat(inputFormat); in start()
1047 input->buffers->setPool(pool); in start()
1053 input->buffers = input->buffers->toArrayMode(numInputSlots); in start()
1179 output->buffers.reset(new GraphicOutputBuffers(mName)); in start()
1181 output->buffers.reset(new RawGraphicOutputBuffers(mName)); in start()
1184 output->buffers.reset(new LinearOutputBuffers(mName)); in start()
1186 output->buffers->setFormat(outputFormat); in start()
1188 output->buffers->clearStash(); in start()
1190 output->buffers->setReorderDepth(reorderDepth.value); in start()
1193 output->buffers->setReorderKey(reorderKey.value); in start()
1209 output->buffers = output->buffers->toArrayMode(numOutputSlots); in start()
1227 output->buffers->initSkipCutBuffer(delay, padding, sampleRate, channelCount); in start()
1276 if (!input->buffers->requestNewBuffer(&clientInputBuffer.index, in requestInitialInputBuffers()
1372 input->buffers.reset(new DummyInputBuffers("")); in reset()
1377 output->buffers.reset(); in reset()
1403 if (work->input.buffers.empty() in flush()
1404 || work->input.buffers.front()->data().linearBlocks().empty()) { in flush()
1409 work->input.buffers.front()->data().linearBlocks().front().map().get(); in flush()
1420 input->buffers->flush(); in flush()
1425 if (output->buffers) { in flush()
1426 output->buffers->flush(flushedWork); in flush()
1427 output->buffers->flushStash(); in flush()
1451 newInputSlotAvailable = input->buffers->expireComponentBuffer(buffer); in onInputBufferDone()
1467 if (!output->buffers) { in handleWork()
1514 if (worklet->output.buffers.size() > 1u) { in handleWork()
1516 mName, worklet->output.buffers.size()); in handleWork()
1519 } else if (worklet->output.buffers.size() == 1u) { in handleWork()
1520 buffer = worklet->output.buffers[0]; in handleWork()
1537 mOutput.lock()->buffers->setReorderDepth( in handleWork()
1562 mOutput.lock()->buffers->setReorderKey(reorderKey.value); in handleWork()
1606 if (!output->buffers) { in handleWork()
1614 if (output->buffers->isArrayMode()) { in handleWork()
1616 (OutputBuffersArray *)output->buffers.get(); in handleWork()
1630 uint32_t depth = mOutput.lock()->buffers->getReorderDepth(); in handleWork()
1655 if (input->buffers->isArrayMode()) { in handleWork()
1697 if (output->buffers && outputFormat) { in handleWork()
1698 output->buffers->updateSkipCutBuffer(outputFormat); in handleWork()
1699 output->buffers->setFormat(outputFormat); in handleWork()
1706 if (output->buffers && output->buffers->registerCsd(initData, &index, &outBuffer) == OK) { in handleWork()
1744 if (!output->buffers) { in handleWork()
1747 output->buffers->pushToStash( in handleWork()
1767 if (!output->buffers) { in sendOutputBuffers()
1770 action = output->buffers->popFromStashAndRegister( in sendOutputBuffers()
1782 if (!output->buffers->isArrayMode()) { in sendOutputBuffers()
1783 output->buffers = in sendOutputBuffers()
1784 output->buffers->toArrayMode(output->numSlots); in sendOutputBuffers()
1786 static_cast<OutputBuffersArray*>(output->buffers.get())-> in sendOutputBuffers()