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
|
@ -106,7 +106,8 @@ int MainWindow::startCapture()
|
|||
}
|
||||
|
||||
const StreamConfiguration &sconf = config_[stream];
|
||||
ret = viewfinder_->setFormat(sconf.pixelFormat, sconf.width, sconf.height);
|
||||
ret = viewfinder_->setFormat(sconf.pixelFormat, sconf.size.width,
|
||||
sconf.size.height);
|
||||
if (ret < 0) {
|
||||
std::cout << "Failed to set viewfinder format" << std::endl;
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue