Lines Matching refs:work
125 for (std::unique_ptr<C2Work>& work : workItems) { in handleWorkDone()
126 if (!work->worklets.empty()) { in handleWorkDone()
127 if (work->worklets.front()->output.flags != C2FrameData::FLAG_INCOMPLETE) { in handleWorkDone()
128 mEos = (work->worklets.front()->output.flags & C2FrameData::FLAG_END_OF_STREAM) != 0; in handleWorkDone()
129 work->input.buffers.clear(); in handleWorkDone()
130 work->worklets.clear(); in handleWorkDone()
133 mWorkQueue.push_back(std::move(work)); in handleWorkDone()
256 std::unique_ptr<C2Work> work; in decodeFrames() local
261 work.swap(mWorkQueue.front()); in decodeFrames()
268 work->input.flags = (C2FrameData::flags_t)std::get<2>(frameData); in decodeFrames()
269 work->input.ordinal.timestamp = 0; in decodeFrames()
270 work->input.ordinal.frameIndex = ++numFrames; in decodeFrames()
271 work->input.buffers.clear(); in decodeFrames()
286 work->input.buffers.emplace_back(new LinearBuffer(block, frameSize)); in decodeFrames()
287 work->worklets.clear(); in decodeFrames()
288 work->worklets.emplace_back(new C2Worklet); in decodeFrames()
291 items.push_back(std::move(work)); in decodeFrames()