qcam: viewfinder: Print message to report format converter usage

Print an info message when initializing the viewfinder to report if the
format converter is used or if zero-copy is enabled. This is useful to
notify of a possible impact on performances.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2020-03-24 00:44:56 +02:00
parent f890a57b7a
commit 798b7ac969

View file

@ -56,6 +56,11 @@ int ViewFinder::setFormat(const libcamera::PixelFormat &format,
return ret; return ret;
image_ = QImage(size, QImage::Format_RGB32); image_ = QImage(size, QImage::Format_RGB32);
qInfo() << "Using software format conversion from"
<< format.toString().c_str();
} else {
qInfo() << "Zero-copy enabled";
} }
format_ = format; format_ = format;