Lines Matching refs:work
177 static void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
178 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork()
179 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
180 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
181 work->workletsProcessed = 1u; in fillEmptyWork()
209 const std::unique_ptr<C2Work> &work, in process() argument
212 work->result = C2_OK; in process()
213 work->workletsProcessed = 1u; in process()
214 work->worklets.front()->output.configUpdate.clear(); in process()
215 work->worklets.front()->output.flags = work->input.flags; in process()
218 work->result = C2_BAD_VALUE; in process()
222 bool eos = ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0); in process()
226 if (!work->input.buffers.empty()) { in process()
227 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
231 work->result = C2_CORRUPTED; in process()
236 fillEmptyWork(work); in process()
245 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process()
262 work->result = C2_CORRUPTED; in process()
269 work->result = C2_CORRUPTED; in process()
293 work->result = C2_CORRUPTED; in process()
302 work->result = C2_CORRUPTED; in process()
323 work->result = C2_CORRUPTED; in process()
349 … work->worklets.front()->output.configUpdate.push_back(C2Param::Copy(sampleRateInfo)); in process()
350 … work->worklets.front()->output.configUpdate.push_back(C2Param::Copy(channelCountInfo)); in process()
354 work->result = C2_CORRUPTED; in process()
358 fillEmptyWork(work); in process()
367 if ((work->input.flags & C2FrameData::FLAG_CODEC_CONFIG)) { in process()
368 fillEmptyWork(work); in process()
375 if (work->input.ordinal.timestamp.peeku() == 0) mSamplesToDiscard = mCodecDelay; in process()
384 work->result = C2_NO_MEMORY; in process()
390 work->result = C2_CORRUPTED; in process()
404 work->result = C2_CORRUPTED; in process()
424 work->worklets.front()->output.flags = work->input.flags; in process()
425 work->worklets.front()->output.buffers.clear(); in process()
426 … work->worklets.front()->output.buffers.push_back(createLinearBuffer(block, outOffset, outSize)); in process()
427 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
428 work->workletsProcessed = 1u; in process()
430 fillEmptyWork(work); in process()