From patchwork Wed Oct 16 11:19:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 21637 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 63D9DC32FA for ; Wed, 16 Oct 2024 11:19:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B6F8665384; Wed, 16 Oct 2024 13:19:54 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="iNoR4VI7"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D5F1C6537E for ; Wed, 16 Oct 2024 13:19:52 +0200 (CEST) Received: from neptunite.flets-east.jp (unknown [IPv6:2404:7a81:160:2100:b5b2:fcb4:385e:af78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7D16FA2F; Wed, 16 Oct 2024 13:18:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1729077490; bh=KSLyzIUVWC6+K3JgeqTQEOAEVAWAtZ3ub2FhQhYxPMk=; h=From:To:Cc:Subject:Date:From; b=iNoR4VI7WNIBZDINZE6H4f+EztZUazX+bM69fDNqHjPD5c3o+6hRH+dHhyFCp670x Zrory+UrrHG1AbtxKljPrvlQ5yUewV2m3nM2dohUlO5Arjf9pLBEcchj7h/Lxcif8G yydeq21ciNzE2fB8WvPMuIJePZt1ox7BvYLCEFsw= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder Subject: [PATCH v2 0/3] libcamera: controls: Add namespace to ControlId Date: Wed, 16 Oct 2024 20:19:40 +0900 Message-Id: <20241016111943.1411372-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. v2 only has minor fixes. 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 | 11 +++++++---- src/apps/cam/camera_session.cpp | 7 +++++-- src/libcamera/control_ids.cpp.in | 4 ++-- src/libcamera/control_serializer.cpp | 2 +- src/libcamera/controls.cpp | 19 +++++++++++++++---- src/libcamera/v4l2_device.cpp | 2 +- src/py/libcamera/py_main.cpp | 5 +++-- 7 files changed, 34 insertions(+), 16 deletions(-)