diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-02-04 18:50:26 +0100 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-02-04 20:21:37 +0100 |
commit | dd45866ea40f23738e461031eb971761c2c29576 (patch) | |
tree | 7c440e3c5bc4202387b4ab7ca41974c1f156bcdf | |
parent | 4a5febd7ddd798c783ca5e1192b0e9c705c1ac77 (diff) |
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>
-rw-r--r-- | src/libcamera/pipeline/uvcvideo.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo.cpp index 821e4c21..ad4d45d0 100644 --- a/src/libcamera/pipeline/uvcvideo.cpp +++ b/src/libcamera/pipeline/uvcvideo.cpp @@ -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; |