Home
last modified time | relevance | path

Searched refs:work (Results 1 – 25 of 315) sorted by relevance

12345678910>>...13

/frameworks/av/media/codec2/components/opus/
DC2SoftOpusDec.cpp177 static void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
178 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork()
179 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
180 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
181 work->workletsProcessed = 1u; in fillEmptyWork()
209 const std::unique_ptr<C2Work> &work, in process() argument
212 work->result = C2_OK; in process()
213 work->workletsProcessed = 1u; in process()
214 work->worklets.front()->output.configUpdate.clear(); in process()
215 work->worklets.front()->output.flags = work->input.flags; in process()
[all …]
DC2SoftOpusEnc.cpp325 void C2SoftOpusEnc::process(const std::unique_ptr<C2Work>& work, in process() argument
328 work->result = C2_OK; in process()
329 work->workletsProcessed = 1u; in process()
330 work->worklets.front()->output.flags = work->input.flags; in process()
333 work->result = C2_BAD_VALUE; in process()
337 bool eos = (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0; in process()
342 if (!work->input.buffers.empty()) { in process()
344 work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
348 work->result = C2_CORRUPTED; in process()
354 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
[all …]
/frameworks/av/media/codec2/components/flac/
DC2SoftFlacDec.cpp168 static void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
169 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork()
170 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
171 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
172 work->workletsProcessed = 1u; in fillEmptyWork()
177 const std::unique_ptr<C2Work> &work, in process() argument
180 work->result = C2_OK; in process()
181 work->workletsProcessed = 1u; in process()
182 work->worklets.front()->output.configUpdate.clear(); in process()
183 work->worklets.front()->output.flags = work->input.flags; in process()
[all …]
DC2SoftFlacEnc.cpp191 static void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
192 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork()
193 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
194 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
198 const std::unique_ptr<C2Work> &work, in process() argument
201 work->result = C2_OK; in process()
202 work->workletsProcessed = 1u; in process()
203 work->worklets.front()->output.flags = work->input.flags; in process()
206 work->result = C2_BAD_VALUE; in process()
210 bool eos = ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0); in process()
[all …]
/frameworks/av/media/codec2/components/vorbis/
DC2SoftVorbisDec.cpp197 static void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
198 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork()
199 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
200 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
201 work->workletsProcessed = 1u; in fillEmptyWork()
225 const std::unique_ptr<C2Work> &work, in process() argument
228 work->result = C2_OK; in process()
229 work->workletsProcessed = 1u; in process()
230 work->worklets.front()->output.configUpdate.clear(); in process()
231 work->worklets.front()->output.flags = work->input.flags; in process()
[all …]
/frameworks/av/media/codec2/components/g711/
DC2SoftG711Dec.cpp135 const std::unique_ptr<C2Work> &work, in process() argument
138 work->result = C2_OK; in process()
139 work->workletsProcessed = 1u; in process()
140 work->worklets.front()->output.flags = work->input.flags; in process()
143 work->result = C2_BAD_VALUE; in process()
150 if (!work->input.buffers.empty()) { in process()
151 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
155 work->result = C2_CORRUPTED; in process()
159 bool eos = (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0; in process()
163 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process()
[all …]
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Dec.cpp334 void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
336 if (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) { in fillEmptyWork()
340 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
341 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
342 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
343 work->workletsProcessed = 1u; in fillEmptyWork()
346 void C2SoftMpeg4Dec::finishWork(uint64_t index, const std::unique_ptr<C2Work> &work) { in finishWork() argument
350 auto fillWork = [buffer, index](const std::unique_ptr<C2Work> &work) { in finishWork() argument
352 if ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) && in finishWork()
353 (c2_cntr64_t(index) == work->input.ordinal.frameIndex)) { in finishWork()
[all …]
DC2SoftMpeg4Enc.cpp293 static void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
295 if (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) { in fillEmptyWork()
299 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
300 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
301 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
302 work->workletsProcessed = 1u; in fillEmptyWork()
390 const std::unique_ptr<C2Work> &work, in process() argument
393 work->result = C2_OK; in process()
394 work->workletsProcessed = 1u; in process()
395 work->worklets.front()->output.flags = work->input.flags; in process()
[all …]
/frameworks/av/media/codec2/components/gsm/
DC2SoftGsmDec.cpp169 const std::unique_ptr<C2Work> &work, in process() argument
172 work->result = C2_OK; in process()
173 work->workletsProcessed = 1u; in process()
174 work->worklets.front()->output.flags = work->input.flags; in process()
177 work->result = C2_BAD_VALUE; in process()
181 bool eos = ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0); in process()
185 if (!work->input.buffers.empty()) { in process()
186 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
190 work->result = rView.error(); in process()
196 work->worklets.front()->output.flags = work->input.flags; in process()
[all …]
/frameworks/av/media/codec2/components/amr_nb_wb/
DC2SoftAmrNbEnc.cpp174 static void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
175 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork()
176 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
177 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
178 work->workletsProcessed = 1u; in fillEmptyWork()
182 const std::unique_ptr<C2Work> &work, in process() argument
185 work->result = C2_OK; in process()
186 work->workletsProcessed = 1u; in process()
187 work->worklets.front()->output.flags = work->input.flags; in process()
190 work->result = C2_BAD_VALUE; in process()
[all …]
DC2SoftAmrDec.cpp240 const std::unique_ptr<C2Work> &work, in process() argument
243 work->result = C2_OK; in process()
244 work->workletsProcessed = 1u; in process()
245 work->worklets.front()->output.flags = work->input.flags; in process()
248 work->result = C2_BAD_VALUE; in process()
255 if (!work->input.buffers.empty()) { in process()
256 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
260 work->result = rView.error(); in process()
265 bool eos = (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0; in process()
267 work->worklets.front()->output.flags = work->input.flags; in process()
[all …]
DC2SoftAmrWbEnc.cpp256 static void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
257 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork()
258 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
259 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
260 work->workletsProcessed = 1u; in fillEmptyWork()
264 const std::unique_ptr<C2Work> &work, in process() argument
267 work->result = C2_OK; in process()
268 work->workletsProcessed = 1u; in process()
269 work->worklets.front()->output.flags = work->input.flags; in process()
272 work->result = C2_BAD_VALUE; in process()
[all …]
/frameworks/av/media/codec2/hidl/1.0/vts/functional/common/
Dmedia_c2_hidl_test_common.cpp71 std::unique_ptr<C2Work> work; in testInputBuffer() local
76 work.swap(workQueue.front()); in testInputBuffer()
82 ASSERT_NE(work, nullptr); in testInputBuffer()
84 work->input.flags = (C2FrameData::flags_t)flags; in testInputBuffer()
85 work->input.ordinal.timestamp = 0; in testInputBuffer()
86 work->input.ordinal.frameIndex = 0; in testInputBuffer()
87 work->input.buffers.clear(); in testInputBuffer()
89 work->input.buffers.emplace_back(nullptr); in testInputBuffer()
91 work->worklets.clear(); in testInputBuffer()
92 work->worklets.emplace_back(new C2Worklet); in testInputBuffer()
[all …]
/frameworks/av/media/codec2/components/mp3/
DC2SoftMp3Dec.cpp331 const std::unique_ptr<C2Work> &work, in process() argument
334 work->result = C2_OK; in process()
335 work->workletsProcessed = 1u; in process()
336 work->worklets.front()->output.configUpdate.clear(); in process()
337 work->worklets.front()->output.flags = work->input.flags; in process()
340 work->result = C2_BAD_VALUE; in process()
344 bool eos = ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) != 0); in process()
347 if (!work->input.buffers.empty()) { in process()
348 rView = work->input.buffers[0]->data().linearBlocks().front().map().get(); in process()
352 work->result = rView.error(); in process()
[all …]
/frameworks/av/media/codec2/components/aom/
DC2SoftAomDec.cpp365 void fillEmptyWork(const std::unique_ptr<C2Work>& work) { in fillEmptyWork() argument
367 if (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) { in fillEmptyWork()
371 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
372 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
373 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
374 work->workletsProcessed = 1u; in fillEmptyWork()
378 const std::unique_ptr<C2Work>& work, in finishWork() argument
383 const std::unique_ptr<C2Work>& work) { in finishWork() argument
385 if ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) && in finishWork()
386 (c2_cntr64_t(index) == work->input.ordinal.frameIndex)) { in finishWork()
[all …]
/frameworks/av/media/codec2/components/gav1/
DC2SoftGav1Dec.cpp357 void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
359 if (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) { in fillEmptyWork()
363 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
364 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
365 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
366 work->workletsProcessed = 1u; in fillEmptyWork()
370 const std::unique_ptr<C2Work> &work, in finishWork() argument
374 auto fillWork = [buffer, index](const std::unique_ptr<C2Work> &work) { in finishWork() argument
376 if ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) && in finishWork()
377 (c2_cntr64_t(index) == work->input.ordinal.frameIndex)) { in finishWork()
[all …]
/frameworks/av/media/codec2/components/aac/
DC2SoftAacDec.cpp473 const std::unique_ptr<C2Work> &work, in drainRingBuffer() argument
501 const std::unique_ptr<C2Work> &work, c2_status_t err) { in drainRingBuffer() argument
502 work->result = err; in drainRingBuffer()
503 C2FrameData &output = work->worklets.front()->output; in drainRingBuffer()
504 output.flags = work->input.flags; in drainRingBuffer()
506 output.ordinal = work->input.ordinal; in drainRingBuffer()
508 work->workletsProcessed = 1u; in drainRingBuffer()
534 const std::unique_ptr<C2Work> &work) { in drainRingBuffer() argument
535 work->result = C2_OK; in drainRingBuffer()
536 C2FrameData &output = work->worklets.front()->output; in drainRingBuffer()
[all …]
/frameworks/av/media/codec2/components/avc/
DC2SoftAvcDec.cpp699 static void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
701 if (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) { in fillEmptyWork()
705 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
706 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
707 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
708 work->workletsProcessed = 1u; in fillEmptyWork()
711 void C2SoftAvcDec::finishWork(uint64_t index, const std::unique_ptr<C2Work> &work) { in finishWork() argument
727 void operator()(const std::unique_ptr<C2Work>& work) { in finishWork() argument
728 work->worklets.front()->output.flags = (C2FrameData::flags_t)mFlags; in finishWork()
729 work->worklets.front()->output.buffers.clear(); in finishWork()
[all …]
/frameworks/av/media/codec2/components/hevc/
DC2SoftHevcDec.cpp690 void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
692 if (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) { in fillEmptyWork()
696 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
697 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
698 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
699 work->workletsProcessed = 1u; in fillEmptyWork()
702 void C2SoftHevcDec::finishWork(uint64_t index, const std::unique_ptr<C2Work> &work) { in finishWork() argument
718 void operator()(const std::unique_ptr<C2Work>& work) { in finishWork() argument
719 work->worklets.front()->output.flags = (C2FrameData::flags_t)mFlags; in finishWork()
720 work->worklets.front()->output.buffers.clear(); in finishWork()
[all …]
/frameworks/av/media/codec2/components/base/
DSimpleC2Component.cpp34 std::unique_ptr<C2Work> work = std::move(mQueue.front().work); in pop_front() local
36 return work; in pop_front()
39 void SimpleC2Component::WorkQueue::push_back(std::unique_ptr<C2Work> work) { in push_back() argument
40 mQueue.push_back({ std::move(work), NO_DRAIN }); in push_back()
273 std::unique_ptr<C2Work> work = queue->pop_front(); in flush_sm() local
274 if (work) { in flush_sm()
275 flushedWork->push_back(std::move(work)); in flush_sm()
386 std::list<std::unique_ptr<C2Work>> vec(std::unique_ptr<C2Work> &work) { in vec() argument
388 ret.push_back(std::move(work)); in vec()
396 std::unique_ptr<C2Work> work; in finish() local
[all …]
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxEnc.cpp418 const std::unique_ptr<C2Work> &work, in process() argument
421 work->result = C2_OK; in process()
422 work->workletsProcessed = 1u; in process()
423 work->worklets.front()->output.flags = work->input.flags; in process()
426 work->result = C2_BAD_VALUE; in process()
433 work->result = C2_CORRUPTED; in process()
439 if (!work->input.buffers.empty()) { in process()
440 inputBuffer = work->input.buffers[0]; in process()
445 work->result = C2_CORRUPTED; in process()
451 if (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) { in process()
[all …]
DC2SoftVpxDec.cpp489 void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
491 if (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) { in fillEmptyWork()
495 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
496 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
497 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
498 work->workletsProcessed = 1u; in fillEmptyWork()
501 void C2SoftVpxDec::finishWork(uint64_t index, const std::unique_ptr<C2Work> &work, in finishWork() argument
506 const std::unique_ptr<C2Work> &work) { in finishWork() argument
508 if ((work->input.flags & C2FrameData::FLAG_END_OF_STREAM) && in finishWork()
509 (c2_cntr64_t(index) == work->input.ordinal.frameIndex)) { in finishWork()
[all …]
/frameworks/av/media/codec2/components/raw/
DC2SoftRawDec.cpp141 const std::unique_ptr<C2Work> &work, in process() argument
144 work->result = C2_OK; in process()
145 work->workletsProcessed = 1u; in process()
148 work->result = C2_BAD_VALUE; in process()
153 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process()
155 work->worklets.front()->output.flags = work->input.flags; in process()
156 work->worklets.front()->output.buffers.clear(); in process()
157 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
158 if (!work->input.buffers.empty()) { in process()
159 work->worklets.front()->output.buffers.push_back(work->input.buffers[0]); in process()
[all …]
/frameworks/av/media/codec2/components/mpeg2/
DC2SoftMpeg2Dec.cpp767 void fillEmptyWork(const std::unique_ptr<C2Work> &work) { in fillEmptyWork() argument
769 if (work->input.flags & C2FrameData::FLAG_END_OF_STREAM) { in fillEmptyWork()
773 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
774 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
775 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
776 work->workletsProcessed = 1u; in fillEmptyWork()
779 void C2SoftMpeg2Dec::finishWork(uint64_t index, const std::unique_ptr<C2Work> &work) { in finishWork() argument
795 void operator()(const std::unique_ptr<C2Work>& work) { in finishWork() argument
796 work->worklets.front()->output.flags = (C2FrameData::flags_t)mFlags; in finishWork()
797 work->worklets.front()->output.buffers.clear(); in finishWork()
[all …]
/frameworks/av/media/codec2/fuzzer/
DC2Fuzzer.cpp125 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()
[all …]

12345678910>>...13