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>
This commit is contained in:
parent
baad55d009
commit
a2dddf7c26
19 changed files with 93 additions and 121 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue