From patchwork Wed Mar 20 10:16:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 19780 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 82535C3272 for ; Wed, 20 Mar 2024 10:17:07 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7516562CA8; Wed, 20 Mar 2024 11:17:06 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="BR4xOF+u"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7422461C5B for ; Wed, 20 Mar 2024 11:17:04 +0100 (CET) Received: from localhost.localdomain (unknown [IPv6:2001:b07:5d2e:52c9:cc1e:e404:491f:e6ea]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D913BB1; Wed, 20 Mar 2024 11:16:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1710929797; bh=E8f9SAImLqnLSCJ9Kt3iPAqDFNIeVVrGpKD9+RxdFBw=; h=From:To:Cc:Subject:Date:From; b=BR4xOF+utWiTQsaYqiVTCxk3ipOAyhobXKmGmXFhg3tTxQhGPlzEnlbNPnflbe92r dEV8VJErrBuuwSEIIv0IXycVrwuyn1hsvTTMoMsMWJeKHgR9WDrIocpy6QcfvOc1CL meaE8M3yb8hXRfJtbKRQQYaXRZdoAN5GZ3f41ZbQ= From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Cc: Jacopo Mondi Subject: [PATCH 0/4] apps: lc-compliance: Properties and multi-stream tests Date: Wed, 20 Mar 2024 11:16:47 +0100 Message-ID: <20240320101652.12873-1-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.44.0 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" v3->v4: - Add 'required' properties patch - Add Stefan's tags v2->v3: - Add support for multistream tests This is a refresh of patches Naush's patch [PATCH v1 6/8] libcamera: apps: lcc: Add multi-stream capture test framework v2->v1: - I forgot to move the newly added test in the test/ subdir Add a test case to validate that mandatory properties and controls are registered by a Camera and add support for testing multistream capture operations. Instrument the helper classes to work with multiple streams and roles and add a test suite for multi-stream capture operations. The series now includes "[PATCH 0/2] libcamera: Add support for required controls". Thanks j Jacopo Mondi (4): libcamera: Add 'required' property to controls apps: lc-compliance: Test for mandatory controls apps: lc-compliance: Support multiple streams in helpers apps: lc-compliance: Add multi-stream tests Documentation/guides/pipeline-handler.rst | 13 +- include/libcamera/controls.h | 10 +- include/libcamera/ipa/ipa_controls.h | 3 +- src/apps/lc-compliance/helpers/capture.cpp | 85 +++++++++---- src/apps/lc-compliance/helpers/capture.h | 2 +- src/apps/lc-compliance/meson.build | 1 + src/apps/lc-compliance/tests/capture_test.cpp | 118 +++++++++++++++--- .../lc-compliance/tests/controls_test.cpp | 98 +++++++++++++++ src/libcamera/control_serializer.cpp | 4 +- src/libcamera/controls.cpp | 24 +++- src/libcamera/ipa_controls.cpp | 2 + src/libcamera/v4l2_device.cpp | 2 +- utils/gen-controls.py | 8 +- 13 files changed, 308 insertions(+), 62 deletions(-) create mode 100644 src/apps/lc-compliance/tests/controls_test.cpp --- 2.44.0