/aosp12/frameworks/av/media/codec2/components/opus/ |
H A D | C2SoftOpusDec.cpp | 178 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork() 180 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 181 work->workletsProcessed = 1u; in fillEmptyWork() 212 work->result = C2_OK; in process() 215 work->worklets.front()->output.flags = work->input.flags; in process() 236 fillEmptyWork(work); in process() 358 fillEmptyWork(work); in process() 368 fillEmptyWork(work); in process() 424 work->worklets.front()->output.flags = work->input.flags; in process() 427 work->worklets.front()->output.ordinal = work->input.ordinal; in process() [all …]
|
H A D | C2SoftOpusEnc.cpp | 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() 355 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process() 360 work->result = err; in process() 374 work->result = C2_NO_MEMORY; in process() 407 work->result = C2_OK; in process() 514 inputIndex, work, in process() 595 work->workletsProcessed = 1u; in drainInternal() [all …]
|
/aosp12/frameworks/av/media/codec2/components/flac/ |
H A D | C2SoftFlacDec.cpp | 169 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork() 171 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 172 work->workletsProcessed = 1u; in fillEmptyWork() 180 work->result = C2_OK; in process() 181 work->workletsProcessed = 1u; in process() 183 work->worklets.front()->output.flags = work->input.flags; in process() 209 fillEmptyWork(work); in process() 226 fillEmptyWork(work); in process() 238 fillEmptyWork(work); in process() 310 work->worklets.front()->output.flags = work->input.flags; in process() [all …]
|
H A D | C2SoftFlacEnc.cpp | 192 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork() 194 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 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() 226 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process() 262 work->result = C2_NO_MEMORY; in process() 269 work->result = C2_CORRUPTED; in process() 307 work->result = C2_CORRUPTED; in process() [all …]
|
/aosp12/frameworks/av/media/codec2/components/vorbis/ |
H A D | C2SoftVorbisDec.cpp | 198 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork() 200 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 201 work->workletsProcessed = 1u; in fillEmptyWork() 228 work->result = C2_OK; in process() 229 work->workletsProcessed = 1u; in process() 231 work->worklets.front()->output.flags = work->input.flags; in process() 253 fillEmptyWork(work); in process() 338 fillEmptyWork(work); in process() 428 work->worklets.front()->output.flags = work->input.flags; in process() 431 work->worklets.front()->output.ordinal = work->input.ordinal; in process() [all …]
|
/aosp12/frameworks/av/media/codec2/components/mpeg4_h263/ |
H A D | C2SoftMpeg4Dec.cpp | 342 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 343 work->workletsProcessed = 1u; in fillEmptyWork() 360 work->worklets.front()->output.ordinal = work->input.ordinal; in finishWork() 363 if (work && c2_cntr64_t(index) == work->input.ordinal.frameIndex) { in finishWork() 364 fillWork(work); in finishWork() 485 work->result = C2_OK; in process() 488 work->worklets.front()->output.flags = work->input.flags; in process() 510 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process() 514 fillEmptyWork(work); in process() 573 fillEmptyWork(work); in process() [all …]
|
H A D | C2SoftMpeg4Enc.cpp | 301 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 302 work->workletsProcessed = 1u; in fillEmptyWork() 393 work->result = C2_OK; in process() 394 work->workletsProcessed = 1u; in process() 395 work->worklets.front()->output.flags = work->input.flags; in process() 397 work->result = C2_BAD_VALUE; in process() 405 work->result = C2_CORRUPTED; in process() 414 work->result = C2_NO_MEMORY; in process() 478 fillEmptyWork(work); in process() 493 work->result = C2_BAD_VALUE; in process() [all …]
|
/aosp12/frameworks/av/media/codec2/components/g711/ |
H A D | C2SoftG711Dec.cpp | 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() 163 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process() 166 work->worklets.front()->output.flags = work->input.flags; in process() 168 work->worklets.front()->output.ordinal = work->input.ordinal; in process() 183 work->result = C2_NO_MEMORY; in process() 189 work->result = C2_CORRUPTED; in process() 200 work->worklets.front()->output.flags = work->input.flags; in process() [all …]
|
/aosp12/frameworks/av/media/codec2/components/gsm/ |
H A D | C2SoftGsmDec.cpp | 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() 196 work->worklets.front()->output.flags = work->input.flags; in process() 198 work->worklets.front()->output.ordinal = work->input.ordinal; in process() 206 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process() 214 work->result = C2_NO_MEMORY; in process() 230 work->result = C2_CORRUPTED; in process() 234 work->worklets.front()->output.flags = work->input.flags; in process() [all …]
|
/aosp12/frameworks/av/media/codec2/components/mp3/ |
H A D | C2SoftMp3Dec.cpp | 334 work->result = C2_OK; in process() 335 work->workletsProcessed = 1u; in process() 337 work->worklets.front()->output.flags = work->input.flags; in process() 340 work->result = C2_BAD_VALUE; in process() 358 work->worklets.front()->output.flags = work->input.flags; in process() 360 work->worklets.front()->output.ordinal = work->input.ordinal; in process() 364 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process() 371 work->result = C2_CORRUPTED; in process() 384 work->result = C2_NO_MEMORY; in process() 494 work->worklets.front()->output.flags = work->input.flags; in process() [all …]
|
/aosp12/frameworks/av/media/codec2/components/amr_nb_wb/ |
H A D | C2SoftAmrDec.cpp | 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() 267 work->worklets.front()->output.flags = work->input.flags; in process() 269 work->worklets.front()->output.ordinal = work->input.ordinal; in process() 278 (int)work->input.ordinal.timestamp.peeku(), (int)work->input.ordinal.frameIndex.peeku()); in process() 283 work->result = C2_CORRUPTED; in process() 289 work->result = C2_CORRUPTED; in process() 362 work->worklets.front()->output.flags = work->input.flags; in process() [all …]
|
H A D | C2SoftAmrNbEnc.cpp | 175 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork() 177 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 178 work->workletsProcessed = 1u; in fillEmptyWork() 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() 210 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process() 219 work->result = C2_NO_MEMORY; in process() 225 work->result = C2_CORRUPTED; in process() [all …]
|
H A D | C2SoftAmrWbEnc.cpp | 257 work->worklets.front()->output.flags = work->input.flags; in fillEmptyWork() 259 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 260 work->workletsProcessed = 1u; in fillEmptyWork() 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() 292 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process() 301 work->result = C2_NO_MEMORY; in process() 307 work->result = wView.error(); in process() [all …]
|
/aosp12/frameworks/av/media/codec2/hidl/1.0/vts/functional/common/ |
H A D | media_c2_hidl_test_common.cpp | 71 std::unique_ptr<C2Work> work; in testInputBuffer() local 82 ASSERT_NE(work, nullptr); 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() 91 work->worklets.clear(); in testInputBuffer() 95 items.push_back(std::move(work)); in testInputBuffer() 156 work->input.buffers.clear(); in workDone() 157 work->worklets.clear(); in workDone() 253 ASSERT_NE(work, nullptr); in verifyFlushOutput() [all …]
|
/aosp12/frameworks/av/media/codec2/components/avc/ |
H A D | C2SoftAvcDec.cpp | 707 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 708 work->workletsProcessed = 1u; in fillEmptyWork() 751 work->worklets.front()->output.ordinal = work->input.ordinal; in finishWork() 754 if (work && c2_cntr64_t(index) == work->input.ordinal.frameIndex) { in finishWork() 767 fillWork(work); in finishWork() 809 work->result = C2_OK; in process() 811 work->worklets.front()->output.flags = work->input.flags; in process() 835 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process() 966 fillEmptyWork(work); in process() 969 work->input.buffers.clear(); in process() [all …]
|
/aosp12/frameworks/av/media/codec2/components/hevc/ |
H A D | C2SoftHevcDec.cpp | 698 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 699 work->workletsProcessed = 1u; in fillEmptyWork() 723 work->result = C2_OK; in finishWork() 742 work->worklets.front()->output.ordinal = work->input.ordinal; in finishWork() 745 if (work && c2_cntr64_t(index) == work->input.ordinal.frameIndex) { in finishWork() 758 fillWork(work); in finishWork() 800 work->result = C2_OK; in process() 803 work->worklets.front()->output.flags = work->input.flags; in process() 828 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process() 965 fillEmptyWork(work); in process() [all …]
|
H A D | C2SoftHevcEnc.cpp | 556 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 557 work->workletsProcessed = 1u; in fillEmptyWork() 908 work->result = status; in finishWork() 939 work->worklets.front()->output.ordinal = work->input.ordinal; in finishWork() 942 if (work && c2_cntr64_t(index) == work->input.ordinal.frameIndex) { in finishWork() 943 fillWork(work); in finishWork() 975 if (work->workletsProcessed != 1u) fillEmptyWork(work); in drainInternal() 985 work->result = C2_OK; in process() 987 work->worklets.front()->output.flags = work->input.flags; in process() 1077 work->result = status; in process() [all …]
|
/aosp12/frameworks/av/media/codec2/components/aac/ |
H A D | C2SoftAacDec.cpp | 543 if (work && work->input.ordinal.frameIndex == c2_cntr64_t(outInfo.frameIndex)) { in drainRingBuffer() 544 fillWork(work); in drainRingBuffer() 558 work->result = C2_OK; in process() 559 work->workletsProcessed = 1u; in process() 561 work->worklets.front()->output.flags = work->input.flags; in process() 606 work->worklets.front()->output.flags = work->input.flags; in process() 607 work->worklets.front()->output.ordinal = work->input.ordinal; in process() 986 work->worklets.front()->output.flags = work->input.flags; in drainInternal() 988 work->worklets.front()->output.ordinal = work->input.ordinal; in drainInternal() 995 if (work && work->workletsProcessed == 0u) { in drainInternal() [all …]
|
/aosp12/frameworks/av/media/codec2/components/aom/ |
H A D | C2SoftAomDec.cpp | 373 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 393 work->worklets.front()->output.ordinal = work->input.ordinal; in finishWork() 418 if (work && c2_cntr64_t(index) == work->input.ordinal.frameIndex) { in finishWork() 419 fillWork(work); in finishWork() 427 work->result = C2_OK; in process() 430 work->worklets.front()->output.flags = work->input.flags; in process() 456 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process() 459 fillEmptyWork(work); in process() 504 fillEmptyWork(work); in process() 677 work->result = err; in outputBuffer() [all …]
|
/aosp12/frameworks/av/media/codec2/components/gav1/ |
H A D | C2SoftGav1Dec.cpp | 365 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 384 work->worklets.front()->output.ordinal = work->input.ordinal; in finishWork() 387 if (work && c2_cntr64_t(index) == work->input.ordinal.frameIndex) { in finishWork() 388 fillWork(work); in finishWork() 396 work->result = C2_OK; in process() 399 work->worklets.front()->output.flags = work->input.flags; in process() 424 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process() 427 fillEmptyWork(work); in process() 464 fillEmptyWork(work); in process() 692 work->result = err; in outputBuffer() [all …]
|
/aosp12/frameworks/av/media/codec2/components/base/ |
H A D | SimpleC2Component.cpp | 34 std::unique_ptr<C2Work> work = std::move(mQueue.front().work); in pop_front() local 36 return work; in pop_front() 274 if (work) { in flush_sm() 396 std::unique_ptr<C2Work> work; in finish() local 406 if (work) { in finish() 407 fillWork(work); in finish() 432 if (work) { in cloneAndSend() 433 fillWork(work); in cloneAndSend() 441 std::unique_ptr<C2Work> work; in processQueue() local 514 if (!work) { in processQueue() [all …]
|
/aosp12/frameworks/av/media/codec2/components/vpx/ |
H A D | C2SoftVpxEnc.cpp | 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() 456 work->worklets.front()->output.ordinal = work->input.ordinal; in process() 457 work->workletsProcessed = 1u; in process() 469 work->result = C2_BAD_VALUE; in process() 479 work->result = C2_BAD_VALUE; in process() 603 work->result = C2_CORRUPTED; in process() [all …]
|
H A D | C2SoftVpxDec.cpp | 497 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 516 work->worklets.front()->output.ordinal = work->input.ordinal; in finishWork() 541 if (work && c2_cntr64_t(index) == work->input.ordinal.frameIndex) { in finishWork() 542 fillWork(work); in finishWork() 552 work->result = C2_OK; in process() 555 work->worklets.front()->output.flags = work->input.flags; in process() 580 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process() 629 fillEmptyWork(work); in process() 806 work->result = err; in outputBuffer() 902 work && work->workletsProcessed == 0u) { in drainInternal() [all …]
|
/aosp12/frameworks/av/media/codec2/components/mpeg2/ |
H A D | C2SoftMpeg2Dec.cpp | 775 work->worklets.front()->output.ordinal = work->input.ordinal; in fillEmptyWork() 776 work->workletsProcessed = 1u; in fillEmptyWork() 800 work->result = C2_OK; in finishWork() 819 work->worklets.front()->output.ordinal = work->input.ordinal; in finishWork() 822 if (work && c2_cntr64_t(index) == work->input.ordinal.frameIndex) { in finishWork() 835 fillWork(work); in finishWork() 877 work->result = C2_OK; in process() 880 work->worklets.front()->output.flags = work->input.flags; in process() 905 (int)work->input.ordinal.frameIndex.peeku(), work->input.flags); in process() 1025 fillEmptyWork(work); in process() [all …]
|
/aosp12/frameworks/av/media/codec2/components/raw/ |
H A D | C2SoftRawDec.cpp | 141 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 …]
|