Lines Matching refs:work
191 static void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
192 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork()
193 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
194 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
198 const std::unique_ptr<C2Work> &work, in process() argument
201 work->result = C2_OK; in process()
202 work->workletsProcessed = 1u; in process()
203 work->worklets.front()->output.flags = work->input.flags; in process()
206 work->result = C2_BAD_VALUE; in process()
210 bool eos = ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0); in process()
214 if (!work->input.buffers.empty()) { in process()
215 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
219 work->result = C2_CORRUPTED; in process()
225 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
226 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process()
228 mAnchorTimeStamp = work->input.ordinal.timestamp.peekull(); in process()
238 work->result = C2_NO_MEMORY; in process()
244 work->worklets.front()->output.configUpdate.push_back(std::move(csd)); in process()
262 work->result = C2_NO_MEMORY; in process()
269 work->result = C2_CORRUPTED; in process()
298 work->result = C2_CORRUPTED; in process()
307 work->result = C2_CORRUPTED; in process()
311 fillEmptyWork(work); in process()
314 work->worklets.front()->output.buffers.push_back(buffer); in process()
315 work->worklets.front()->output.ordinal.timestamp = mAnchorTimeStamp + outTimeStamp; in process()