[libcamera-devel] [PATCH] qcam: Show string representation of pixel format
Christian Rauch
Rauch.Christian at gmx.de
Thu Dec 29 23:54:35 CET 2022
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 <Rauch.Christian at gmx.de>
---
src/apps/qcam/viewfinder_qt.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/apps/qcam/viewfinder_qt.cpp b/src/apps/qcam/viewfinder_qt.cpp
index a7482bea..dcb7acdf 100644
--- a/src/apps/qcam/viewfinder_qt.cpp
+++ b/src/apps/qcam/viewfinder_qt.cpp
@@ -71,7 +71,7 @@ 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";
}
--
2.34.1
More information about the libcamera-devel
mailing list