From patchwork Wed Oct 2 16:19:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 21472 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 291FBBD80A for ; Wed, 2 Oct 2024 16:20:14 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A951E63527; Wed, 2 Oct 2024 18:20:13 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="UNBJsP4j"; 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 529966351F for ; Wed, 2 Oct 2024 18:20:12 +0200 (CEST) Received: from ideasonboard.com (unknown [IPv6:2a00:6020:448c:6c00:b246:b33f:c662:8ae1]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7293BFEF; Wed, 2 Oct 2024 18:18:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1727885919; bh=RxTwztA94Dg1TkGcOxHsM32CTWg2bPvgRPc88Cq3W3w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UNBJsP4jtTBLJQeAQugPHceXfufOhzLWSh50edjDUVV6CM9OOtkrPotZX0Tr4QW3u kS7F7VCB7Uh2cqq+9/gLB2kS4Z+AERsr4RItsa4hGKxhIixW8lkUqXEPiuumI//OKp HgRB6owSve8Gqmns93PHIGUdYphGfJnRxG9SOlwc= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug Subject: [PATCH v1 1/8] libcamera: Add debug control space Date: Wed, 2 Oct 2024 18:19:19 +0200 Message-ID: <20241002161933.247091-2-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241002161933.247091-1-stefan.klug@ideasonboard.com> References: <20241002161933.247091-1-stefan.klug@ideasonboard.com> 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 a new 'debug' controls namespace for the upcoming implementation of debug metadata. Signed-off-by: Stefan Klug Reviewed-by: Laurent Pinchart --- include/libcamera/meson.build | 3 ++- src/libcamera/control_ids_debug.yaml | 11 +++++++++++ src/libcamera/control_ranges.yaml | 5 ++++- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 src/libcamera/control_ids_debug.yaml diff --git a/include/libcamera/meson.build b/include/libcamera/meson.build index a969a95dbf7a..152806988479 100644 --- a/include/libcamera/meson.build +++ b/include/libcamera/meson.build @@ -36,6 +36,7 @@ controls_map = { 'controls': { 'draft': 'control_ids_draft.yaml', 'core': 'control_ids_core.yaml', + 'debug': 'control_ids_debug.yaml', 'rpi/vc4': 'control_ids_rpi.yaml', }, @@ -55,7 +56,7 @@ foreach mode, entry : controls_map files_list = [] input_files = [] foreach vendor, header : entry - if vendor != 'core' and vendor != 'draft' + if vendor not in ['core', 'draft', 'debug'] if vendor not in pipelines continue endif diff --git a/src/libcamera/control_ids_debug.yaml b/src/libcamera/control_ids_debug.yaml new file mode 100644 index 000000000000..11ddfd7cc8d8 --- /dev/null +++ b/src/libcamera/control_ids_debug.yaml @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# Copyright (C) 2024, Ideas on Board Oy +# +%YAML 1.1 +--- +# Unless otherwise stated, all controls are bi-directional, i.e. they can be +# set through Request::controls() and returned out through Request::metadata(). +vendor: debug +controls: + diff --git a/src/libcamera/control_ranges.yaml b/src/libcamera/control_ranges.yaml index d42447d04647..b89a517a64cd 100644 --- a/src/libcamera/control_ranges.yaml +++ b/src/libcamera/control_ranges.yaml @@ -13,6 +13,9 @@ ranges: draft: 10000 # Raspberry Pi vendor controls rpi: 20000 - # Next range starts at 30000 + # Development controls + debug: 30000 + # Next range starts at 40000 + ...