From patchwork Thu Dec 21 15:01:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 19334 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 148F1C3237 for ; Thu, 21 Dec 2023 15:02:11 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3DCDE62B52; Thu, 21 Dec 2023 16:02:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1703170930; bh=1QDHysOvvu1BCxIrG8rRiug8wblHKZRMUeBA0HM/Kj8=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=cWAvb3TOy+XVWNXqehi14nHtuds1uL6+PGA704s4aw+SARkhGWZpwmgcdX3ZR/UWA zYyEIndxPXBB8U7VryLLAP/Ls28I/bZDIz1q5DEvbWKOYBC0bBonnKEBjyhcnkuBUp SkgNnrZ7moM0gPQpXAkIOPPamiZwEUN1TDFxfWhFBTO7oC9KcGiU2pIy79+NPWRE1u oEANsPcA1W+HKxWVgiNRaSOHXerF32Qiy+kZ3ycS9Dti2L3mrNIht7eac/ctAai41E vTUEvJWDqWk03T2rWh3+RK1HseqkPPyPB5ZjmXoVTC4OertmxmsB/AmewjzTlfQ+Ef O2s7eHymNA5FQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0B9C7629E3 for ; Thu, 21 Dec 2023 16:02:08 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="d1tWAo+1"; dkim-atps=neutral Received: from localhost.localdomain (93-61-96-190.ip145.fastwebnet.it [93.61.96.190]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B8A6D480; Thu, 21 Dec 2023 16:01:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1703170876; bh=1QDHysOvvu1BCxIrG8rRiug8wblHKZRMUeBA0HM/Kj8=; h=From:To:Cc:Subject:Date:From; b=d1tWAo+1C9ob8GVrKW8ToamhdLQxfFw+f+dxmhDlaapcFoFKneqeGkIVcQUgHKtU0 5gmrm9SEDAhkwb9yvFM7J8cS6S+4QWkIPw17uAL/2ysSAWRCod8SgB7xUX9CbLKn88 sebCJuQIgVrEiVWbl3ZvDV9xgUzvjjyM9V4934kk= To: libcamera-devel@lists.libcamera.org Date: Thu, 21 Dec 2023 16:01:55 +0100 Message-ID: <20231221150157.584264-1-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] libcamera: Add support for required controls 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: , X-Patchwork-Original-From: Jacopo Mondi via libcamera-devel From: Jacopo Mondi Reply-To: Jacopo Mondi Cc: Jacopo Mondi Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This patch plumbs in libcamera the ability to define some controls and properties as required. "Required" properties and controls are mandatory to be supported by a Camera in order to comply with the libcamera API specification. The second DNI commit only serves to validate the implementation. Jacopo Mondi (2): libcamera: Add 'required' property to controls [DNI] apps: cam: Print require properties Documentation/guides/pipeline-handler.rst | 13 ++++++++---- include/libcamera/controls.h | 10 ++++++---- include/libcamera/ipa/ipa_controls.h | 3 ++- src/apps/cam/camera_session.cpp | 3 ++- src/libcamera/control_serializer.cpp | 4 +++- src/libcamera/controls.cpp | 24 +++++++++++++++++------ src/libcamera/ipa_controls.cpp | 2 ++ src/libcamera/property_ids_core.yaml | 2 ++ src/libcamera/v4l2_device.cpp | 2 +- utils/gen-controls.py | 8 +++++++- 10 files changed, 52 insertions(+), 19 deletions(-) --- 2.41.0