libcamera: configure RAW to force correct resolution

This commit is contained in:
Kamil Trzcinski
2023-02-22 23:00:17 +01:00
parent e2e5762b2b
commit 529d72b105
4 changed files with 31 additions and 10 deletions

View File

@ -102,7 +102,7 @@ int libcamera_device_open(device_t *dev)
}
dev->libcamera->configuration = dev->libcamera->camera->generateConfiguration(
{ libcamera::StreamRole::Viewfinder });
{ libcamera::StreamRole::Raw, libcamera::StreamRole::StillCapture });
dev->libcamera->allocator = std::make_shared<libcamera::FrameBufferAllocator>(
dev->libcamera->camera);