Lines Matching refs:work

548 static void fillEmptyWork(const std::unique_ptr<C2Work>& work) {  in fillEmptyWork()  argument
550 if (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) { in fillEmptyWork()
554 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
555 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
556 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
557 work->workletsProcessed = 1u; in fillEmptyWork()
898 const std::unique_ptr<C2Work>& work, in finishWork() argument
908 work->result = status; in finishWork()
909 work->workletsProcessed = 1u; in finishWork()
916 work->result = wView.error(); in finishWork()
917 work->workletsProcessed = 1u; in finishWork()
935 auto fillWork = [buffer](const std::unique_ptr<C2Work>& work) { in finishWork() argument
936 work->worklets.front()->output.flags = (C2FrameData::flags_t)0; in finishWork()
937 work->worklets.front()->output.buffers.clear(); in finishWork()
938 work->worklets.front()->output.buffers.push_back(buffer); in finishWork()
939 work->worklets.front()->output.ordinal = work->input.ordinal; in finishWork()
940 work->workletsProcessed = 1u; in finishWork()
942 if (work && c2_cntr64_t(index) == work->input.ordinal.frameIndex) { in finishWork()
943 fillWork(work); in finishWork()
945 work->worklets.front()->output.flags = in finishWork()
956 const std::unique_ptr<C2Work> &work) { in drainInternal() argument
973 finishWork(s_encode_op.u8_pts, work, pool, &s_encode_op); in drainInternal()
975 if (work->workletsProcessed != 1u) fillEmptyWork(work); in drainInternal()
982 void C2SoftHevcEnc::process(const std::unique_ptr<C2Work>& work, in process() argument
985 work->result = C2_OK; in process()
986 work->workletsProcessed = 0u; in process()
987 work->worklets.front()->output.flags = work->input.flags; in process()
990 work->result = C2_BAD_VALUE; in process()
1002 work->result = status; in process()
1003 work->workletsProcessed = 1u; in process()
1010 bool eos = ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0); in process()
1013 if (!work->input.buffers.empty()) { in process()
1014 inputBuffer = work->input.buffers[0]; in process()
1020 work->result = C2_CORRUPTED; in process()
1021 work->workletsProcessed = 1u; in process()
1037 work->result = C2_NO_MEMORY; in process()
1038 work->workletsProcessed = 1u; in process()
1044 work->worklets.front()->output.configUpdate.push_back( in process()
1049 work->workletsProcessed = 1u; in process()
1071 uint64_t workIndex = work->input.ordinal.frameIndex.peekull(); in process()
1077 work->result = status; in process()
1078 work->workletsProcessed = 1u; in process()
1113 work->result = C2_CORRUPTED; in process()
1114 work->workletsProcessed = 1u; in process()
1118 fillEmptyWork(work); in process()
1129 finishWork(s_encode_op.u8_pts, work, pool, &s_encode_op); in process()
1133 drainInternal(DRAIN_COMPONENT_WITH_EOS, pool, work); in process()