/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() argument 85 inline explicit C2MemoryUsage(uint64_t expected_) in C2MemoryUsage() argument
|
D | C2Buffer.h | 593 C2MemoryUsage minimumUsage; ///< usage that is minimally required for allocations 594 C2MemoryUsage maximumUsage; ///< usage that is maximally allowed for allocations 652 uint32_t capacity __unused, C2MemoryUsage usage __unused, in newLinearAllocation() 712 C2MemoryUsage usage __unused, in newGraphicAllocation() 802 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence /* nullable */, 928 uint32_t capacity __unused, C2MemoryUsage usage __unused, in fetchLinearBlock() 964 uint32_t capacity __unused, C2MemoryUsage usage __unused, in fetchCircularBlock() 1004 C2MemoryUsage usage __unused, in fetchGraphicBlock() 1049 uint32_t capacity, C2MemoryUsage usage, 1096 C2MemoryUsage usage, [all …]
|
/frameworks/av/media/codec2/vndk/ |
D | C2DmaBufAllocator.cpp | 106 virtual c2_status_t map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence* fence, 171 c2_status_t C2DmaBufAllocation::map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence* fence, in map() 189 if (usage.expected & C2MemoryUsage::CPU_READ) { in map() 192 if (usage.expected & C2MemoryUsage::CPU_WRITE) { in map() 298 C2MemoryUsage minUsage = {0, 0}; in C2DmaBufAllocator() 299 C2MemoryUsage maxUsage = {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}; in C2DmaBufAllocator() 325 Traits traits = {mTraits->name, mTraits->id, LINEAR, C2MemoryUsage(minUsage), in setUsageMapper() 326 C2MemoryUsage(maxUsage)}; in setUsageMapper() 335 c2_status_t C2DmaBufAllocator::mapUsage(C2MemoryUsage usage, size_t capacity, C2String* heap_name, in mapUsage() 348 !(usage.expected & (C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE))) in mapUsage() [all …]
|
D | C2AllocatorBlob.cpp | 59 c2_status_t map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence* fence, 93 c2_status_t C2AllocationBlob::map(size_t offset, size_t size, C2MemoryUsage usage, in map() 155 C2MemoryUsage minUsage = {0, 0}; in C2AllocatorBlob() 156 C2MemoryUsage maxUsage = {C2MemoryUsage::CPU_READ | C2MemoryUsage::READ_PROTECTED, in C2AllocatorBlob() 157 C2MemoryUsage::CPU_WRITE}; in C2AllocatorBlob() 170 uint32_t capacity, C2MemoryUsage usage, std::shared_ptr<C2LinearAllocation>* allocation) { in newLinearAllocation()
|
D | C2AllocatorIon.cpp | 97 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, 181 c2_status_t map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) { in map() 198 if (usage.expected & C2MemoryUsage::CPU_READ) { in map() 201 if (usage.expected & C2MemoryUsage::CPU_WRITE) { in map() 439 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence, void **addr) { in map() 491 C2MemoryUsage minUsage = { 0, 0 }; in C2AllocatorIon() 492 C2MemoryUsage maxUsage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in C2AllocatorIon() 528 C2MemoryUsage(minUsage), C2MemoryUsage(maxUsage) in setUsageMapper() 539 C2MemoryUsage usage, size_t capacity, size_t *align, unsigned *heapMask, unsigned *flags) { in mapUsage() 552 if (usage.expected & (C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE)) { in mapUsage() [all …]
|
D | C2Buffer.cpp | 124 uint32_t capacity, C2MemoryUsage usage, in fetchLinearBlock() 136 C2MemoryUsage usage, in fetchGraphicBlock() 313 offset(), len, { C2MemoryUsage::CPU_READ, 0 }, nullptr, &base); in map() 343 offset(), len, { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, nullptr, &base); in map() 368 C2MemoryUsage usage, in fetchLinearBlock() 577 void getLinearParams(uint32_t capacity, C2MemoryUsage usage, 590 uint32_t format, C2MemoryUsage usage, 622 C2MemoryUsage usage; 628 AllocParams(C2MemoryUsage usage, uint32_t capacity) in AllocParams() 631 C2MemoryUsage usage, in AllocParams() [all …]
|
D | C2AllocatorGralloc.cpp | 55 static_assert((~C2MemoryUsage::PLATFORM_MASK & PASSTHROUGH_USAGE_MASK) == 0, ""); 62 C2MemoryUsage C2AndroidMemoryUsage::FromGrallocUsage(uint64_t usage) { in FromGrallocUsage() 64 return C2MemoryUsage( in FromGrallocUsage() 65 ((usage & GRALLOC_USAGE_SW_READ_MASK) ? C2MemoryUsage::CPU_READ : 0) | in FromGrallocUsage() 66 ((usage & GRALLOC_USAGE_SW_WRITE_MASK) ? C2MemoryUsage::CPU_WRITE : 0) | in FromGrallocUsage() 67 ((usage & GRALLOC_USAGE_PROTECTED) ? C2MemoryUsage::READ_PROTECTED : 0) | in FromGrallocUsage() 73 return (((expected & C2MemoryUsage::CPU_READ) ? GRALLOC_USAGE_SW_READ_OFTEN : 0) | in asGrallocUsage() 74 ((expected & C2MemoryUsage::CPU_WRITE) ? GRALLOC_USAGE_SW_WRITE_OFTEN : 0) | in asGrallocUsage() 75 ((expected & C2MemoryUsage::READ_PROTECTED) ? GRALLOC_USAGE_PROTECTED : 0) | in asGrallocUsage() 979 C2Rect c2Rect, C2MemoryUsage usage, C2Fence *fence, [all …]
|
D | C2Store.cpp | 198 uint64_t maxUsage = C2MemoryUsage(C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE).expected; in UseComponentStoreForIonAllocator() 226 mapper = [store](C2MemoryUsage usage, size_t capacity, in UseComponentStoreForIonAllocator() 251 uint64_t maxUsage = C2MemoryUsage(C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE).expected; in UseComponentStoreForDmaBufAllocator() 282 mapper = [store](C2MemoryUsage usage, size_t capacity, C2String* heapName, in UseComponentStoreForDmaBufAllocator() 978 !(usage & (C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE))) { in Interface() 992 … C2F(mIonUsageInfo, usage).flags({C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE}), in Interface() 1005 … C2F(mDmaBufUsageInfo, m.usage).flags({C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE}), in Interface()
|
/frameworks/av/media/codec2/vndk/include/ |
D | C2BufferPriv.h | 41 C2MemoryUsage usage, 68 C2MemoryUsage usage, 98 C2MemoryUsage usage, 105 C2MemoryUsage usage,
|
D | C2DmaBufAllocator.h | 35 uint32_t capacity, C2MemoryUsage usage, 60 typedef std::function<c2_status_t(C2MemoryUsage, size_t, 101 c2_status_t mapUsage(C2MemoryUsage usage, size_t size,
|
D | C2AllocatorIon.h | 37 typedef std::function<c2_status_t(C2MemoryUsage, size_t, 47 uint32_t capacity, C2MemoryUsage usage, 84 c2_status_t mapUsage(C2MemoryUsage usage, size_t size,
|
D | C2IgbaBufferPriv.h | 57 C2MemoryUsage usage, 64 C2MemoryUsage usage, 76 C2MemoryUsage usage,
|
D | C2AllocatorGralloc.h | 104 uint32_t width, uint32_t height, uint32_t format, C2MemoryUsage usage, 154 uint32_t width, uint32_t height, uint32_t format, C2MemoryUsage usage,
|
D | C2BqBufferPriv.h | 67 C2MemoryUsage usage, 74 C2MemoryUsage usage,
|
/frameworks/av/media/codec2/tests/vndk/ |
D | C2BufferTest.cpp | 248 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in allocateLinear() 261 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in mapLinear() 294 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in allocateGraphic() 306 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in mapGraphic() 381 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in TEST_F() 522 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in TEST_F() 611 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in TEST_F() 615 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in TEST_F() 623 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in TEST_F() 629 { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }, in TEST_F() [all …]
|
/frameworks/av/media/codec2/hal/services/ |
D | vendor.cpp | 131 {C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE}), in Interface() 144 … C2F(mDmaBufUsageInfo, m.usage).flags({C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE}), in Interface()
|
/frameworks/av/media/codec2/sfplugin/ |
D | FrameReassembler.h | 36 C2MemoryUsage usage, 56 C2MemoryUsage mUsage;
|
D | CCodecBuffers.cpp | 47 const C2MemoryUsage &usage, in AllocateInputGraphicBuffer() 57 C2MemoryUsage fullUsage{usageValue | usage.expected}; in AllocateInputGraphicBuffer() 1044 C2MemoryUsage usage{usageValue | C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE}; in Alloc() 1075 mUsage = { C2MemoryUsage::READ_PROTECTED, 0 }; 1077 mUsage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; 1112 C2MemoryUsage usage, in Alloc() 1137 usage = C2MemoryUsage(usage.expected | usageValue); in Alloc() 1283 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in toArrayMode() 1295 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in createNewBuffer()
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | FrameReassembler_test.cpp | 40 static const C2MemoryUsage kUsage; 141 const C2MemoryUsage FrameReassemblerTest::kUsage{C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE};
|
D | CCodecBuffers_test.cpp | 57 C2MemoryUsage{C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block)); in TEST() 181 C2MemoryUsage{C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block)); in TEST() 315 C2MemoryUsage{C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block); in TEST() 449 C2Rect rect, C2MemoryUsage usage, C2Fence *fence, in map() 882 1024, C2MemoryUsage{C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block)); in TEST()
|
/frameworks/av/media/tests/benchmark/src/native/encoder/ |
D | C2Encoder.cpp | 185 frameSize, {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block); in encodeFrames() 202 {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block); in encodeFrames()
|
/frameworks/av/media/codec2/components/g711/ |
D | C2SoftG711Dec.cpp | 179 C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; in process()
|
/frameworks/av/media/codec2/components/opus/ |
D | C2SoftOpusEnc.cpp | 369 C2MemoryUsage usage = {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}; in process() 567 C2MemoryUsage usage = {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}; in drainInternal()
|
/frameworks/av/media/codec2/vndk/platform/ |
D | C2IgbaBuffer.cpp | 189 C2MemoryUsage usage, std::shared_ptr<C2GraphicBlock> *block) { in fetchGraphicBlock() 205 uint32_t width, uint32_t height, uint32_t format, C2MemoryUsage usage, in fetchGraphicBlock() 217 uint32_t width, uint32_t height, uint32_t format, C2MemoryUsage usage, in _fetchGraphicBlock()
|