From 798b7ac9692746ea9df15923f3b00b622c7f2ed4 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 24 Mar 2020 00:44:56 +0200 Subject: 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 Reviewed-by: Kieran Bingham --- src/qcam/viewfinder.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/qcam') 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; -- cgit v1.2.1