mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 00:45:07 +03:00
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>
This commit is contained in:
parent
6b9049de1f
commit
0fc7750ad6
1 changed files with 2 additions and 0 deletions
|
@ -144,8 +144,10 @@ int CamApp::parseOptions(int argc, char *argv[])
|
||||||
"to write files, using the default file name. Otherwise it sets the\n"
|
"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"
|
"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"
|
"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"
|
"If the file name ends with '.dng', then the frame will be written to\n"
|
||||||
"the output file(s) in DNG format.\n"
|
"the output file(s) in DNG format.\n"
|
||||||
|
#endif
|
||||||
"The default file name is 'frame-#.bin'.",
|
"The default file name is 'frame-#.bin'.",
|
||||||
"file", ArgumentOptional, "filename", false,
|
"file", ArgumentOptional, "filename", false,
|
||||||
OptCamera);
|
OptCamera);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue