Lines Matching refs:capacity
40 int32_t capacity = std::max(config.size, config.capacity); in CreateAVBuffer() local
58 …allocator = AVAllocatorFactory::CreateHardwareAllocator(config.dmaFd, capacity, config.memoryFlag); in CreateAVBuffer()
64 auto buffer = CreateAVBuffer(allocator, capacity, config.align); in CreateAVBuffer()
67 buffer->config_.capacity = capacity; in CreateAVBuffer()
79 config_.capacity = memory_->GetCapacity(); in GetConfig()
111 …ed_ptr<AVBuffer> AVBuffer::CreateAVBuffer(std::shared_ptr<AVAllocator> allocator, int32_t capacity, in CreateAVBuffer() argument
115 FALSE_RETURN_V_MSG_E(capacity >= 0, nullptr, "capacity is invalid"); in CreateAVBuffer()
121 Status ret = buffer->Init(allocator, capacity, align); in CreateAVBuffer()
129 std::shared_ptr<AVBuffer> AVBuffer::CreateAVBuffer(uint8_t *ptr, int32_t capacity, int32_t size) in CreateAVBuffer() argument
132 FALSE_RETURN_V_MSG_E(capacity >= 0, nullptr, "capacity is invalid"); in CreateAVBuffer()
133 FALSE_RETURN_V_MSG_E((0 <= size) && (size <= capacity), nullptr, "size is invalid"); in CreateAVBuffer()
141 Status ret = buffer->Init(ptr, capacity, size); 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()
180 Status AVBuffer::Init(uint8_t *ptr, int32_t capacity, int32_t size) in Init() argument
182 memory_ = AVMemory::CreateAVMemory(ptr, capacity, size); in Init()