Lines Matching refs:work

161 static void fillEmptyWork(const std::unique_ptr<C2Work> &work) {  in fillEmptyWork()  argument
162 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork()
163 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
164 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
165 work->workletsProcessed = 1u; in fillEmptyWork()
170 const std::unique_ptr<C2Work> &work, in process() argument
173 work->result = C2_OK; in process()
174 work->workletsProcessed = 1u; in process()
175 work->worklets.front()->output.configUpdate.clear(); in process()
176 work->worklets.front()->output.flags = work->input.flags; in process()
179 work->result = C2_BAD_VALUE; in process()
186 if (!work->input.buffers.empty()) { in process()
187 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
191 work->result = C2_CORRUPTED; in process()
195 bool eos = (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0; in process()
196 bool codecConfig = (work->input.flags & C2FrameData::FLAG_CODEC_CONFIG) != 0; in process()
199 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process()
202 fillEmptyWork(work); in process()
221 work->result = C2_CORRUPTED; in process()
226 fillEmptyWork(work); in process()
248 work->worklets.front()->output.configUpdate.push_back( in process()
250 work->worklets.front()->output.configUpdate.push_back( in process()
255 work->result = C2_CORRUPTED; in process()
277 work->result = C2_NO_MEMORY; in process()
283 work->result = C2_CORRUPTED; in process()
293 work->result = C2_CORRUPTED; in process()
299 work->worklets.front()->output.flags = work->input.flags; in process()
300 work->worklets.front()->output.buffers.clear(); in process()
301 work->worklets.front()->output.buffers.push_back(createLinearBuffer(block, 0, outSize)); in process()
302 work->worklets.front()->output.ordinal = work->input.ordinal; in process()