Home
last modified time | relevance | path

Searched refs:C2MemoryUsage (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/av/media/codec2/core/include/
Dandroid-C2Buffer.h31 struct C2AndroidMemoryUsage : public C2MemoryUsage {
32 inline C2AndroidMemoryUsage(const C2MemoryUsage &usage) : C2MemoryUsage(usage) { } in C2AndroidMemoryUsage()
61 static C2MemoryUsage FromGrallocUsage(uint64_t usage);
DC2BufferBase.h41 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
DC2Buffer.h590 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/
DC2AllocatorIon.cpp127 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 …]
DC2Buffer.cpp277 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 …]
DC2AllocatorGralloc.cpp44 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/
DC2BufferPriv.h41 C2MemoryUsage usage,
68 C2MemoryUsage usage,
91 C2MemoryUsage usage,
98 C2MemoryUsage usage,
DC2AllocatorIon.h37 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,
DC2BqBufferPriv.h44 C2MemoryUsage usage,
DC2AllocatorGralloc.h74 uint32_t width, uint32_t height, uint32_t format, C2MemoryUsage usage,
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp247 { 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/
DCCodecBuffers.cpp36 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/
DC2Encoder.cpp183 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/
DC2SoftOpusEnc.cpp344 C2MemoryUsage usage = {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}; in process()
540 C2MemoryUsage usage = {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}; in drainInternal()
DC2SoftOpusDec.cpp378 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
/frameworks/av/media/codec2/components/g711/
DC2SoftG711Dec.cpp179 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
/frameworks/av/media/codec2/hidl/services/
Dvendor.cpp115 {C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE}), in Interface()
/frameworks/av/media/codec2/components/aac/
DC2SoftAacEnc.cpp484 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/
DC2SoftGsmDec.cpp210 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
/frameworks/av/media/codec2/components/amr_nb_wb/
DC2SoftAmrNbEnc.cpp215 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
DC2SoftAmrDec.cpp297 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
DC2SoftAmrWbEnc.cpp297 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
/frameworks/av/media/tests/benchmark/src/native/decoder/
DC2Decoder.cpp111 alignedSize, {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block); in decodeFrames()
/frameworks/av/media/codec2/components/flac/
DC2SoftFlacDec.cpp280 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
/frameworks/av/media/codec2/components/vorbis/
DC2SoftVorbisDec.cpp385 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()

123