diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-02-05 19:17:46 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-02-06 08:03:03 +0200 |
commit | bbbf76a6c511c9f70bc317c5ee0b798ffc8bb2c9 (patch) | |
tree | d21220d15accd19c07ce7c2c434bb6e148a8aa92 /src | |
parent | 17ae772e8d34a5eb1ef4762a84e8ba5b1fe89874 (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>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/pipeline/vimc.cpp | 6 |
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; |