/frameworks/av/media/codec2/core/include/ |
D | android-C2Buffer.h | 31 struct C2AndroidMemoryUsage : public C2MemoryUsage { 32 inline C2AndroidMemoryUsage(const C2MemoryUsage &usage) : C2MemoryUsage(usage) { } in C2AndroidMemoryUsage() 61 static C2MemoryUsage FromGrallocUsage(uint64_t usage);
|
D | C2BufferBase.h | 41 struct C2MemoryUsage { struct 82 inline C2MemoryUsage(uint64_t consumer, uint64_t producer) in C2MemoryUsage() function 85 inline explicit C2MemoryUsage(uint64_t expected_) in C2MemoryUsage() argument
|
D | C2Buffer.h | 590 C2MemoryUsage minimumUsage; ///< usage that is minimally required for allocations 591 C2MemoryUsage maximumUsage; ///< usage that is maximally allowed for allocations 648 uint32_t capacity __unused, C2MemoryUsage usage __unused, in newLinearAllocation() 706 C2MemoryUsage usage __unused, in newGraphicAllocation() 779 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence /* nullable */, 898 uint32_t capacity __unused, C2MemoryUsage usage __unused, in fetchLinearBlock() 927 uint32_t capacity __unused, C2MemoryUsage usage __unused, in fetchCircularBlock() 960 C2MemoryUsage usage __unused, in fetchGraphicBlock() 1753 C2Rect rect, C2MemoryUsage usage, C2Fence *fence,
|
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorIon.cpp | 127 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, 211 c2_status_t map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) { in map() 227 if (usage.expected & C2MemoryUsage::CPU_READ) { in map() 230 if (usage.expected & C2MemoryUsage::CPU_WRITE) { in map() 444 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) { in map() 496 C2MemoryUsage minUsage = { 0, 0 }; in C2AllocatorIon() 497 C2MemoryUsage maxUsage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in C2AllocatorIon() 533 C2MemoryUsage(minUsage), C2MemoryUsage(maxUsage) in setUsageMapper() 544 C2MemoryUsage usage, size_t capacity, size_t *align, unsigned *heapMask, unsigned *flags) { in mapUsage() 557 if (usage.expected & (C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE)) { in mapUsage() [all …]
|
D | C2Buffer.cpp | 277 offset(), len, { C2MemoryUsage::CPU_READ, 0 }, nullptr, &base); in map() 307 offset(), len, { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, nullptr, &base); in map() 332 C2MemoryUsage usage, in fetchLinearBlock() 456 void getLinearParams(uint32_t capacity, C2MemoryUsage usage, 469 uint32_t format, C2MemoryUsage usage, 501 C2MemoryUsage usage; 507 AllocParams(C2MemoryUsage usage, uint32_t capacity) in AllocParams() 510 C2MemoryUsage usage, in AllocParams() 615 uint32_t capacity, C2MemoryUsage usage, std::vector<uint8_t> *params) { in getLinearParams() 621 uint32_t width, uint32_t height, uint32_t format, C2MemoryUsage usage, in getGraphicParams() [all …]
|
D | C2AllocatorGralloc.cpp | 44 static_assert((~C2MemoryUsage::PLATFORM_MASK & PASSTHROUGH_USAGE_MASK) == 0, ""); 47 C2MemoryUsage C2AndroidMemoryUsage::FromGrallocUsage(uint64_t usage) { in FromGrallocUsage() 49 return C2MemoryUsage( in FromGrallocUsage() 50 ((usage & GRALLOC_USAGE_SW_READ_MASK) ? C2MemoryUsage::CPU_READ : 0) | in FromGrallocUsage() 51 ((usage & GRALLOC_USAGE_SW_WRITE_MASK) ? C2MemoryUsage::CPU_WRITE : 0) | in FromGrallocUsage() 52 ((usage & GRALLOC_USAGE_PROTECTED) ? C2MemoryUsage::READ_PROTECTED : 0) | in FromGrallocUsage() 58 return (((expected & C2MemoryUsage::CPU_READ) ? GRALLOC_USAGE_SW_READ_OFTEN : 0) | in asGrallocUsage() 59 ((expected & C2MemoryUsage::CPU_WRITE) ? GRALLOC_USAGE_SW_WRITE_OFTEN : 0) | in asGrallocUsage() 60 ((expected & C2MemoryUsage::READ_PROTECTED) ? GRALLOC_USAGE_PROTECTED : 0) | in asGrallocUsage() 302 C2Rect rect, C2MemoryUsage usage, C2Fence *fence, [all …]
|
/frameworks/av/media/codec2/vndk/include/ |
D | C2BufferPriv.h | 41 C2MemoryUsage usage, 68 C2MemoryUsage usage, 91 C2MemoryUsage usage, 98 C2MemoryUsage usage,
|
D | C2AllocatorIon.h | 37 typedef std::function<c2_status_t(C2MemoryUsage, size_t, 47 uint32_t capacity, C2MemoryUsage usage, 79 c2_status_t mapUsage(C2MemoryUsage usage, size_t size,
|
D | C2BqBufferPriv.h | 44 C2MemoryUsage usage,
|
D | C2AllocatorGralloc.h | 74 uint32_t width, uint32_t height, uint32_t format, C2MemoryUsage usage,
|
/frameworks/av/media/codec2/tests/vndk/ |
D | C2BufferTest.cpp | 247 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in allocateLinear() 260 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in mapLinear() 293 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in allocateGraphic() 305 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in mapGraphic() 375 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in TEST_F() 516 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in TEST_F() 605 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in TEST_F() 609 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in TEST_F() 617 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in TEST_F() 623 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in TEST_F() [all …]
|
/frameworks/av/media/codec2/sfplugin/ |
D | CCodecBuffers.cpp | 36 const C2MemoryUsage &usage, in AllocateGraphicBuffer() 555 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in Alloc() 586 mUsage = { C2MemoryUsage::READ_PROTECTED, 0 }; 588 mUsage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; 623 C2MemoryUsage usage, in Alloc() 776 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in toArrayMode() 789 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in createNewBuffer()
|
/frameworks/av/media/tests/benchmark/src/native/encoder/ |
D | C2Encoder.cpp | 183 frameSize, {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block); in encodeFrames() 200 {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block); in encodeFrames()
|
/frameworks/av/media/codec2/components/opus/ |
D | C2SoftOpusEnc.cpp | 344 C2MemoryUsage usage = {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}; in process() 540 C2MemoryUsage usage = {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}; in drainInternal()
|
D | C2SoftOpusDec.cpp | 378 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
|
/frameworks/av/media/codec2/components/g711/ |
D | C2SoftG711Dec.cpp | 179 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
|
/frameworks/av/media/codec2/hidl/services/ |
D | vendor.cpp | 115 {C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE}), in Interface()
|
/frameworks/av/media/codec2/components/aac/ |
D | C2SoftAacEnc.cpp | 484 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process() 549 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
|
/frameworks/av/media/codec2/components/gsm/ |
D | C2SoftGsmDec.cpp | 210 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
|
/frameworks/av/media/codec2/components/amr_nb_wb/ |
D | C2SoftAmrNbEnc.cpp | 215 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
|
D | C2SoftAmrDec.cpp | 297 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
|
D | C2SoftAmrWbEnc.cpp | 297 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
|
/frameworks/av/media/tests/benchmark/src/native/decoder/ |
D | C2Decoder.cpp | 111 alignedSize, {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block); in decodeFrames()
|
/frameworks/av/media/codec2/components/flac/ |
D | C2SoftFlacDec.cpp | 280 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
|
/frameworks/av/media/codec2/components/vorbis/ |
D | C2SoftVorbisDec.cpp | 385 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
|