Lines Matching refs:work

168 static void fillEmptyWork(const std::unique_ptr<C2Work> &work) {  in fillEmptyWork()  argument
169 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork()
170 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
171 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
172 work->workletsProcessed = 1u; 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.configUpdate.clear(); in process()
183 work->worklets.front()->output.flags = work->input.flags; in process()
186 work->result = C2_BAD_VALUE; 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()
202 bool eos = (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0; in process()
203 bool codecConfig = (work->input.flags & C2FrameData::FLAG_CODEC_CONFIG) != 0; in process()
206 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process()
209 fillEmptyWork(work); in process()
226 fillEmptyWork(work); in process()
233 work->result = C2_CORRUPTED; in process()
238 fillEmptyWork(work); in process()
260 work->worklets.front()->output.configUpdate.push_back( in process()
262 work->worklets.front()->output.configUpdate.push_back( in process()
267 work->result = C2_CORRUPTED; in process()
289 work->result = C2_NO_MEMORY; in process()
295 work->result = C2_CORRUPTED; in process()
304 work->result = C2_CORRUPTED; in process()
310 work->worklets.front()->output.flags = work->input.flags; in process()
311 work->worklets.front()->output.buffers.clear(); in process()
312 work->worklets.front()->output.buffers.push_back(createLinearBuffer(block, 0, outSize)); in process()
313 work->worklets.front()->output.ordinal = work->input.ordinal; in process()