[libcamera-devel] [PATCH] qcam: Tell user if we have TIFF support

Kieran Bingham kieran.bingham at ideasonboard.com
Sun Feb 19 00:13:25 CET 2023


Quoting Pavel Machek via libcamera-devel (2023-02-11 21:57:55)
> User may wonder why he can't take images. Add line to help text
> expaining if we have TIFF support.
>     
> Signed-off-by: Pavel Machek <pavel at ucw.cz>
> 
> diff --git a/src/apps/qcam/main.cpp b/src/apps/qcam/main.cpp
> index 36cb93a5..36ee16ab 100644
> --- a/src/apps/qcam/main.cpp
> +++ b/src/apps/qcam/main.cpp
> @@ -46,8 +46,14 @@ OptionsParser::Options parseOptions(int argc, char *argv[])
>                          "Print verbose log messages", "verbose");
>  
>         OptionsParser::Options options = parser.parse(argc, argv);
> -       if (options.isSet(OptHelp))
> +       if (options.isSet(OptHelp)) {
>                 parser.usage();
> +#ifdef HAVE_TIFF
> +               qInfo() << "TIFF/DNG support available.";
> +#else
> +               qInfo() << "TIFF/DNG support NOT available, taking still images not possible";
> +#endif
> +       }

This worries me as a bit overtly verbose, and not consistent (Should we
report every other configuration option in this way?)

I'd rather see something extended on the meson.build summary perhaps to
say that qcam doesn't support raw files maybe?

--
Kieran

>  
>         return options;
>  }
> 
> -- 
> People of Russia, stop Putin before his war on Ukraine escalates.


More information about the libcamera-devel mailing list