Lines Matching refs:slot

215     // The output slot count requirement can change depending on the current amount
338 int slot = getSlotForOutputLocked(output, tracker.getBuffer());
345 res = output->queueBuffer(slot, queueInput, &queueOutput);
348 SP_LOGV("%s: Queuing buffer to buffer queue %p slot %d returns %d",
349 __FUNCTION__, output.get(), slot, res);
413 int slot = getSlotForOutputLocked(gbp, gb);
414 if (slot != BufferItem::INVALID_BUFFER_SLOT) {
423 res = gbp->attachBuffer(&slot, gb);
430 if ((slot < 0) || (slot > BufferQueue::NUM_BUFFER_SLOTS)) {
432 __FUNCTION__, slot, BufferQueue::NUM_BUFFER_SLOTS);
441 if (static_cast<size_t> (slot + 1) > outputSlots.size()) {
442 outputSlots.resize(slot + 1);
444 if (outputSlots[slot] != nullptr) {
445 // If the buffer is attached to a slot which already contains a buffer,
448 decrementBufRefCountLocked(outputSlots[slot]->getId(), surface_id);
450 SP_LOGV("%s: Attached buffer %p to slot %d on output %p.",__FUNCTION__, gb.get(),
451 slot, gbp.get());
452 outputSlots[slot] = gb;
493 SP_LOGV("acquired buffer %" PRId64 " from input at slot %d",
599 int slot = BufferItem::INVALID_BUFFER_SLOT;
600 auto res = from->dequeueBuffer(&slot, &fence, mWidth, mHeight, mFormat, mProducerUsage,
603 handleOutputDequeueStatusLocked(res, slot);
622 returnOutputBufferLocked(fence, from, surfaceId, slot);
630 int slot = BufferItem::INVALID_BUFFER_SLOT;
631 auto res = from->dequeueBuffer(&slot, &fence, mWidth, mHeight, mFormat, mProducerUsage,
633 handleOutputDequeueStatusLocked(res, slot);
638 returnOutputBufferLocked(fence, from, surfaceId, slot);
642 const sp<IGraphicBufferProducer>& from, size_t surfaceId, int slot) {
651 buffer = outputSlots[slot];
662 auto res = from->detachBuffer(slot);
664 outputSlots[slot] = nullptr;
674 void Camera3StreamSplitter::handleOutputDequeueStatusLocked(status_t res, int slot) {
683 SP_LOGE("%s: All slot->buffer mapping should be released!", __FUNCTION__);
689 } else if (res != OK || (slot == BufferItem::INVALID_BUFFER_SLOT)) {
718 SP_LOGV("%s: Cannot find slot for gb %p on output %p", __FUNCTION__, gb.get(),