From e1b81401cafa2e071b0903c0afe8363e84c11ede Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Thu, 29 Dec 2022 23:54:35 +0100 Subject: qcam: Show string representation of pixel format The raw pixel format in form of the fourcc integer is not easily readable. Use the string representation instead for easier debugging. Signed-off-by: Christian Rauch Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/apps/qcam/viewfinder_qt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/apps/qcam') diff --git a/src/apps/qcam/viewfinder_qt.cpp b/src/apps/qcam/viewfinder_qt.cpp index a7482bea..597ccffc 100644 --- a/src/apps/qcam/viewfinder_qt.cpp +++ b/src/apps/qcam/viewfinder_qt.cpp @@ -71,7 +71,8 @@ int ViewFinderQt::setFormat(const libcamera::PixelFormat &format, const QSize &s image_ = QImage(size, QImage::Format_RGB32); - qInfo() << "Using software format conversion from" << format; + qInfo() << "Using software format conversion from" + << format.toString().c_str(); } else { qInfo() << "Zero-copy enabled"; } -- cgit v1.2.1