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>
This commit is contained in:
Niklas Söderlund 2019-02-05 19:17:46 +01:00 committed by Laurent Pinchart
parent 17ae772e8d
commit bbbf76a6c5

View file

@ -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;