From patchwork Fri Oct 4 12:05:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 21518 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 281F0C3257 for ; Fri, 4 Oct 2024 12:05:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0FDFF63523; Fri, 4 Oct 2024 14:05:34 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="A1wXEyKd"; 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 AD81E62C8F for ; Fri, 4 Oct 2024 14:05:32 +0200 (CEST) Received: from neptunite.flets-east.jp (unknown [IPv6:2404:7a81:160:2100:e3ca:2180:ae9b:1941]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D58AB4C9; Fri, 4 Oct 2024 14:03:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1728043438; bh=g4+UwTCawhbRjLwAThmKbeuckbGZ2uuwcR7XUN24Kt0=; h=From:To:Cc:Subject:Date:From; b=A1wXEyKd14RKUnJ8O8sKnyLkTYZyfY8J3wpnjjymDeNl2Z2+OThqPGkrHcZrcJ8vA VxYohDjQeb6k+zl6UALYo/IJlG1Z1icqcYj1RCBk7Xe4lyXgPGwYM358T/u4aH2kab WqQsuXyGkJqjqrSTpZm8/WLc/SMWQyldRrTaDFkw= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder Subject: [PATCH v2 0/2] libcamera: Add support for dumping capture script Date: Fri, 4 Oct 2024 21:05:15 +0900 Message-Id: <20241004120517.3572281-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 patch series adds support to the libcamera core for dumping capture scripts, metadata, and camera configuration. This allows "replays" of captures and can help in debugging. Patch 2/2 adds support to cam for loading the camera configuration from the capture script. v2 notably adds support for creating new dump files when capture is restarted. Paul Elder (2): pipeline: Add support for dumping capture script and metadata apps: cam: Add support for loading configuration from capture script Documentation/environment_variables.rst | 26 +++ include/libcamera/internal/camera.h | 2 + include/libcamera/internal/pipeline_handler.h | 19 ++ src/apps/cam/camera_session.cpp | 26 +-- src/apps/cam/capture_script.cpp | 163 ++++++++++++++++++ src/apps/cam/capture_script.h | 9 + src/apps/cam/main.cpp | 4 +- src/libcamera/camera.cpp | 13 ++ src/libcamera/pipeline_handler.cpp | 85 ++++++++- 9 files changed, 335 insertions(+), 12 deletions(-)