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:
parent
17ae772e8d
commit
bbbf76a6c5
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue