libcamera: dynamically add new configurations
device: add `buffer_type_t`
This commit is contained in:
@ -101,8 +101,7 @@ int libcamera_device_open(device_t *dev)
|
||||
LOG_ERROR(dev, "Failed to acquire `%s` camera.", dev->libcamera->camera->id().c_str());
|
||||
}
|
||||
|
||||
dev->libcamera->configuration = dev->libcamera->camera->generateConfiguration(
|
||||
{ libcamera::StreamRole::Raw, libcamera::StreamRole::StillCapture });
|
||||
dev->libcamera->configuration = dev->libcamera->camera->generateConfiguration();
|
||||
|
||||
dev->libcamera->allocator = std::make_shared<libcamera::FrameBufferAllocator>(
|
||||
dev->libcamera->camera);
|
||||
|
Reference in New Issue
Block a user