Lines Matching refs:allocator
39 std::shared_ptr<AVAllocator> allocator = nullptr; in CreateAVBuffer() local
44 allocator = AVAllocatorFactory::CreateVirtualAllocator(); in CreateAVBuffer()
49 allocator = AVAllocatorFactory::CreateSharedAllocator(config.memoryFlag); in CreateAVBuffer()
53 allocator = AVAllocatorFactory::CreateSurfaceAllocator(*(config.surfaceBufferConfig)); in CreateAVBuffer()
58 …allocator = AVAllocatorFactory::CreateHardwareAllocator(config.dmaFd, capacity, config.memoryFlag); in CreateAVBuffer()
64 auto buffer = CreateAVBuffer(allocator, capacity, config.align); in CreateAVBuffer()
111 std::shared_ptr<AVBuffer> AVBuffer::CreateAVBuffer(std::shared_ptr<AVAllocator> allocator, int32_t … in CreateAVBuffer() argument
114 FALSE_RETURN_V_MSG_E(allocator != nullptr, nullptr, "allocator is nullptr"); in CreateAVBuffer()
121 Status ret = buffer->Init(allocator, capacity, align); in CreateAVBuffer()
173 Status AVBuffer::Init(std::shared_ptr<AVAllocator> allocator, int32_t capacity, int32_t align) in Init() argument
175 memory_ = AVMemory::CreateAVMemory(allocator, capacity, align); in Init()