mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-21 15:53:54 +03:00
qcam: Print whole stream configuration when adjusted
When the validate() function adjusts the stream configuration, we print the adjusted size for debugging purpose. Switch to printing the whole configuration, as the pixel format may be useful too. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
ee7e2c93df
commit
8c8fde05ac
1 changed files with 4 additions and 4 deletions
|
@ -281,6 +281,7 @@ int MainWindow::startCapture()
|
||||||
config_ = camera_->generateConfiguration({ StreamRole::Viewfinder });
|
config_ = camera_->generateConfiguration({ StreamRole::Viewfinder });
|
||||||
|
|
||||||
StreamConfiguration &cfg = config_->at(0);
|
StreamConfiguration &cfg = config_->at(0);
|
||||||
|
|
||||||
if (options_.isSet(OptSize)) {
|
if (options_.isSet(OptSize)) {
|
||||||
const std::vector<OptionValue> &sizeOptions =
|
const std::vector<OptionValue> &sizeOptions =
|
||||||
options_[OptSize].toArray();
|
options_[OptSize].toArray();
|
||||||
|
@ -316,10 +317,9 @@ int MainWindow::startCapture()
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (validation == CameraConfiguration::Adjusted) {
|
if (validation == CameraConfiguration::Adjusted)
|
||||||
qInfo() << "Stream size adjusted to"
|
qInfo() << "Stream configuration adjusted to "
|
||||||
<< cfg.size.toString().c_str();
|
<< cfg.toString().c_str();
|
||||||
}
|
|
||||||
|
|
||||||
ret = camera_->configure(config_.get());
|
ret = camera_->configure(config_.get());
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue