From patchwork Thu Oct 10 08:47:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 21580 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 BAA01C32E0 for ; Thu, 10 Oct 2024 08:47:36 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8714C6353A; Thu, 10 Oct 2024 10:47:35 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="jot1Nozs"; 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 23BD063538 for ; Thu, 10 Oct 2024 10:47:34 +0200 (CEST) Received: from neptunite.flets-east.jp (unknown [IPv6:2404:7a81:160:2100:c738:203:8807:bdb1]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 15BD34D4; Thu, 10 Oct 2024 10:45:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1728549956; bh=pUh34cV/hVpycNFT9+/lhQ7RutMT/FrcIQgC7VAGNSY=; h=From:To:Cc:Subject:Date:From; b=jot1NozsSCMFgiGEkQXqLrM+3UxAD2yQi7Zlaav3hzLNnYLL6BFjmU2Qzxvt3UC2H i8IPugh+acfTMiVa6N8zr+N5cooDlZsrj0a0JMVnMb70juC2k320/vvyek2jHNPj1F V77uZp+iLNInjDGM7aA63HKp9xCU9Y3qBBfbIyKo= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder Subject: [PATCH 0/3] libcamera: controls: Add namespace to ControlId Date: Thu, 10 Oct 2024 17:47:16 +0900 Message-Id: <20241010084719.712485-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" This series adds vendor (aka namespace) information to ControlId so that it can be queried by appliations, and presumably used to organize the UI with relation to control namespaces. The word "vendor" is used instead of namespace, as it is what shows up in control_ranges.yaml, and also since it doesn't conflict with the C++ keyword. Paul Elder (3): libcamera: controls: Add vendor information to ControlId apps: cam: Print control vendor information when listing controls py: Add bindings for ControlId vendor information include/libcamera/controls.h | 8 ++++++-- src/apps/cam/camera_session.cpp | 7 +++++-- src/libcamera/control_ids.cpp.in | 4 ++-- src/libcamera/control_serializer.cpp | 2 +- src/libcamera/controls.cpp | 16 +++++++++++++--- src/libcamera/v4l2_device.cpp | 2 +- src/py/libcamera/py_main.cpp | 1 + 7 files changed, 29 insertions(+), 11 deletions(-)