Lines Matching refs:work

666 void fillEmptyWork(const std::unique_ptr<C2Work> &work) {  in fillEmptyWork()  argument
668 if (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) { in fillEmptyWork()
672 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
673 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
674 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
675 work->workletsProcessed = 1u; in fillEmptyWork()
678 void C2SoftHevcDec::finishWork(uint64_t index, const std::unique_ptr<C2Work> &work) { in finishWork() argument
687 auto fillWork = [buffer](const std::unique_ptr<C2Work> &work) { in finishWork() argument
688 work->worklets.front()->output.flags = (C2FrameData::flags_t)0; in finishWork()
689 work->worklets.front()->output.buffers.clear(); in finishWork()
690 work->worklets.front()->output.buffers.push_back(buffer); in finishWork()
691 work->worklets.front()->output.ordinal = work->input.ordinal; in finishWork()
692 work->workletsProcessed = 1u; in finishWork()
694 if (work && c2_cntr64_t(index) == work->input.ordinal.frameIndex) { in finishWork()
695 fillWork(work); in finishWork()
736 const std::unique_ptr<C2Work> &work, in process() argument
739 work->result = C2_OK; in process()
740 work->workletsProcessed = 0u; in process()
741 work->worklets.front()->output.configUpdate.clear(); in process()
742 work->worklets.front()->output.flags = work->input.flags; in process()
745 work->result = C2_BAD_VALUE; in process()
751 uint32_t workIndex = work->input.ordinal.frameIndex.peeku() & 0xFFFFFFFF; in process()
753 if (!work->input.buffers.empty()) { in process()
754 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
758 work->result = rView.error(); in process()
762 bool eos = ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0); in process()
766 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
767 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process()
772 work->workletsProcessed = 1u; in process()
773 work->result = C2_CORRUPTED; in process()
779 work->result = wView.error(); in process()
787 work->workletsProcessed = 1u; in process()
788 work->result = C2_CORRUPTED; in process()
808 work->workletsProcessed = 1u; in process()
809 work->result = C2_CORRUPTED; in process()
814 work->workletsProcessed = 1u; in process()
815 work->result = C2_CORRUPTED; in process()
819 drainInternal(DRAIN_COMPONENT_NO_EOS, pool, work); in process()
822 work->workletsProcessed = 0u; in process()
843 work->worklets.front()->output.configUpdate.push_back( in process()
848 work->workletsProcessed = 1u; in process()
849 work->result = C2_CORRUPTED; in process()
858 finishWork(s_decode_op.u4_ts, work); in process()
873 drainInternal(DRAIN_COMPONENT_WITH_EOS, pool, work); in process()
876 fillEmptyWork(work); in process()
883 const std::unique_ptr<C2Work> &work) { in drainInternal() argument
897 work->workletsProcessed = 1u; in drainInternal()
898 work->result = C2_CORRUPTED; in drainInternal()
910 work->workletsProcessed = 1u; in drainInternal()
915 finishWork(s_decode_op.u4_ts, work); in drainInternal()
917 fillEmptyWork(work); in drainInternal()