From patchwork Sun Sep 15 23:24:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 21271 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 2CD94C324C for ; Sun, 15 Sep 2024 23:24:36 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 78DE8634FD; Mon, 16 Sep 2024 01:24:34 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="iyQZkS8t"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A89EE618F6 for ; Mon, 16 Sep 2024 01:24:31 +0200 (CEST) Received: from pyrite.hamster-moth.ts.net (unknown [IPv6:2001:4bc9:a45:b0af:31d1:7a87:7f90:977b]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 702B682A; Mon, 16 Sep 2024 01:23:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1726442590; bh=3LGpXT/xsB6KnO0J1l0LHwqD/0c8M5J978BtsuVbWxI=; h=From:To:Cc:Subject:Date:From; b=iyQZkS8tYgiPEoUb0tYl6PQUzn9zD4Iuh0E/5qPecFILy2D18qrPVppIOwJNzeg7j KikDgCgfJlVOvBq2FELRuzu7UNRfPPiTaJk3vLQjeUYio3MDSGsCufXF6e3RnOyck5 V0lWAOPH8OhQcWznyFl65ZreuAOXQIZQ13KGc0KI= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder , stefan.klug@ideasonboard.com, Kieran Bingham , Laurent Pinchart Subject: [PATCH v4 0/3] libcamera: controls: Add enum information to ControlId Date: Mon, 16 Sep 2024 01:24:17 +0200 Message-Id: <20240915232420.2106705-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/3 expands cam to print the supported enum values more nicely in --list-controls. Patch 3/3 adds python bindings. v2 adds patch 3/3 (and fixes the subject of the cover letter). v3 renames some stuff. v4 replaces the function that outputs enum string to a function that simply exposes the map. Paul Elder (3): libcamera: controls: Add enum names and values map to ControlId apps: cam: Print control enum values more nicely py: Add bindings for ControlId enum name include/libcamera/controls.h | 14 ++++++++------ src/apps/cam/camera_session.cpp | 19 +++++++++++++++++-- src/libcamera/control_ids.cpp.in | 4 +++- src/libcamera/controls.cpp | 15 +++++++++++++++ src/py/libcamera/py_main.cpp | 3 ++- 5 files changed, 45 insertions(+), 10 deletions(-)