Home
last modified time | relevance | path

Searched refs:AVSharedAllocator (Results 1 - 3 of 3) sorted by relevance

/foundation/multimedia/media_foundation/src/buffer/avbuffer/
H A Dav_shared_memory_ext.cpp39 auto allocator = std::shared_ptr<AVSharedAllocator>(new AVSharedAllocator()); in CreateSharedAllocator()
40 FALSE_RETURN_V_MSG_E(allocator != nullptr, nullptr, "Create AVSharedAllocator failed, no memory"); in CreateSharedAllocator()
45 AVSharedAllocator::AVSharedAllocator(){}; in AVSharedAllocator() function in OHOS::Media::AVSharedAllocator
47 void *AVSharedAllocator::Alloc(int32_t capacity) in Alloc()
55 bool AVSharedAllocator::Free(void *ptr) in Free()
65 MemoryType AVSharedAllocator::GetMemoryType() in GetMemoryType()
70 MemoryFlag AVSharedAllocator::GetMemFlag() in GetMemFlag()
93 memFlag_ = std::static_pointer_cast<AVSharedAllocator>(allocator in Init()
[all...]
/foundation/multimedia/media_foundation/src/buffer/avbuffer/include/
H A Dav_shared_allocator.h26 class AVSharedAllocator : public AVAllocator { class
29 ~AVSharedAllocator() override = default;
38 AVSharedAllocator();
/foundation/multimedia/media_foundation/tests/unittest/avbuffer/
H A Davbuffer_func_unit_test.cpp357 EXPECT_EQ(std::static_pointer_cast<AVSharedAllocator>(allocator_)->memFlag_, memFlag_); in HWTEST_F()
439 EXPECT_EQ(std::static_pointer_cast<AVSharedAllocator>(allocator_)->memFlag_, memFlag_); in HWTEST_F()

Completed in 3 milliseconds