From patchwork Tue Sep 10 20:48:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 21219 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 2FEDCBF415 for ; Tue, 10 Sep 2024 20:48:26 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A4003634F8; Tue, 10 Sep 2024 22:48:24 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Vacdjxo3"; 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 90E5B634E4 for ; Tue, 10 Sep 2024 22:48:21 +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 EA66D153F; Tue, 10 Sep 2024 22:47:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1726001224; bh=2TFd5nmWzRCX/OLwpmBwjoC4TzyBldW5uS+Buu6CEYQ=; h=From:To:Cc:Subject:Date:From; b=Vacdjxo3CjMUkIris9EGVwi3rJsTY38K2k2e78aSdQA7HDIRXy+cQb+j8zQB16PUm tdyqjSO2hzc+YkPPNpMTZrQ2NuBghgX+sF3xAWpaskjwuO/FYCfE0p7K53HYxcWP+Q X4WPsv/IpMCLpFdI2RF2ytpZpSO8YVvs4ZVU8vjs= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder , stefan.klug@ideasonboard.com Subject: [PATCH 0/3] libcamera: controls: Add enum information to ControlId Date: Tue, 10 Sep 2024 22:48:09 +0200 Message-Id: <20240910204812.2581246-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). 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 | 15 +++++++++------ src/apps/cam/camera_session.cpp | 12 ++++++++++-- src/libcamera/control_ids.cpp.in | 4 +++- src/libcamera/controls.cpp | 29 +++++++++++++++++++++++++++++ src/py/libcamera/py_main.cpp | 3 ++- 5 files changed, 53 insertions(+), 10 deletions(-)