summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/vimc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/pipeline/vimc.cpp')
-rw-r--r--src/libcamera/pipeline/vimc.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libcamera/pipeline/vimc.cpp b/src/libcamera/pipeline/vimc.cpp
index f9514066..83fa9cf4 100644
--- a/src/libcamera/pipeline/vimc.cpp
+++ b/src/libcamera/pipeline/vimc.cpp
@@ -92,9 +92,8 @@ PipelineHandlerVimc::streamConfiguration(Camera *camera,
CameraConfiguration configs;
StreamConfiguration config{};
- config.width = 640;
- config.height = 480;
config.pixelFormat = V4L2_PIX_FMT_RGB24;
+ config.size = { 640, 480 };
config.bufferCount = 4;
configs[&data->stream_] = config;
@@ -110,16 +109,14 @@ int PipelineHandlerVimc::configureStreams(Camera *camera,
int ret;
V4L2DeviceFormat format = {};
- format.width = cfg->width;
- format.height = cfg->height;
format.fourcc = cfg->pixelFormat;
+ format.size = cfg->size;
ret = data->video_->setFormat(&format);
if (ret)
return ret;
- if (format.width != cfg->width ||
- format.height != cfg->height ||
+ if (format.size != cfg->size ||
format.fourcc != cfg->pixelFormat)
return -EINVAL;