[libcamera-devel] [PATCH 21/27] libcamera: pipeline: vimc: Set a default format
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Wed Feb 6 07:08:12 CET 2019
From: Niklas Söderlund <niklas.soderlund at ragnatech.se>
Pick a default format for the one stream in a vimc camera. This is
just a starting point to define a good default format for the vimc
camera, and is expected to evolve over time as the capabilities of the
library grows.
Signed-off-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
src/libcamera/pipeline/vimc.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/libcamera/pipeline/vimc.cpp b/src/libcamera/pipeline/vimc.cpp
index ea6f28c64cc0..9c0406bef9dc 100644
--- a/src/libcamera/pipeline/vimc.cpp
+++ b/src/libcamera/pipeline/vimc.cpp
@@ -67,7 +67,11 @@ PipeHandlerVimc::streamConfiguration(Camera *camera,
StreamConfiguration config{};
- LOG(VIMC, Info) << "TODO: Return a good default format";
+ LOG(VIMC, Debug) << "Retrieving default format";
+ config.width = 640;
+ config.height = 480;
+ config.pixelFormat = V4L2_PIX_FMT_RGB24;
+ config.bufferCount = 4;
configs[&stream_] = config;
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list