[libcamera-devel] [PATCH] qcam: Show string representation of pixel format

Kieran Bingham kieran.bingham at ideasonboard.com
Fri Dec 30 01:25:41 CET 2022


Quoting Christian Rauch via libcamera-devel (2022-12-29 22:54:35)
> 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();

Does the 'conversion from" need a space after it? or does the
format.toString() provide that?

If that's all fine or resolved:


Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>


>         } else {
>                 qInfo() << "Zero-copy enabled";
>         }
> --
> 2.34.1
>


More information about the libcamera-devel mailing list