summaryrefslogtreecommitdiff
path: root/src/qcam
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-24 00:44:56 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-24 14:47:55 +0200
commit798b7ac9692746ea9df15923f3b00b622c7f2ed4 (patch)
tree57e7d2e4145977aa8505ff3fcad080a159bf0ac4 /src/qcam
parentf890a57b7a06c0fab3bea593e4c0040bc5fcfd42 (diff)
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>
Diffstat (limited to 'src/qcam')
-rw-r--r--src/qcam/viewfinder.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qcam/viewfinder.cpp b/src/qcam/viewfinder.cpp
index c7c6d099..df5ee5ee 100644
--- a/src/qcam/viewfinder.cpp
+++ b/src/qcam/viewfinder.cpp
@@ -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;