Lines Matching refs:work
184 static void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
185 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork()
186 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
187 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
188 work->workletsProcessed = 1u; in fillEmptyWork()
301 const std::unique_ptr<C2Work> &work, in process() argument
304 work->result = C2_OK; in process()
305 work->workletsProcessed = 1u; in process()
306 work->worklets.front()->output.configUpdate.clear(); in process()
307 work->worklets.front()->output.flags = work->input.flags; in process()
310 work->result = C2_BAD_VALUE; in process()
314 bool eos = ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0); in process()
318 if (!work->input.buffers.empty()) { in process()
319 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
323 work->result = C2_CORRUPTED; in process()
328 fillEmptyWork(work); in process()
337 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process()
344 work->result = C2_CORRUPTED; in process()
368 work->result = C2_CORRUPTED; in process()
377 work->result = C2_CORRUPTED; in process()
384 work->result = C2_CORRUPTED; in process()
406 … work->worklets.front()->output.configUpdate.push_back(C2Param::Copy(sampleRateInfo)); in process()
407 … work->worklets.front()->output.configUpdate.push_back(C2Param::Copy(channelCountInfo)); in process()
411 work->result = C2_CORRUPTED; in process()
418 fillEmptyWork(work); in process()
427 if ((work->input.flags & C2FrameData::FLAG_CODEC_CONFIG)) { in process()
428 fillEmptyWork(work); in process()
435 if (work->input.ordinal.timestamp.peeku() == 0) mSamplesToDiscard = mCodecDelay; in process()
444 work->result = C2_NO_MEMORY; in process()
450 work->result = C2_CORRUPTED; in process()
464 work->result = C2_CORRUPTED; in process()
484 work->worklets.front()->output.flags = work->input.flags; in process()
485 work->worklets.front()->output.buffers.clear(); in process()
486 … work->worklets.front()->output.buffers.push_back(createLinearBuffer(block, outOffset, outSize)); in process()
487 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
488 work->workletsProcessed = 1u; in process()
490 fillEmptyWork(work); in process()