libcamera: pipeline: uvcvideo: set a default format
Pick a default format for the UVC one stream in a UVC camera. This is just a starting point to define a good default format for the UVC camera it's expected to evolve over time as the capabilities of the library grows. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
4a5febd7dd
commit
dd45866ea4
1 changed files with 5 additions and 1 deletions
|
@ -60,7 +60,11 @@ PipelineHandlerUVC::streamConfiguration(Camera *camera,
|
|||
|
||||
StreamConfiguration config{};
|
||||
|
||||
LOG(UVC, Info) << "TODO: Return a good default format";
|
||||
LOG(UVC, Debug) << "Retrieving default format";
|
||||
config.width = 640;
|
||||
config.height = 480;
|
||||
config.pixelFormat = V4L2_PIX_FMT_YUYV;
|
||||
config.bufferCount = 4;
|
||||
|
||||
configs[&stream_] = config;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue