Lines Matching refs:config
37 std::shared_ptr<AVBuffer> AVBuffer::CreateAVBuffer(const AVBufferConfig &config)
40 int32_t capacity = std::max(config.size, config.capacity);
42 switch (config.memoryType) {
48 memflag = config.memoryFlag;
49 allocator = AVAllocatorFactory::CreateSharedAllocator(config.memoryFlag);
53 allocator = AVAllocatorFactory::CreateSurfaceAllocator(*(config.surfaceBufferConfig));
57 memflag = config.memoryFlag;
58 allocator = AVAllocatorFactory::CreateHardwareAllocator(config.dmaFd, capacity, config.memoryFlag);
64 auto buffer = CreateAVBuffer(allocator, capacity, config.align);
66 buffer->config_ = config;