diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-10-20 01:59:10 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-10-20 13:36:25 +0300 |
commit | 0fc7750ad6e0772af7306bf1b6c3578a8ffee61c (patch) | |
tree | fcaf90e7bf7e65285baaa406532136cc7f631d9c /src | |
parent | 6b9049de1f12fca108c0affe29923a5427a9fb02 (diff) |
cam: Don't print DNG option text if libtiff isn't found
If libtiff isn't found, DNG capture support is disabled. Don't print the
part of the --file help text that mentions DNG in that case.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/cam/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp index c4e18a13..d70130e2 100644 --- a/src/cam/main.cpp +++ b/src/cam/main.cpp @@ -144,8 +144,10 @@ int CamApp::parseOptions(int argc, char *argv[]) "to write files, using the default file name. Otherwise it sets the\n" "full file path and name. The first '#' character in the file name\n" "is expanded to the camera index, stream name and frame sequence number.\n" +#ifdef HAVE_TIFF "If the file name ends with '.dng', then the frame will be written to\n" "the output file(s) in DNG format.\n" +#endif "The default file name is 'frame-#.bin'.", "file", ArgumentOptional, "filename", false, OptCamera); |