summaryrefslogtreecommitdiff
path: root/src/cam
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-30 21:16:28 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-30 22:18:42 +0300
commita2dddf7c26df3307b9d4554c25387a00687a6234 (patch)
treebe4004bb072d39d471ee790069e3f74d1cd5bbe0 /src/cam
parentbaad55d00975f8931d51c333def20472457dc943 (diff)
libcamera: Use the Size class through libcamera
Several of our structures include width and height fields that model a size while we have a Size class for that purpose. Use the Size class through libcamera, and give it a toString() method like other geometry and format classes. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/cam')
-rw-r--r--src/cam/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index 46aba728..f03c32b3 100644
--- a/src/cam/main.cpp
+++ b/src/cam/main.cpp
@@ -137,10 +137,10 @@ static int prepareCameraConfig(CameraConfiguration *config)
it++;
if (conf.isSet("width"))
- (*config)[stream].width = conf["width"];
+ (*config)[stream].size.width = conf["width"];
if (conf.isSet("height"))
- (*config)[stream].height = conf["height"];
+ (*config)[stream].size.height = conf["height"];
/* TODO: Translate 4CC string to ID. */
if (conf.isSet("pixelformat"))