diff options
author | Christian Rauch <Rauch.Christian@gmx.de> | 2022-12-29 23:54:35 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-12-30 22:16:49 +0200 |
commit | e1b81401cafa2e071b0903c0afe8363e84c11ede (patch) | |
tree | 19ff28c72e59cc74d78db07062adcaaa401dbee4 /src | |
parent | e1c960ba5f800be24ed377c2243090a37d8e83f7 (diff) |
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 <Rauch.Christian@gmx.de>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/apps/qcam/viewfinder_qt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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"; } |