Lines Matching refs:work

440         const std::unique_ptr<C2Work> &work,  in drainRingBuffer()  argument
468 const std::unique_ptr<C2Work> &work, c2_status_t err) { in drainRingBuffer() argument
469 work->result = err; in drainRingBuffer()
470 C2FrameData &output = work->worklets.front()->output; in drainRingBuffer()
471 output.flags = work->input.flags; in drainRingBuffer()
473 output.ordinal = work->input.ordinal; in drainRingBuffer()
475 work->workletsProcessed = 1u; in drainRingBuffer()
501 const std::unique_ptr<C2Work> &work) { in drainRingBuffer() argument
502 work->result = C2_OK; in drainRingBuffer()
503 C2FrameData &output = work->worklets.front()->output; in drainRingBuffer()
504 output.flags = work->input.flags; in drainRingBuffer()
507 output.ordinal = work->input.ordinal; in drainRingBuffer()
508 work->workletsProcessed = 1u; in drainRingBuffer()
512 if (work && work->input.ordinal.frameIndex == c2_cntr64_t(outInfo.frameIndex)) { in drainRingBuffer()
513 fillWork(work); in drainRingBuffer()
524 const std::unique_ptr<C2Work> &work, in process() argument
527 work->result = C2_OK; in process()
528 work->workletsProcessed = 1u; in process()
529 work->worklets.front()->output.configUpdate.clear(); in process()
530 work->worklets.front()->output.flags = work->input.flags; in process()
544 if (!work->input.buffers.empty()) { in process()
545 view = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
549 bool eos = (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0; in process()
550 bool codecConfig = (work->input.flags & C2FrameData::FLAG_CODEC_CONFIG) != 0; in process()
572 work->result = C2_CORRUPTED; in process()
575 work->worklets.front()->output.flags = work->input.flags; in process()
576 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
577 work->worklets.front()->output.buffers.clear(); in process()
582 inInfo.frameIndex = work->input.ordinal.frameIndex.peeku(); in process()
583 inInfo.timestamp = work->input.ordinal.timestamp.peeku(); in process()
633 work->result = C2_CORRUPTED; in process()
691 work->result = C2_CORRUPTED; in process()
702 work->result = C2_CORRUPTED; in process()
713 work->result = C2_CORRUPTED; in process()
767 C2FrameData &output = work->worklets.front()->output; in process()
773 work->result = C2_CORRUPTED; in process()
784 work->workletsProcessed = 0u; in process()
798 drainInternal(DRAIN_COMPONENT_WITH_EOS, pool, work); in process()
800 drainRingBuffer(work, pool, false /* not EOS */); in process()
807 const std::unique_ptr<C2Work> &work) { in drainInternal() argument
820 drainRingBuffer(work, pool, eos); in drainInternal()
823 auto fillEmptyWork = [](const std::unique_ptr<C2Work> &work) { in drainInternal() argument
824 work->worklets.front()->output.flags = work->input.flags; in drainInternal()
825 work->worklets.front()->output.buffers.clear(); in drainInternal()
826 work->worklets.front()->output.ordinal = work->input.ordinal; in drainInternal()
827 work->workletsProcessed = 1u; in drainInternal()
833 if (work && work->workletsProcessed == 0u) { in drainInternal()
834 fillEmptyWork(work); in drainInternal()