Lines Matching refs:work
418 const std::unique_ptr<C2Work> &work, in process() argument
421 work->result = C2_OK; in process()
422 work->workletsProcessed = 1u; in process()
423 work->worklets.front()->output.flags = work->input.flags; in process()
426 work->result = C2_BAD_VALUE; in process()
433 work->result = C2_CORRUPTED; in process()
439 if (!work->input.buffers.empty()) { in process()
440 inputBuffer = work->input.buffers[0]; in process()
445 work->result = C2_CORRUPTED; in process()
451 if (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) { in process()
454 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in process()
455 work->worklets.front()->output.buffers.clear(); in process()
456 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
457 work->workletsProcessed = 1u; in process()
469 work->result = C2_BAD_VALUE; in process()
472 bool eos = ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0); in process()
479 work->result = C2_BAD_VALUE; in process()
496 work->result = C2_BAD_VALUE; in process()
518 work->result = C2_BAD_VALUE; in process()
527 work->result = C2_BAD_VALUE; in process()
535 work->result = C2_BAD_VALUE; in process()
576 work->result = C2_CORRUPTED; in process()
582 uint64_t inputTimeStamp = work->input.ordinal.timestamp.peekull(); in process()
603 work->result = C2_CORRUPTED; in process()
618 work->result = C2_NO_MEMORY; in process()
624 work->result = C2_CORRUPTED; in process()
636 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in process()
637 work->worklets.front()->output.buffers.clear(); in process()
644 work->worklets.front()->output.buffers.push_back(buffer); in process()
645 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
646 work->worklets.front()->output.ordinal.timestamp = encoded_packet->data.frame.pts; in process()
647 work->workletsProcessed = 1u; in process()
656 work->workletsProcessed = 0u; in process()