Lines Matching refs:work
477 std::unique_ptr<C2Work> work; in TEST_P() local
486 work = std::move(mProcessedWork.front()); in TEST_P()
491 work->input.ordinal.frameIndex.peekull(), work->result, in TEST_P()
492 work->worklets.front()->output.flags, in TEST_P()
493 work->worklets.front()->output.buffers.size()); in TEST_P()
496 bool flushed = work->result == C2_NOT_FOUND; in TEST_P()
498 ASSERT_EQ(work->worklets.size(), 1u); in TEST_P()
499 if (!flushed && work->worklets.front()->output.buffers.size() == 1u) { in TEST_P()
500 std::shared_ptr<C2Buffer> output = work->worklets.front()->output.buffers[0]; in TEST_P()
536 work->worklets.front()->output.buffers.clear(); in TEST_P()
540 bool iteration_end = !flushed && (work->worklets.front()->output.flags & in TEST_P()
544 ASSERT_EQ(work->input.buffers.size(), 1u); in TEST_P()
545 ASSERT_TRUE(work->input.buffers.front() == nullptr); in TEST_P()
546 work->worklets.clear(); in TEST_P()
547 work->workletsProcessed = 0; in TEST_P()
549 if (iteration == 0 && work->input.ordinal.frameIndex.peeku() == in TEST_P()
558 mWorkQueue.emplace_back(std::move(work)); in TEST_P()
630 std::unique_ptr<C2Work> work; in TEST_P() local
631 while (!work) { in TEST_P()
634 work = std::move(mWorkQueue.front()); in TEST_P()
641 work->input.flags = inputFlag; in TEST_P()
642 work->input.ordinal.frameIndex = static_cast<uint64_t>(numWorks); in TEST_P()
643 work->input.buffers.clear(); in TEST_P()
648 work->input.flags = static_cast<C2FrameData::flags_t>( in TEST_P()
649 work->input.flags | C2FrameData::FLAG_END_OF_STREAM); in TEST_P()
650 work->input.ordinal.timestamp = 0; // timestamp is invalid for dummy EOS work in TEST_P()
651 ALOGV("Input: (Dummy EOS) id: %llu", work->input.ordinal.frameIndex.peekull()); in TEST_P()
653 work->input.ordinal.timestamp = static_cast<uint64_t>(timestamp); in TEST_P()
661 work->input.buffers.emplace_back(new C2VDALinearBuffer(std::move(block))); in TEST_P()
663 work->input.ordinal.frameIndex.peekull(), in TEST_P()
664 work->input.ordinal.timestamp.peekull(), size); in TEST_P()
667 work->worklets.clear(); in TEST_P()
668 work->worklets.emplace_back(new C2Worklet); in TEST_P()
671 items.push_back(std::move(work)); in TEST_P()