Lines Matching refs:work
175 const std::unique_ptr<C2Work> &work, in process() argument
178 work->result = C2_OK; in process()
179 work->workletsProcessed = 1u; in process()
180 work->worklets.front()->output.flags = work->input.flags; in process()
183 work->result = C2_BAD_VALUE; in process()
187 bool eos = ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0); in process()
191 if (!work->input.buffers.empty()) { in process()
192 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
196 work->result = rView.error(); in process()
202 work->worklets.front()->output.flags = work->input.flags; in process()
203 work->worklets.front()->output.buffers.clear(); in process()
204 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
212 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process()
220 work->result = C2_NO_MEMORY; in process()
226 work->result = wView.error(); in process()
236 work->result = C2_CORRUPTED; in process()
240 work->worklets.front()->output.flags = work->input.flags; in process()
241 work->worklets.front()->output.buffers.clear(); in process()
242 work->worklets.front()->output.buffers.push_back(createLinearBuffer(block, 0, outSize)); in process()
243 work->worklets.front()->output.ordinal = work->input.ordinal; in process()