Lines Matching refs:work
229 std::unique_ptr<C2Work> work; in play() local
238 work = std::move(mProcessedWork.front()); in play()
242 CHECK_EQ(work->worklets.size(), 1u); in play()
243 if (work->worklets.front()->output.buffers.size() == 1u) { in play()
246 std::shared_ptr<C2Buffer> output = work->worklets.front()->output.buffers[0]; in play()
256 (work->worklets.front()->output.ordinal.timestamp * 1000ll).peekll()); in play()
259 (work->worklets.front()->output.ordinal.timestamp * 1000ll).peekll(), false, in play()
270 bool eos = work->worklets.front()->output.flags & C2FrameData::FLAG_END_OF_STREAM; in play()
272 CHECK_EQ(work->input.buffers.size(), 1u); in play()
273 CHECK(work->input.buffers.front() == nullptr); in play()
274 work->worklets.clear(); in play()
275 work->workletsProcessed = 0; in play()
282 mWorkQueue.emplace_back(std::move(work)); in play()
320 std::unique_ptr<C2Work> work; in play() local
321 while (!work) { in play()
324 work = std::move(mWorkQueue.front()); in play()
330 work->input.flags = static_cast<C2FrameData::flags_t>(0); in play()
331 work->input.ordinal.timestamp = timestamp; in play()
332 work->input.ordinal.frameIndex = numFrames; in play()
345 work->input.buffers.clear(); in play()
346 work->input.buffers.emplace_back(new C2VDALinearBuffer(std::move(block))); in play()
347 work->worklets.clear(); in play()
348 work->worklets.emplace_back(new C2Worklet); in play()
351 items.push_back(std::move(work)); in play()