Home
last modified time | relevance | path

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

12

/hardware/google/av/codec2/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() argument
85 inline explicit C2MemoryUsage(uint64_t expected_) in C2MemoryUsage() function
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 */,
897 uint32_t capacity __unused, C2MemoryUsage usage __unused, in fetchLinearBlock()
925 uint32_t capacity __unused, C2MemoryUsage usage __unused, in fetchCircularBlock()
957 C2MemoryUsage usage __unused, in fetchGraphicBlock()
1750 C2Rect rect, C2MemoryUsage usage, C2Fence *fence,
2277 inline const C2MemoryUsage usage() const { return mUsage; } in usage()
[all …]
/hardware/google/av/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.h43 C2MemoryUsage usage,
DC2AllocatorGralloc.h64 uint32_t width, uint32_t height, uint32_t format, C2MemoryUsage usage,
/hardware/google/av/codec2/vndk/
DC2AllocatorIon.cpp127 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence,
231 c2_status_t map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) { in map()
247 if (usage.expected & C2MemoryUsage::CPU_READ) { in map()
250 if (usage.expected & C2MemoryUsage::CPU_WRITE) { in map()
369 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) { in map()
421 C2MemoryUsage minUsage = { 0, 0 }; in C2AllocatorIon()
422 C2MemoryUsage maxUsage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in C2AllocatorIon()
458 C2MemoryUsage(minUsage), C2MemoryUsage(maxUsage) in setUsageMapper()
469 C2MemoryUsage usage, size_t capacity, size_t *align, unsigned *heapMask, unsigned *flags) { in mapUsage()
505 uint32_t capacity, C2MemoryUsage usage, std::shared_ptr<C2LinearAllocation> *allocation) { in newLinearAllocation()
DC2AllocatorGralloc.cpp42 static_assert((~C2MemoryUsage::PLATFORM_MASK & PASSTHROUGH_USAGE_MASK) == 0, "");
45 C2MemoryUsage C2AndroidMemoryUsage::FromGrallocUsage(uint64_t usage) { in FromGrallocUsage()
47 return C2MemoryUsage( in FromGrallocUsage()
48 ((usage & GRALLOC_USAGE_SW_READ_MASK) ? C2MemoryUsage::CPU_READ : 0) | in FromGrallocUsage()
49 ((usage & GRALLOC_USAGE_SW_WRITE_MASK) ? C2MemoryUsage::CPU_WRITE : 0) | in FromGrallocUsage()
50 ((usage & GRALLOC_USAGE_PROTECTED) ? C2MemoryUsage::READ_PROTECTED : 0) | in FromGrallocUsage()
56 return (((expected & C2MemoryUsage::CPU_READ) ? GRALLOC_USAGE_SW_READ_OFTEN : 0) | in asGrallocUsage()
57 ((expected & C2MemoryUsage::CPU_WRITE) ? GRALLOC_USAGE_SW_WRITE_OFTEN : 0) | in asGrallocUsage()
58 ((expected & C2MemoryUsage::READ_PROTECTED) ? GRALLOC_USAGE_PROTECTED : 0) | in asGrallocUsage()
278 C2Rect rect, C2MemoryUsage usage, C2Fence *fence,
[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()
459 void getLinearParams(uint32_t capacity, C2MemoryUsage usage,
472 uint32_t format, C2MemoryUsage usage,
504 C2MemoryUsage usage;
510 AllocParams(C2MemoryUsage usage, uint32_t capacity) in AllocParams()
513 C2MemoryUsage usage, in AllocParams()
618 uint32_t capacity, C2MemoryUsage usage, std::vector<uint8_t> *params) { in getLinearParams()
624 uint32_t width, uint32_t height, uint32_t format, C2MemoryUsage usage, in getGraphicParams()
[all …]
DC2Store.cpp137 uint64_t maxUsage = C2MemoryUsage(C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE).expected; in UseComponentStoreForIonAllocator()
165 mapper = [store](C2MemoryUsage usage, size_t capacity, in UseComponentStoreForIonAllocator()
615 … C2F(mIonUsageInfo, usage).flags({C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE}), in Interface()
/hardware/google/av/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 …]
/hardware/google/av/media/codecs/aac/
DC2SoftAacEnc.cpp432 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
498 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
/hardware/google/av/media/codecs/gsm/
DC2SoftGsmDec.cpp216 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
/hardware/google/av/media/codecs/g711/
DC2SoftG711Dec.cpp185 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
/hardware/google/av/media/codecs/amr_nb_wb/
DC2SoftAmrNbEnc.cpp222 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
DC2SoftAmrWbEnc.cpp305 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
DC2SoftAmrDec.cpp303 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
/hardware/google/av/media/codecs/flac/
DC2SoftFlacDec.cpp273 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
DC2SoftFlacEnc.cpp234 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
/hardware/google/av/media/codecs/mpeg4_h263/
DC2SoftMpeg4Enc.cpp85 0u, (uint64_t)C2MemoryUsage::CPU_READ)) in IntfImpl()
420 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
/hardware/google/av/media/codecs/vorbis/
DC2SoftVorbisDec.cpp391 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
/hardware/google/av/media/codecs/opus/
DC2SoftOpusDec.cpp438 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
/hardware/google/av/codec2/vndk/platform/
DC2BqBuffer.cpp185 C2MemoryUsage usage, in fetchFromIgbp_l()
324 C2MemoryUsage usage, in fetchGraphicBlock()
468 C2MemoryUsage usage, in fetchGraphicBlock()
/hardware/google/av/media/sfplugin/
DCCodecBufferChannel.cpp399 const C2MemoryUsage &usage, in AllocateGraphicBuffer()
831 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in alloc()
861 mUsage = { C2MemoryUsage::READ_PROTECTED, 0 };
863 mUsage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE };
902 C2MemoryUsage mUsage;
990 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in requestNewBuffer()
1027 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in toArrayMode()

12