From patchwork Wed Oct 19 23:15:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 17645 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 9C875C0DA4 for ; Wed, 19 Oct 2022 23:16:07 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 27A9962E7B; Thu, 20 Oct 2022 01:16:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1666221367; bh=oDSDIvv3/JdgM/4wy4c7pNgN9fWMIpipiabTOydjRZM=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=qRvq/U0RsJQGvc/WcurgkUwac8CbbQmcA9P0rf6CrORi9bHTPdOjZ48GUtK4W3vcX LC0Yih4O89lZpfmlNX//rnN3y4HV2mmcKavj8W0QRbFQsJDr/BiLV0YZ4FrRTiso18 52BopYNflSGr2bPZjPkEesZup9GHCjM6IAZcK5AMtsMX/eTIWycHe0xm7ROizlhv+7 ITLCWNX4JQ8S1urc97y3LPFyOudLJ1KYrOhvUbxcoP3mQ7Z8DpTr3UEporhr6aqgc0 n7NCBt0vSQQwKYFe/PWGVXys5YmZDQIpq+o/l4xCfX7H5AzuKiCC4ZZrhS637NHpLb wy1Y7r5s9aEJg== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A52B662E6E for ; Thu, 20 Oct 2022 01:16:04 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="putWmlPh"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 31C8F570 for ; Thu, 20 Oct 2022 01:16:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1666221364; bh=oDSDIvv3/JdgM/4wy4c7pNgN9fWMIpipiabTOydjRZM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=putWmlPhDg0ir4EVj7arN+3ZinsChZBE94j3vjQo4s9A3zCvfowVCDy+F0yi8af5k YLdmB7F4JIf9B26Jc3LmniES+V72Lor+OYVa5kjKb8m7hX+efm4gj/RK8lKVVsshYX GolAwuVJa7J0PCipEaqPVLD8u+PAXSI5Gc844yh4= To: libcamera-devel@lists.libcamera.org Date: Thu, 20 Oct 2022 02:15:32 +0300 Message-Id: <20221019231537.26880-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221019231537.26880-1-laurent.pinchart@ideasonboard.com> References: <20221019231537.26880-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v1 1/6] cam: Don't print DNG option text if libtiff isn't found X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 Reviewed-by: Paul Elder Reviewed-by: Kieran Bingham --- src/cam/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cam/main.cpp b/src/cam/main.cpp index c4e18a130c02..d70130e2ab81 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);