From patchwork Tue Sep 10 18:07:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 21216 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 80824C324C for ; Tue, 10 Sep 2024 18:07:46 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 78280634F8; Tue, 10 Sep 2024 20:07:45 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Hw7IyWrD"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C7ACF634E4 for ; Tue, 10 Sep 2024 20:07:42 +0200 (CEST) Received: from pyrite.hamster-moth.ts.net (213-229-8-243.static.upcbusiness.at [213.229.8.243]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9802463F; Tue, 10 Sep 2024 20:06:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1725991585; bh=jTlFpGj0eN/wG5ktk64KyXfiYNBZ1FvzgpR4agBaVCg=; h=From:To:Cc:Subject:Date:From; b=Hw7IyWrDL7ogbmvo5s5qwkPYnYofBG0pT9JJXqZW9uPBXKuHHiY35F/trAchj/dxa MGstwG56CRIRzXzTzYHBKK2E1CEVRayzHszpTP3JTvxCggSAnqiFGyR6+M+ChcqLHr C8OoylLPT5ZviucU1xyJOOm88DBhj5pqJ3Xpazcg= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder , stefan.klug@ideasonboard.com Subject: [PATCH 0/2] libcamera: controls: Add enum information to Date: Tue, 10 Sep 2024 20:07:27 +0200 Message-Id: <20240910180729.2096985-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add information about enum names and values to ControlId. This makes it easier for applications to query the names of enums. Patch 2 expands cam to print the supported enum values more nicely in --list-controls. Paul Elder (2): libcamera: controls: Add enum names and values map to ControlId apps: cam: Print control enum values more nicely include/libcamera/controls.h | 15 +++++++++------ src/apps/cam/camera_session.cpp | 12 ++++++++++-- src/libcamera/control_ids.cpp.in | 4 +++- src/libcamera/controls.cpp | 29 +++++++++++++++++++++++++++++ 4 files changed, 51 insertions(+), 9 deletions(-)