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:
parent
f890a57b7a
commit
798b7ac969
1 changed files with 5 additions and 0 deletions
|
@ -56,6 +56,11 @@ int ViewFinder::setFormat(const libcamera::PixelFormat &format,
|
|||
return ret;
|
||||
|
||||
image_ = QImage(size, QImage::Format_RGB32);
|
||||
|
||||
qInfo() << "Using software format conversion from"
|
||||
<< format.toString().c_str();
|
||||
} else {
|
||||
qInfo() << "Zero-copy enabled";
|
||||
}
|
||||
|
||||
format_ = format;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue