From patchwork Fri Dec 20 15:08:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 22426 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 1C5DAC32A3 for ; Fri, 20 Dec 2024 15:08:12 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id EB7A368499; Fri, 20 Dec 2024 16:08:10 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=protonmail.com header.i=@protonmail.com header.b="D4qhaLjC"; dkim-atps=neutral Received: from mail-40133.protonmail.ch (mail-40133.protonmail.ch [185.70.40.133]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8711E67F24 for ; Fri, 20 Dec 2024 16:08:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1734707287; x=1734966487; bh=jx6ZbG/SH+COc/aQSOdLsSYCSQ5gt8IMefgmB4NRt1Q=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=D4qhaLjCYed7YoU5/DkaskBLZLz4VIl61xb6YGXiOpl/6DKHz6EVENlGQREdJmUUX 12sqv8x/E+vLsRap6C6cr6L7EMs2LIHCYgbPNwPa23hV1UOPfT45MsTZHVCpxhsYTV S/k86V7TDkqLnvzNYKay7uJUiqynLcs9R0YvWBn29S8QTwnhm+wG7EhZaKE+e5Svan vG4G8M0XX21i2KZHonG++wkdKavI/hduRObec86PQ/bs7go5jZRrhX2j1J5A8XbMIn dRuYrn1s4hpIPK9LV/R/f5ux5/v/GVOXG7fgapRB8nFYAcWTAvAPHFH6u9nlloe/AF dvs3dB0Kov+RA== Date: Fri, 20 Dec 2024 15:08:03 +0000 To: libcamera-devel@lists.libcamera.org From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= Subject: [RFC PATCH v1 00/12] apps: lc-compliance: Multi-stream tests Message-ID: <20241220150759.709756-1-pobrn@protonmail.com> Feedback-ID: 20568564:user:proton X-Pm-Message-ID: cc298103be6e8f7fc0f065426c7d20d1bd2ac993 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 changeset adds multi-stream tests based on the last two commits of https://patchwork.libcamera.org/project/libcamera/list/?series=4234 Similarly, only the last two commits here deal with multi-stream tests directly. Most other changes are non-functional changes. But notably, the libevent dependency of lc-compliance was removed because it can be easily replace with C++ STL parts, and its use was prone to race conditions. One notable difference compared to the last patch of the aforementioned series is that no new test is created, the current tests are kept and are simply run with multiple streams. Barnabás Pőcze (12): apps: lc-compliance: Initialize `CameraManager` pointer in `Environment` apps: lc-compliance: Put tests into anonymous namespace apps: lc-compliance: Optimize `std::shared_ptr` usage apps: lc-compliance: Remove redundant getter call apps: lc-compliance: Don't allocate `FrameBufferAllocator` dynamically apps: lc-compliance: Use `std::vector` for argument array apps: lc-compliance: Use array instead of `std::vector` apps: lc-compliance: Remove libevent dependency apps: lc-compliance: Check number of buffers in allocator apps: lc-compliance: Move request creation into common function apps: lc-compliance: Support multiple streams in helpers apps: lc-compliance: Add multi-stream tests README.rst | 2 +- src/apps/lc-compliance/environment.h | 2 +- src/apps/lc-compliance/helpers/capture.cpp | 157 +++++++++++------- src/apps/lc-compliance/helpers/capture.h | 48 +++++- src/apps/lc-compliance/main.cpp | 42 ++--- src/apps/lc-compliance/meson.build | 7 +- src/apps/lc-compliance/tests/capture_test.cpp | 88 ++++++---- src/apps/meson.build | 5 - 8 files changed, 209 insertions(+), 142 deletions(-) --- 2.47.1