Lines Matching refs:work
43 std::unique_ptr<C2Work> &work, std::list<uint64_t> &flushedIndices,
176 void checkBufferOK(std::unique_ptr<C2Work> &work) { in checkBufferOK() argument
177 const C2GraphicView output = work->worklets.front() in checkBufferOK()
211 for (std::unique_ptr<C2Work> &work : workItems) { in handleWorkDone()
212 if (!work->worklets.empty()) { in handleWorkDone()
215 mWorkResult |= work->result; in handleWorkDone()
216 bool codecConfig = ((work->worklets.front()->output.flags & in handleWorkDone()
218 if (!codecConfig && !work->worklets.front()->output.buffers.empty()) { in handleWorkDone()
219 checkBufferOK(work); in handleWorkDone()
222 workDone(mComponent, work, mFlushedIndices, mQueueLock, mQueueCondition, mWorkQueue, in handleWorkDone()
252 std::unique_ptr<C2Work> &work, std::list<uint64_t> &flushedIndices, in workDone() argument
257 if (work->worklets.front()->output.configUpdate.size() != 0) { in workDone()
259 std::move(work->worklets.front()->output.configUpdate); in workDone()
279 if (work->worklets.front()->output.flags != C2FrameData::FLAG_INCOMPLETE) { in workDone()
281 eos = (work->worklets.front()->output.flags & C2FrameData::FLAG_END_OF_STREAM) != 0; in workDone()
283 work->input.ordinal.frameIndex.peeku()); in workDone()
284 work->input.buffers.clear(); in workDone()
285 work->worklets.clear(); in workDone()
289 workQueue.push_back(std::move(work)); in workDone()
311 std::unique_ptr<C2Work> work; in decodeNFrames() local
313 while (!work && (retryCount < MAXIMUM_NUMBER_OF_RETRIES)) { in decodeNFrames()
316 work.swap(workQueue.front()); in decodeNFrames()
323 if (!work && (retryCount >= MAXIMUM_NUMBER_OF_RETRIES)) { in decodeNFrames()
334 work->input.flags = (C2FrameData::flags_t)flags; in decodeNFrames()
335 work->input.ordinal.timestamp = timestamp; in decodeNFrames()
336 work->input.ordinal.frameIndex = frameID; in decodeNFrames()
353 work->input.buffers.clear(); in decodeNFrames()
383 work->input.buffers.emplace_back(new LinearBuffer(block, size)); in decodeNFrames()
386 work->worklets.clear(); in decodeNFrames()
387 work->worklets.emplace_back(new C2Worklet); in decodeNFrames()
389 items.push_back(std::move(work)); in decodeNFrames()