summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-02-05 19:17:46 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-02-06 08:03:03 +0200
commitbbbf76a6c511c9f70bc317c5ee0b798ffc8bb2c9 (patch)
treed21220d15accd19c07ce7c2c434bb6e148a8aa92
parent17ae772e8d34a5eb1ef4762a84e8ba5b1fe89874 (diff)
libcamera: pipeline: vimc: Set a default format
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@ragnatech.se> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--src/libcamera/pipeline/vimc.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/vimc.cpp b/src/libcamera/pipeline/vimc.cpp
index ea6f28c6..9c0406be 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;