[libcamera-devel] [PATCH] qcam: Tell user if we have TIFF support
Pavel Machek
pavel at ucw.cz
Sat Feb 11 22:57:55 CET 2023
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
+ }
return options;
}
--
People of Russia, stop Putin before his war on Ukraine escalates.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20230211/b145b3a4/attachment.sig>
More information about the libcamera-devel
mailing list