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