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>
This commit is contained in:
Christian Rauch 2022-12-29 23:54:35 +01:00 committed by Laurent Pinchart
parent e1c960ba5f
commit e1b81401ca

View file

@ -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";
}