Home
last modified time | relevance | path

Searched refs:worklets (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/av/media/codec2/hidl/1.0/vts/functional/common/
Dmedia_c2_hidl_test_common.cpp48 work->worklets.clear(); in testInputBuffer()
49 work->worklets.emplace_back(new C2Worklet); in testInputBuffer()
88 if (work->worklets.front()->output.configUpdate.size() != 0) { in workDone()
91 std::move(work->worklets.front()->output.configUpdate); in workDone()
110 if (work->worklets.front()->output.flags != C2FrameData::FLAG_INCOMPLETE) { in workDone()
112 eos = (work->worklets.front()->output.flags & in workDone()
117 (int)work->worklets.front()->output.ordinal.frameIndex.peeku()); in workDone()
119 work->worklets.clear(); in workDone()
/frameworks/av/media/codec2/components/flac/
DC2SoftFlacDec.cpp169 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()
182 work->worklets.front()->output.configUpdate.clear(); in process()
183 work->worklets.front()->output.flags = work->input.flags; in process()
255 work->worklets.front()->output.configUpdate.push_back( in process()
257 work->worklets.front()->output.configUpdate.push_back( in process()
305 work->worklets.front()->output.flags = work->input.flags; in process()
306 work->worklets.front()->output.buffers.clear(); in process()
307 work->worklets.front()->output.buffers.push_back(createLinearBuffer(block, 0, outSize)); in process()
[all …]
DC2SoftFlacEnc.cpp192 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()
203 work->worklets.front()->output.flags = work->input.flags; in process()
244 work->worklets.front()->output.configUpdate.push_back(std::move(csd)); in process()
313 work->worklets.front()->output.buffers.push_back(buffer); in process()
314 work->worklets.front()->output.ordinal.timestamp = mAnchorTimeStamp + outTimeStamp; in process()
/frameworks/av/media/codec2/components/g711/
DC2SoftG711Dec.cpp140 work->worklets.front()->output.flags = work->input.flags; in process()
166 work->worklets.front()->output.flags = work->input.flags; in process()
167 work->worklets.front()->output.buffers.clear(); in process()
168 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
200 work->worklets.front()->output.flags = work->input.flags; in process()
201 work->worklets.front()->output.buffers.clear(); in process()
202 work->worklets.front()->output.buffers.push_back(createLinearBuffer(block)); in process()
203 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
/frameworks/av/media/tests/benchmark/src/native/common/
DBenchmarkC2Common.cpp95 if (!work->worklets.empty()) { in handleWorkDone()
96 if (work->worklets.front()->output.flags != C2FrameData::FLAG_INCOMPLETE) { in handleWorkDone()
97 mEos = (work->worklets.front()->output.flags & C2FrameData::FLAG_END_OF_STREAM) != in handleWorkDone()
100 (int)work->worklets.front()->output.ordinal.frameIndex.peeku(), mEos); in handleWorkDone()
102 work->worklets.clear(); in handleWorkDone()
/frameworks/av/media/codec2/components/opus/
DC2SoftOpusDec.cpp178 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()
214 work->worklets.front()->output.configUpdate.clear(); in process()
215 work->worklets.front()->output.flags = work->input.flags; in process()
349 … work->worklets.front()->output.configUpdate.push_back(C2Param::Copy(sampleRateInfo)); in process()
350 … work->worklets.front()->output.configUpdate.push_back(C2Param::Copy(channelCountInfo)); in process()
424 work->worklets.front()->output.flags = work->input.flags; in process()
425 work->worklets.front()->output.buffers.clear(); in process()
426 … work->worklets.front()->output.buffers.push_back(createLinearBuffer(block, outOffset, outSize)); in process()
[all …]
DC2SoftOpusEnc.cpp304 work->worklets.front()->output.flags = work->input.flags; in process()
377 work->worklets.front()->output.flags = (C2FrameData::flags_t)mFlags; in process()
378 work->worklets.front()->output.buffers.clear(); in process()
379 work->worklets.front()->output.ordinal = mOrdinal; in process()
383 work->worklets.front()->output.buffers.push_back(mBuffer); in process()
435 work->worklets.front()->output.configUpdate.push_back(std::move(csd)); in process()
565 work->worklets.front()->output.flags = in drainInternal()
567 work->worklets.front()->output.buffers.clear(); in drainInternal()
568 work->worklets.front()->output.ordinal = outOrdinal; in drainInternal()
572 work->worklets.front()->output.buffers.push_back(buffer); in drainInternal()
/frameworks/av/media/codec2/components/mp3/
DC2SoftMp3Dec.cpp335 work->worklets.front()->output.configUpdate.clear(); in process()
336 work->worklets.front()->output.flags = work->input.flags; in process()
357 work->worklets.front()->output.flags = work->input.flags; in process()
358 work->worklets.front()->output.buffers.clear(); in process()
359 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
445 … work->worklets.front()->output.configUpdate.push_back(C2Param::Copy(sampleRateInfo)); in process()
446 … work->worklets.front()->output.configUpdate.push_back(C2Param::Copy(channelCountInfo)); in process()
493 work->worklets.front()->output.flags = work->input.flags; in process()
494 work->worklets.front()->output.buffers.clear(); in process()
495 work->worklets.front()->output.buffers.push_back( in process()
[all …]
/frameworks/av/media/codec2/components/vorbis/
DC2SoftVorbisDec.cpp198 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()
230 work->worklets.front()->output.configUpdate.clear(); in process()
231 work->worklets.front()->output.flags = work->input.flags; in process()
303 … work->worklets.front()->output.configUpdate.push_back(C2Param::Copy(sampleRateInfo)); in process()
304 … work->worklets.front()->output.configUpdate.push_back(C2Param::Copy(channelCountInfo)); in process()
424 work->worklets.front()->output.flags = work->input.flags; in process()
425 work->worklets.front()->output.buffers.clear(); in process()
426 work->worklets.front()->output.buffers.push_back(createLinearBuffer(block, 0, outSize)); in process()
[all …]
/frameworks/av/media/codec2/components/gsm/
DC2SoftGsmDec.cpp174 work->worklets.front()->output.flags = work->input.flags; in process()
196 work->worklets.front()->output.flags = work->input.flags; in process()
197 work->worklets.front()->output.buffers.clear(); in process()
198 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
234 work->worklets.front()->output.flags = work->input.flags; in process()
235 work->worklets.front()->output.buffers.clear(); in process()
236 work->worklets.front()->output.buffers.push_back(createLinearBuffer(block, 0, outSize)); in process()
237 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
/frameworks/av/media/codec2/components/amr_nb_wb/
DC2SoftAmrDec.cpp245 work->worklets.front()->output.flags = work->input.flags; in process()
267 work->worklets.front()->output.flags = work->input.flags; in process()
268 work->worklets.front()->output.buffers.clear(); in process()
269 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
363 work->worklets.front()->output.flags = work->input.flags; in process()
364 work->worklets.front()->output.buffers.clear(); in process()
365 work->worklets.front()->output.buffers.push_back(createLinearBuffer(block)); in process()
366 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
DC2SoftAmrNbEnc.cpp175 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()
187 work->worklets.front()->output.flags = work->input.flags; in process()
273 work->worklets.front()->output.buffers.push_back( in process()
275 work->worklets.front()->output.ordinal.timestamp = mAnchorTimeStamp + outTimeStamp; in process()
DC2SoftAmrWbEnc.cpp257 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()
269 work->worklets.front()->output.flags = work->input.flags; in process()
348 work->worklets.front()->output.buffers.push_back( in process()
350 work->worklets.front()->output.ordinal.timestamp = mAnchorTimeStamp + outTimeStamp; in process()
/frameworks/av/media/codec2/components/raw/
DC2SoftRawDec.cpp153 work->worklets.front()->output.flags = work->input.flags; in process()
154 work->worklets.front()->output.buffers.clear(); in process()
155 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
157 work->worklets.front()->output.buffers.push_back(work->input.buffers[0]); in process()
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxEnc.cpp418 work->worklets.front()->output.flags = work->input.flags; in process()
449 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in process()
450 work->worklets.front()->output.buffers.clear(); in process()
451 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
631 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in process()
632 work->worklets.front()->output.buffers.clear(); in process()
638 work->worklets.front()->output.buffers.push_back(buffer); in process()
639 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
640 work->worklets.front()->output.ordinal.timestamp = encoded_packet->data.frame.pts; in process()
/frameworks/av/media/codec2/hidl/1.0/vts/functional/video/
DVtsHalMediaC2V1_0TargetVideoDecTest.cpp149 if (!work->worklets.empty()) { in handleWorkDone()
153 bool codecConfig = ((work->worklets.front()->output.flags & in handleWorkDone()
156 !work->worklets.front()->output.buffers.empty()) { in handleWorkDone()
158 (work->worklets.front()->output.ordinal.timestamp.peeku()), in handleWorkDone()
161 work->worklets.front()->output.ordinal.timestamp.peeku(); in handleWorkDone()
409 work->worklets.clear(); in decodeNFrames()
410 work->worklets.emplace_back(new C2Worklet); in decodeNFrames()
596 work->worklets.clear(); in TEST_F()
597 work->worklets.emplace_back(new C2Worklet); in TEST_F()
694 work->worklets.clear(); in TEST_F()
[all …]
DVtsHalMediaC2V1_0TargetVideoEncTest.cpp136 if (!work->worklets.empty()) { in handleWorkDone()
141 EXPECT_GE((work->worklets.front() in handleWorkDone()
144 mTimestampUs = work->worklets.front() in handleWorkDone()
365 work->worklets.clear(); in encodeNFrames()
366 work->worklets.emplace_back(new C2Worklet); in encodeNFrames()
503 work->worklets.clear(); in TEST_F()
504 work->worklets.emplace_back(new C2Worklet); in TEST_F()
579 work->worklets.clear(); in TEST_F()
617 work->worklets.clear(); in TEST_F()
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Dec.cpp360 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
361 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
362 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
377 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in finishWork()
378 work->worklets.front()->output.buffers.clear(); in finishWork()
379 work->worklets.front()->output.buffers.push_back(buffer); in finishWork()
380 work->worklets.front()->output.ordinal = work->input.ordinal; in finishWork()
507 work->worklets.front()->output.configUpdate.clear(); in process()
508 work->worklets.front()->output.flags = work->input.flags; in process()
583 work->worklets.front()->output.configUpdate.push_back( in process()
[all …]
/frameworks/av/media/codec2/components/hevc/
DC2SoftHevcDec.cpp691 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
692 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
693 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
714 work->worklets.front()->output.flags = (C2FrameData::flags_t)mFlags; in finishWork()
715 work->worklets.front()->output.buffers.clear(); in finishWork()
716 work->worklets.front()->output.ordinal = mOrdinal; in finishWork()
720 work->worklets.front()->output.buffers.push_back(mBuffer); in finishWork()
734 work->worklets.front()->output.flags = (C2FrameData::flags_t)0; in finishWork()
735 work->worklets.front()->output.buffers.clear(); in finishWork()
736 work->worklets.front()->output.buffers.push_back(buffer); in finishWork()
[all …]
/frameworks/av/media/codec2/components/aac/
DC2SoftAacDec.cpp457 C2FrameData &output = work->worklets.front()->output; in drainRingBuffer()
490 C2FrameData &output = work->worklets.front()->output; in drainRingBuffer()
516 work->worklets.front()->output.configUpdate.clear(); in process()
517 work->worklets.front()->output.flags = work->input.flags; in process()
562 work->worklets.front()->output.flags = work->input.flags; in process()
563 work->worklets.front()->output.ordinal = work->input.ordinal; in process()
564 work->worklets.front()->output.buffers.clear(); in process()
754 C2FrameData &output = work->worklets.front()->output; in process()
811 work->worklets.front()->output.flags = work->input.flags; in drainInternal()
812 work->worklets.front()->output.buffers.clear(); in drainInternal()
[all …]
/frameworks/av/media/codec2/components/avc/
DC2SoftAvcDec.cpp695 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
696 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
697 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
718 work->worklets.front()->output.flags = (C2FrameData::flags_t)mFlags; in finishWork()
719 work->worklets.front()->output.buffers.clear(); in finishWork()
720 work->worklets.front()->output.ordinal = mOrdinal; in finishWork()
724 work->worklets.front()->output.buffers.push_back(mBuffer); in finishWork()
738 work->worklets.front()->output.flags = (C2FrameData::flags_t)0; in finishWork()
739 work->worklets.front()->output.buffers.clear(); in finishWork()
740 work->worklets.front()->output.buffers.push_back(buffer); in finishWork()
[all …]
/frameworks/av/media/codec2/components/cmds/
Dcodec2.cpp248 … ALOGV("Render: Frame #%lld", work->worklets.front()->output.ordinal.frameIndex.peekll()); in play()
249 const std::shared_ptr<C2Buffer> &output = work->worklets.front()->output.buffers[0]; in play()
267 (work->worklets.front()->output.ordinal.timestamp * 1000ll).peekll(), in play()
280 work->worklets.clear(); in play()
357 work->worklets.clear(); in play()
358 work->worklets.emplace_back(new C2Worklet); in play()
/frameworks/av/media/codec2/hidl/1.0/vts/functional/audio/
DVtsHalMediaC2V1_0TargetAudioDecTest.cpp152 if (!work->worklets.empty()) { in handleWorkDone()
155 bool codecConfig = ((work->worklets.front()->output.flags & in handleWorkDone()
158 !work->worklets.front()->output.buffers.empty()) { in handleWorkDone()
159 EXPECT_GE(work->worklets.front()->output.ordinal.timestamp.peeku(), in handleWorkDone()
162 work->worklets.front()->output.ordinal.timestamp.peeku(); in handleWorkDone()
164 work->worklets.front()->output.buffers[0]->data() in handleWorkDone()
470 work->worklets.clear(); in decodeNFrames()
471 work->worklets.emplace_back(new C2Worklet); in decodeNFrames()
711 work->worklets.clear(); in TEST_F()
712 work->worklets.emplace_back(new C2Worklet); in TEST_F()
[all …]
/frameworks/av/media/codec2/components/mpeg2/
DC2SoftMpeg2Dec.cpp765 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
766 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
767 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
788 work->worklets.front()->output.flags = (C2FrameData::flags_t)mFlags; in finishWork()
789 work->worklets.front()->output.buffers.clear(); in finishWork()
790 work->worklets.front()->output.ordinal = mOrdinal; in finishWork()
794 work->worklets.front()->output.buffers.push_back(mBuffer); in finishWork()
808 work->worklets.front()->output.flags = (C2FrameData::flags_t)0; in finishWork()
809 work->worklets.front()->output.buffers.clear(); in finishWork()
810 work->worklets.front()->output.buffers.push_back(buffer); in finishWork()
[all …]
/frameworks/av/media/codec2/components/aom/
DC2SoftAomDec.cpp369 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in fillEmptyWork()
370 work->worklets.front()->output.buffers.clear(); in fillEmptyWork()
371 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork()
388 work->worklets.front()->output.flags = (C2FrameData::flags_t)flags; in finishWork()
389 work->worklets.front()->output.buffers.clear(); in finishWork()
390 work->worklets.front()->output.buffers.push_back(buffer); in finishWork()
391 work->worklets.front()->output.ordinal = work->input.ordinal; in finishWork()
406 work->worklets.front()->output.configUpdate.push_back( in finishWork()
427 work->worklets.front()->output.configUpdate.clear(); in process()
428 work->worklets.front()->output.flags = work->input.flags; in process()
[all …]

12