Lines Matching refs:work

170 static void fillEmptyWork(const std::unique_ptr<C2Work> &work) {  in fillEmptyWork()  argument
171 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork()
172 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
173 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
177 const std::unique_ptr<C2Work> &work, in process() argument
180 work->result = C2_OK; in process()
181 work->workletsProcessed = 1u; in process()
182 work->worklets.front()->output.flags = work->input.flags; in process()
185 work->result = C2_BAD_VALUE; in process()
189 bool eos = ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0); in process()
193 if (!work->input.buffers.empty()) { in process()
194 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
198 work->result = C2_CORRUPTED; in process()
204 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
205 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process()
207 mAnchorTimeStamp = work->input.ordinal.timestamp.peekull(); in process()
217 work->result = C2_NO_MEMORY; in process()
223 work->worklets.front()->output.configUpdate.push_back(std::move(csd)); in process()
238 work->result = C2_NO_MEMORY; in process()
244 work->result = C2_CORRUPTED; in process()
268 work->result = C2_CORRUPTED; in process()
277 work->result = C2_CORRUPTED; in process()
281 fillEmptyWork(work); in process()
284 work->worklets.front()->output.buffers.push_back(buffer); in process()
285 work->worklets.front()->output.ordinal.timestamp = mAnchorTimeStamp + outTimeStamp; in process()